Skip to content

Instantly share code, notes, and snippets.

View stfcodes's full-sized avatar
🏠
Working from home

Stefan Rotariu stfcodes

🏠
Working from home
  • Bucharest
  • 03:41 (UTC +02:00)
View GitHub Profile
@willurd
willurd / web-servers.md
Last active March 23, 2026 11:18
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
@trcarden
trcarden / gist:3295935
Created August 8, 2012 15:28
Rails 3.2.7 SSL Localhost (no red warnings, no apache config)
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key