Instant web server with Python!

Have you ever wanted to copy something from one machine to another without having to setup FTP, NFS, Samba etc? Luckily Python offers to help by creating an instant web server in the directory it’s launched from:

Listening on port 8000 (default):
python -m SimpleHTTPServer

Listening on port 8080:
python -m SimpleHTTPServer 8080

Then just use wget from the other machine to download the file(s) you want. Magic!