Skip to content

Instantly share code, notes, and snippets.

View ebetancourt's full-sized avatar
Working

Elliot Betancourt ebetancourt

Working
View GitHub Profile
after "deploy", "deploy:cleanup"
after "deploy:update_code", "composer:install"
before "composer:install", "composer:copy_vendors"
after "composer:install", "phpunit:run_tests"
namespace :composer do
desc "Copy vendors from previous release"
task :copy_vendors, :except => { :no_release => true } do
run "if [ -d #{previous_release}/vendor ]; then cp -a #{previous_release}/vendor #{latest_release}/vendor; fi"
end
@ebetancourt
ebetancourt / chef_solo_bootstrap.sh
Created August 17, 2012 16:24 — forked from ryanb/chef_solo_bootstrap.sh
Bootstrap Chef Solo
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
tar -xvzf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
./configure --prefix=/usr/local
make
make install
@ebetancourt
ebetancourt / install-apache.sh
Created July 31, 2012 20:49
Set up apache on Mountain Lion
mkdir -p ~/Sites
mkdir -p ~/Sites/logs
mkdir -p ~/Sites/conf
mkdir -p ~/Sites/conf/vhosts
touch ~/Sites/conf/httpd-vhosts.conf
export USERDIR=`whoami`
cat >> ~/Sites/conf/httpd-vhosts.conf <<EOF
#
# Use name-based virtual hosting.
#
@ebetancourt
ebetancourt / gist:3194974
Last active October 7, 2015 16:38 — forked from matiskay/gist:3181894
Clean Install – Mountain Lion OS X 10.8 DP3
@ebetancourt
ebetancourt / development.rb
Created May 10, 2012 17:07 — forked from MyArtChannel/development.rb
Use Pry as IRB replacement in rails 3 console
# Add this to the end of your development.rb and add
#
# gem 'pry'
#
# to your Gemfile and run bundle to install.
silence_warnings do
begin
require 'pry'
IRB = Pry