Skip to content

Instantly share code, notes, and snippets.

@zhongqf
zhongqf / chef_solo_bootstrap.sh
Created October 18, 2012 14:32 — forked from kaichen/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 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 --disable-install-rdoc
make
@zhongqf
zhongqf / Rails_3_Application_Template.rb
Created December 19, 2010 10:07
A full-stack rails 3 application template extracted from greendog99/greendog-rails-template
require "colored"
require "rails"
require "haml"
require "bundler"
@partials = "#{File.dirname(__FILE__)}"
puts "\n========================================================="
puts " FISCHER'S RAILS 3 TEMPLATE".yellow.bold
puts "=========================================================\n"