Skip to content

Instantly share code, notes, and snippets.

@guillefix
Created August 20, 2019 19:21
Show Gist options
  • Save guillefix/2a70f1bc5a08c43a4b8d981a6aa400d1 to your computer and use it in GitHub Desktop.
Save guillefix/2a70f1bc5a08c43a4b8d981a6aa400d1 to your computer and use it in GitHub Desktop.
#!/bin/bash
comp=$(hostname)
url=$(curl -s 127.0.0.1:4040/api/tunnels | jq -r '.tunnels[0].public_url')
curl -X POST -H "Content-Type: application/json" -d '{"value1":"'${url}'","value2":"'${comp}'"}' https://maker.ifttt.com/trigger/ngrok_url/with/key/[iftt key]
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment