Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.