Just a basic script that creates a tunnel with a given provider and relaunch it when its going down unexpectedly.
This project has been made initially for being used with the localtonet service but it has been adapted for working with the loophole service for performances reasons.
I strongly recommend you to give a try to the loophole service as its the best free and open source alternative to ngrok I've tested so far in terms of performances.