Skip to content

Instantly share code, notes, and snippets.

@jonbalbarin
Created July 14, 2011 00:06
Show Gist options
  • Save jonbalbarin/1081610 to your computer and use it in GitHub Desktop.
Save jonbalbarin/1081610 to your computer and use it in GitHub Desktop.
throttling bandwidth to emulate mobile devices (when running simulators)
# 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