Skip to content

Instantly share code, notes, and snippets.

View hughrun's full-sized avatar

Hugh Rundle hughrun

View GitHub Profile
@aaqibb13
aaqibb13 / Opening multiple tunnels with ngrok simultaneously.md
Last active October 12, 2025 01:39
Opening multiple tunnels with ngrok simultaneously

WHAT IS THIS GIST ABOUT?

Imagine a use-case where you're already testing a service using ngrok and you want to spin up a different service and test that service on a different port. Tricky situation, right? That's where ngrok's power to run multiple tunnels simultaneously comes into the picture.

HOW?

ngrok Agent configuration file: The ngrok agent supports an optional, YAML configuration file which provides you with the power to run multiple tunnels simultaneously as well as to tweak some of its more advanced settings.

@flesueur
flesueur / deloldtweets.py
Created June 26, 2018 10:11
Delete (very) old tweets obtained from a twitter archive
#!/bin/python3
# Largely copied from http://www.mathewinkson.com/2015/03/delete-old-tweets-selectively-using-python-and-tweepy
# However, Mathew's script cannot delete tweets older than something like a year (these tweets are not available from the twitter API)
# This script is a complement on first use, to delete old tweets. It uses your twitter archive to find tweets' ids to delete
# How to use it :
# - download and extract your twitter archive (tweet.js will contain all your tweets with dates and ids)
# - put this script in the extracted directory
# - complete the secrets to access twitter's API on your behalf and, possibly, modify days_to_keep
# - delete the few junk characters at the beginning of tweet.js, until the first '[' (it crashed my json parser)
# - review the script !!!! It has not been thoroughly tested, it may have some unexpected behaviors...
@subfuzion
subfuzion / curl.md
Last active December 5, 2025 19:15
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.