Skip to content

Instantly share code, notes, and snippets.

martinseener / gist:98d2690d48895be25d0f
Created Jan 5, 2016 — forked from brenes/gist:bfaf3aad4d456e9063a0
Installing ruby stuff on Debian Jessie
View gist:98d2690d48895be25d0f
* First: Install libxml2 through RVM
rvm pkg install libxml2
* Then: Configure libxml in bundle
bundle config build.libxml-ruby \
--with-xml2-lib=${HOME}/.rvm/usr/lib \
martinseener / postgresql_9.1_to_9.3_on_ubuntu_debian
Last active Mar 14, 2017 — forked from mdpatrick/postgresql_9.1_to_9.3_on_ubuntu_12.04
Small pg_upgrade HowTo for Debian and Ubuntu for PG 9.1 to 9.3 (also works for other versions as well)
View postgresql_9.1_to_9.3_on_ubuntu_debian
# Probably excessive, but it makes these instructions simpler
sudo -i
# Add postgresql repo and update apt listing
echo "deb squeeze-pgdg main" > /etc/apt/sources.list.d/pgdg.
wget --quiet -O - | sudo apt-key add -
apt-get update
# For some reason this is necessary with PostgreSQL on Ubuntu 12.04
update-alternatives --remove postmaster.1.gz /usr/share/postgresql/9.1/man/man1/postmaster.1.gz
#! /bin/bash
# This script needs "fpm". If you dont have it,
# run "gem install fpm"
# You also need to "apt-get install python-setuptools" (otherwise fpm fails)
clean() {
rm -rf whisper-0.9.9 carbon-0.9.9 graphite-web-0.9.9