Skip to content

Instantly share code, notes, and snippets.

@peterhellberg
Created April 5, 2011 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterhellberg/903755 to your computer and use it in GitHub Desktop.
Save peterhellberg/903755 to your computer and use it in GitHub Desktop.
Launch shotgun, listening to the first IP
function blunderbuss {
if [ -z "$1" ]; then
PORT=9393
else
PORT=$1
fi
IP=`ifconfig | grep -m 1 broadcast | awk '{print $2}'`
shotgun -s thin -o $IP -p $PORT
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment