Skip to content

Instantly share code, notes, and snippets.

@jimbocoder
Last active July 13, 2017 03:16
Show Gist options
  • Save jimbocoder/0ae3d926350b1d6fba096b4ee6ae570a to your computer and use it in GitHub Desktop.
Save jimbocoder/0ae3d926350b1d6fba096b4ee6ae570a to your computer and use it in GitHub Desktop.
ad hoc ngrok schlock
#!/bin/bash
if [[ ! -x /usr/local/bin/ngrok ]]; then
TMPFILE=`tempfile`
curl -s 'https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip' -o "$TMPFILE.zip"
sudo unzip -f "$TMPFILE.zip" ngrok -d /usr/local/bin/
rm -f "$TMPFILE.zip"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment