Skip to content

Instantly share code, notes, and snippets.

@commadelimited
Created October 17, 2012 14:43
Show Gist options
  • Save commadelimited/3905895 to your computer and use it in GitHub Desktop.
Save commadelimited/3905895 to your computer and use it in GitHub Desktop.
Python http server
function server(){
local port="${1:-8000}"
open "http://localhost:${port}/"
python -m SimpleHTTPServer "$port"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment