Skip to content

Instantly share code, notes, and snippets.

@rhee
Last active July 9, 2025 12:15
Show Gist options
  • Select an option

  • Save rhee/e272f8bc34cc57ae3a9060c169b28154 to your computer and use it in GitHub Desktop.

Select an option

Save rhee/e272f8bc34cc57ae3a9060c169b28154 to your computer and use it in GitHub Desktop.
throttled-proxy.bash
#!/bin/sh
## https://gist.github.com/rhee/e272f8bc34cc57ae3a9060c169b28154
limitKB=${1-100}
exec >>/tmp/throttling.log 2>&1
trickle -v -s -d $limitKB -u $limitKB socat -d TCP4-LISTEN:5555,reuseaddr,fork TCP4:127.0.0.1:8123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment