Skip to content

Instantly share code, notes, and snippets.

View jackbit's full-sized avatar

Yacobus Reinhart jackbit

View GitHub Profile
# Build dependencies for OpenResty.
sudo apt-get install build-essential libpcre3-dev libssl-dev libgeoip-dev
# Install standard Nginx first so that you get the relevant service scripts installed too
sudo apt-get install nginx
# If you want to access Postgres via Nginx
sudo apt-get install libpq-dev

Weekly backups of PostgreSQL database to Amazon S3

  1. I did this as root: $ sudo su, although it may not be necessary.
  2. Download AWS command line tools: $ curl https://raw.github.com/timkay/aws/master/aws -o aws
  3. Install:
    • Automatically: $ perl --install aws
    • Manually: $ mv aws /usr/local/bin/ && chmod +x /usr/local/bin/aws
@jackbit
jackbit / complete_ruby_haproxy_monit
Last active August 29, 2015 14:19
Installation script for Ubuntu Trusty 14 with rbenv, haproxy, monit
#!/bin/bash
# Installation script for Ubuntu Trusty 14 with rbenv, haproxy, monit
# Author: Yacobs Reinhart <[email protected]>
set -e
CURRENT=`pwd`
echo "..... UPDATE UBUNTU PACKAGES ....."
apt-get update
apt-get install -y --force-yes build-essential curl git