Skip to content

Instantly share code, notes, and snippets.

@mmalawski
mmalawski / 10.8 Rails Development Environment
Created October 7, 2012 14:20
Mac OSX Mountain Lion guide to installing Ruby,Rails,MySQL,Mon
# Mac OSX Mountain Lion
# Ruby on Rails Development Environment
# RVM
curl -L https://get.rvm.io | bash -s stable && rvm install 1.9.3 && rvm install 1.8.7
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
source ~/.bash_profile
# Disable rarely used RDOC
// Targets a select field and turns it into a custom select using html/css and jQuery
// converted to js Object: http://www.jankoatwarpspeed.com/post/2009/07/28/reinventing-drop-down-with-css-jquery.aspx
function jQuerySelect(select_id){
var _self = this;
this.select_id = select_id;
this.placeholder = select_id + "_placeholder";
this.target = select_id + "_target";
this.selected = $(this.select_id).find("option[selected]");
this.select_options = $("option","#"+select_id);
this.select_class = "dropdown";
# Don't have wget? http://www.statusq.org/archives/2008/07/30/1954/
# Broken links? Find it here: http://libweb-mirror.veidrodis.com/image_magick/delegates/
wget http://nongnu.askapache.com/freetype/freetype-2.3.9.tar.gz
tar zxvf freetype-2.3.9.tar.gz
cd freetype-2.3.9
./configure --prefix=/usr/local
sudo make
sudo make install
cd /usr/local/src