Skip to content

Instantly share code, notes, and snippets.

View andoy's full-sized avatar

Andro Salinas andoy

View GitHub Profile
@andoy
andoy / bashrc
Created February 10, 2013 14:10
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@andoy
andoy / Error_Enrolling_RightLink_instance
Created September 24, 2012 06:27
ERROR -- : No enrollment response - Enrolling RightLink instance
@andoy
andoy / gist:3567621
Created September 1, 2012 08:54 — forked from defunkt/gist:208588
# This will ride alongside god and kill any rogue memory-greedy
# processes. Their sacrifice is for the greater good.
unicorn_worker_memory_limit = 300_000
Thread.new do
loop do
begin
# unicorn workers
#
$ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
$ echo "[[ -s "$HOME/.rvm/scripts/rvm" ]] && . '$HOME/.rvm/scripts/rvm'" >> ~/.bashrc
$ source ~/.bashrc
$ sudo su
# apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev
# exit
$ rvm install ruby-1.9.2-p180