Last active
February 21, 2019 00:59
-
-
Save dzuluaga/94654908d2cf90425ad30bc2ab2461ba to your computer and use it in GitHub Desktop.
Starts an endpoint in Google Cloud Shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
file="$HOME/ngrok" | |
if [ -f "$file" ] | |
then | |
echo "$file found." | |
else | |
echo "$file not found. Downloading." | |
curl https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip -o $HOME/ngrok-stable-linux-amd64.zip | |
unzip $HOME/ngrok-stable-linux-amd64.zip -d $HOME | |
fi | |
$HOME/ngrok http 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment