Skip to content

Instantly share code, notes, and snippets.

@sagmor
sagmor / gist:1076336
Created July 11, 2011 17:29
How to upgrade Fail Fast
# Descargar el código
git clone git@github.com:ChileAgil/shapado.git
cd shapado
# Agregar repositorio oficial
git remote add upstream git://github.com/ricodigo/shapado.git
# Descargar última versión de Shapado
git pull upstream master
git push origin master
@sagmor
sagmor / gist:1041943
Created June 23, 2011 05:12
Patched Ruby 1.9.2 for faster load and GC
# Ruby 1.9 Fast require:
# https://gist.github.com/1008945
curl https://raw.github.com/gist/1008945/7532898172cd9f03b4c0d0db145bc2440dcbb2f6/load.patch > load.patch
# Ruby 1.9.2 GC Patch:
# https://gist.github.com/856296
curl https://raw.github.com/gist/856296/a19ac26fe7412ef398bd9f57e61f06fef1f186fe/patch-1.9.2-gc.patch > gc.patch
rvm install 1.9.2-p180 --patch load.patch,gc.patch
rm gc.patch load.patch
<VirtualHost *:80>
ServerName osiris.firenxis.com
DocumentRoot /var/www/datatube/current/public
<Directory /var/www/datatube/current/public>
AllowOverride all
Options -MultiViews
</Directory>
</VirtualHost>
#! /bin/sh
# start / stop script for mongodb
### BEGIN INIT INFO
# Provides: mongod
# Required-Start: \$remote_fs \$syslog
# Required-Stop: \$remote_fs \$syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
@sagmor
sagmor / Capfile
Created November 28, 2009 20:11
Cake PHP Capfile example
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
load 'app/config/deploy'
namespace :deploy do
task :restart do
# How to restart Your Server
end
task :finalize_update do
['secret','database'].each do |config|