Skip to content

Instantly share code, notes, and snippets.

@agness
agness / dummy-web-server.py
Last active January 8, 2019 15:43 — forked from bradmontgomery/dummy-web-server.py
Py3 minimal http server. Responds to GET, HEAD, POST requests.
#!/usr/bin/env python
"""
Very simple HTTP server in python.
Usage::
./dummy-web-server.py [<port>]
Send a GET request::
curl http://localhost
@agness
agness / install_ruby_with_rbenv.md
Last active September 23, 2020 00:54 — forked from stonehippo/install_ruby_with_rbenv.md
Installing a new Ruby with rbenv on Mac OS

Install a new Ruby with rbenv on Mac OS (and make yourself a superhero)

Modified from the original at stonehippo/install_ruby_with_rbenv.md

If you're doing stuff with Ruby on a Mac, e.g. installling Jekyll or something, by default you'll end up having to use the sudo command to do stuff, since the permission to modify the default config is not available to your user account.

This sucks and should be avoided. Here's how to fix that.

Installing a new Ruby