Created
July 14, 2011 00:06
-
-
Save jonbalbarin/1081610 to your computer and use it in GitHub Desktop.
throttling bandwidth to emulate mobile devices (when running simulators)
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
# stick this in your .bash_profile | |
alias throttle150='sudo ipfw pipe 1 config bw 150Kbps && sudo ipfw add 1 pipe 1 src-port 80' | |
alias throttle300='sudo ipfw pipe 1 config bw 300Kbps && sudo ipfw add 1 pipe 1 src-port 80' | |
alias throttleOff='sudo ipfw delete 1' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment