Skip to content

Instantly share code, notes, and snippets.

View paperbenni's full-sized avatar

paperbenni

View GitHub Profile
@paperbenni
paperbenni / clone.bash
Last active October 13, 2018 11:27 — forked from milanboers/clone.bash
Clone all repositories of a Github user
curl -s https://api.github.com/users/paperbenni/repos | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone
@paperbenni
paperbenni / ngrok_url.sh
Created April 6, 2018 14:28 — forked from Dalimil/ngrok_url.sh
Get ngrok URL from command line
# ngrok should be running
# replace http with https at the end if needed
# based on: https://gist.github.com/rjz/af40158c529d7c407420fc0de490758b
echo $(curl -s localhost:4040/inspect/http | grep -oP 'window.common[^;]+' | sed 's/^[^\(]*("//' | sed 's/")\s*$//' | sed 's/\\"/"/g') | jq -r ".Session.Tunnels | values | map(.URL) | .[]" | grep "^tcp://"