Skip to content

Instantly share code, notes, and snippets.

View hacksparrow's full-sized avatar

Hage Yaapa hacksparrow

View GitHub Profile
@hacksparrow
hacksparrow / web-servers.md
Created March 25, 2018 04:25 — 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

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser