usunyu   Stay hungry. Stay foolish.

Start a Simple Web Server from Any Directory

// Mac
$ python -m SimpleHTTPServer 8000
// Windows
$ python -m http.server 8000

You may want to change the port if you already have something running on 8000, but other than that the command doesn’t require much alteration. It’s a great little snippet to keep in mind (or in your TextExpander shortcuts) for the next time you need a quick little web server.

$ ifconfig en0

Check local IP address.