Skip to content

Instantly share code, notes, and snippets.

@adrienjoly
Created June 24, 2014 16:31
Show Gist options
  • Select an option

  • Save adrienjoly/70510bfbd4e0ce302566 to your computer and use it in GitHub Desktop.

Select an option

Save adrienjoly/70510bfbd4e0ce302566 to your computer and use it in GitHub Desktop.
Simple HTTP server
# set mac osx's terminal title
echo -n -e "\033]0;http server\007"
# make sure to switch to the script's dir (e.g. when launched via mac osx's finder)
cd `dirname "$0"`
python -m SimpleHTTPServer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment