Skip to content

Instantly share code, notes, and snippets.

@rauchg
rauchg / ms.md
Created December 21, 2011 00:25
Milliseconds conversion utility.
#!/bin/sh
#
# Use ipfw to throttle bandwidth.
# usage:
# ./throttle.sh # Throttle at default (60KB/s)
# ./throttle.sh 5 # Throttle at custom speed (5KB/s)
# ./throttle.sh off # Turn throttling off
# flush rules
ipfw del pipe 1