Skip to content

Instantly share code, notes, and snippets.

@aroscoe
aroscoe / serve.sh
Created May 16, 2011 22:08 — forked from iamjwc/serve.sh
Start a simple python server to serve files
#!/usr/bin/env bash
IP=`ifconfig | grep "inet " | grep -v "inet 127.0.0.1" | cut -f 2 -d " "`
PORT=$1
if [ -z "$1" ]
then
PORT=8000
fi
# Copy ip and port to pasteboard