Skip to content

Instantly share code, notes, and snippets.

@daiiz
Created March 16, 2015 16:13
Show Gist options
  • Save daiiz/974fd991c619c914d76f to your computer and use it in GitHub Desktop.
Save daiiz/974fd991c619c914d76f to your computer and use it in GitHub Desktop.
python server
#!/bin/sh
PORT=8000
if [ $# == 1 ]; then
PORT=$1
fi
python -m SimpleHTTPServer $PORT
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment