Created
May 6, 2011 17:34
-
-
Save mtigas/959392 to your computer and use it in GitHub Desktop.
Aliases to help test a local or LAN server with "real world" internet connection speeds.
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
# Add to .bash_profile: | |
# Adds `slow_net` and `slow_net_off` commands to your terminal. | |
# * limits to 150KBps ~~ 1.2 Megabit internet | |
# * adds 200ms latency | |
alias slow_net="sudo ipfw pipe 1 config bw 150KByte/s delay 200ms && sudo ipfw add 1 pipe 1 src-port 80" | |
alias slow_net_off="sudo ipfw delete 1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment