/activate.sh Secret
Created
August 27, 2013 14:18
Simulating slow connections in Mac OS
This file contains 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/bash | |
ipfw pipe 1 config bw 128Kbit/s delay 120ms | |
ipfw add 1 pipe 1 src-port 80 | |
ipfw add 2 pipe 1 dst-port 80 | |
ipfw add 3 pipe 1 src-port 8080 | |
ipfw add 4 pipe 1 dst-port 8080 |
This file contains 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/bash | |
ipfw delete 1 | |
ipfw delete 2 | |
ipfw delete 3 | |
ipfw delete 4 | |
ipfw pipe 1 delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment