Skip to content

Instantly share code, notes, and snippets.

View pmamediagroup's full-sized avatar

Geoff Nelson pmamediagroup

View GitHub Profile

Keybase proof

I hereby claim:

  • I am pmamediagroup on github.
  • I am gwerf (https://keybase.io/gwerf) on keybase.
  • I have a public key ASALsEkzze1dSahy4BEpdRhyIF7lrrnsC3U9c6VvapqtGgo

To claim this, I am signing this object:

@pmamediagroup
pmamediagroup / proxy.rb
Created March 13, 2012 22:41 — forked from torsten/proxy.rb
A quick HTTP proxy server in Ruby.
#!/usr/bin/env ruby
# A quick and dirty implementation of an HTTP proxy server in Ruby
# because I did not want to install anything.
#
# Copyright (C) 2009 Torsten Becker <torsten.becker@gmail.com>
require 'socket'
require 'uri'
@pmamediagroup
pmamediagroup / gist:828218
Created February 15, 2011 20:51
Updating Nginx
The first step is to make sure you have ruby installed. Then gem install passenger
If you're upgrading mothership, download the Nginx-upload-module. Otherwise, just ignore all instructions regarding it.
http://www.grid.net.ru/nginx/upload.en.html (scroll almost to the bottom or search for Download)
extract that into whatever directory you want
download and extract Nginx source http://nginx.org/
run the passenger install script (passenger-install-nginx-module)
tell passenger you want to compile nginx from source. You'll want to do the following:
- tell it to install nginx in /opt/nginx