Skip to content

Instantly share code, notes, and snippets.

@cloud8421
cloud8421 / postgres_upgrade
Last active December 23, 2015 17:19 — forked from EdwardTippett/postgres_upgrade
Osx upgrade postgres from 9.2.4 to 9.3
Steps to install and run PostgreSQL 9.3 using Homebrew (Mac OS X)
(if you aren't using version 9.2.4, change to the correct version)
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
mv /usr/local/var/postgres /usr/local/var/postgres92
brew upgrade postgresql
initdb /usr/local/var/postgres -E utf8
pg_upgrade -b /usr/local/Cellar/postgresql/9.2.4/bin -B /usr/local/Cellar/postgresql/9.3.0/bin -d /usr/local/var/postgres92 -D /usr/local/var/postgres
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
@cloud8421
cloud8421 / gist:3121704
Created July 16, 2012 09:11 — forked from olivernn/gist:3121642
tlux dsl
name "rails"
description "rails development environment"
window "editor", selected: true do
command "vim ."
split :horizontal, height: 20
split :vertical do
dir "~/code/hotrod"
@cloud8421
cloud8421 / chef_solo_bootstrap.sh
Created June 16, 2012 18:32 — forked from cjoudrey/chef_solo_bootstrap.sh
Bootstrap Chef Solo (Ubuntu 12.04)
#!/usr/bin/env bash
sudo apt-get -y update
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
tar -xvzf ruby-1.9.3-p194.tar.gz
cd ruby-1.9.3-p194/
./configure --prefix=/usr/local
make
sudo make install
@cloud8421
cloud8421 / install.sh
Created March 26, 2012 09:09 — forked from lambdalisue/install.sh
Install tmux 1.6 on Ubuntu 10.04
wget -q -O - https://raw.github.com/gist/2204072/install_tmux_1.6_on_ubuntu_10.04.sh | sudo bash
@cloud8421
cloud8421 / .vimrc
Created March 7, 2012 08:26 — forked from napcs/.vimrc
Set up Vim on Mac or Linux. curl https://raw.github.com/gist/532968/vim.sh | sh
" this is the configuration file for linux and mac systems
" symlink this to your home folder as .vimrc
" It loads pathogen and loads all modules from ~/.vim/bundles.
" It then loads ~/.vimrc_main which has the main
" configuration that works across all systems.
call pathogen#runtime_prepend_subdirectories(expand('~/.vim/bundles'))
call pathogen#helptags()
source ~/.vimrc_main
@cloud8421
cloud8421 / devise.it.yml
Created February 16, 2012 13:45 — forked from ilpeste/devise.it.yml
I18n for Devise >= 2.0
# Italian translation for Devise >= 2.0
# Date: 2011-08-25
# Author: cloud8421
# Note: Thanks to mcanato (https://gist.github.com/1170644) for the first translation
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
it:
errors:
messages: