Skip to content

Instantly share code, notes, and snippets.

@dzuluaga
Last active August 16, 2021 22:29
Show Gist options
  • Save dzuluaga/b3b18a98c2ba9c326c3e6680301b26b8 to your computer and use it in GitHub Desktop.
Save dzuluaga/b3b18a98c2ba9c326c3e6680301b26b8 to your computer and use it in GitHub Desktop.
install ngrok in GCP Cloud Shell in a single shot.
#!/usr/bin/env bash
# Installs ngrok on GCP Cloud Shell in a single command
# Run this script directly from the command line
#
# $ curl "https://gist.githubusercontent.com/dzuluaga/b3b18a98c2ba9c326c3e6680301b26b8/raw/install-ngrok-gcp-cloud-shell.sh?$(date +%s)" | sudo bash
echo 'Downloading ngrok...'
curl https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip -o ngrok-stable-linux-amd64.zip
echo 'Unzipping ngrok...'
sudo unzip -o ngrok-stable-linux-amd64.zip
echo 'Start ngrok by running this command...'
echo './ngrok http 8080'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment