Skip to content

Instantly share code, notes, and snippets.

@jayzeng
Created June 11, 2013 05:49
Show Gist options
  • Select an option

  • Save jayzeng/5754705 to your computer and use it in GitHub Desktop.

Select an option

Save jayzeng/5754705 to your computer and use it in GitHub Desktop.
server function from paul irish
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