Skip to content

Instantly share code, notes, and snippets.

@thattommyhall
thattommyhall / gist:3017841
Created June 29, 2012 13:12 — forked from fcoury/gist:1068141
fpm ruby-1.9.3 ON UBUNTU 12.04
sudo apt-get install libssl-dev libreadline-dev libyaml-dev build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison libffi-dev
sudo gem install fpm
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
tar -zxvf ruby-1.9.3-p194.tar.gz
./configure --prefix=/usr && make && make install DESTDIR=/tmp/ruby193
fpm -s dir -t deb -n ruby -v 1.9.3-p194 -C /tmp/ruby193 \
@thattommyhall
thattommyhall / gist:953400
Created May 3, 2011 14:14 — forked from andykent/gist:925458
Nginx Upstart
description "nginx http daemon"
start on runlevel [2345]
stop on runlevel [!2345]
exec /opt/nginx/sbin/nginx -g "daemon off;"
respawn