Last active
July 9, 2025 12:15
-
-
Save rhee/e272f8bc34cc57ae3a9060c169b28154 to your computer and use it in GitHub Desktop.
throttled-proxy.bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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