Bandwidth throttling on OS X

Simple way to enable bandwidth throttling on OS X

sudo ipfw pipe 1 config bw 150KByte/s
sudo ipfw add 1 pipe 1 src-port 80

sudo ipfw pipe 1 config bw 20KByte/s
sudo ipfw add 1 pipe 1 dst-port 80