Skip to content

Instantly share code, notes, and snippets.

View jaamo's full-sized avatar

Jaakko Alajoki jaamo

View GitHub Profile
@jaamo
jaamo / web-servers.md
Last active October 15, 2017 19:08 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@jaamo
jaamo / 0_reuse_code.js
Created March 10, 2016 12:00
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console