Skip to content

Instantly share code, notes, and snippets.

@ecmendenhall
Created March 26, 2013 06:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ecmendenhall/5243479 to your computer and use it in GitHub Desktop.
Save ecmendenhall/5243479 to your computer and use it in GitHub Desktop.
Handy Python one-liners I sometimes forget.

Serve files in the current directory over HTTP:

python -m SimpleHTTPServer 8000

Start a simple SMTP server that prints messages to stdout:

python -m smtpd -n -c DebuggingServer localhost:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment