Skip to content

Instantly share code, notes, and snippets.

View robotmay's full-sized avatar

Robert May robotmay

View GitHub Profile

#Rails Girls Things

Rob's Introduction to Programming

@robotmay
robotmay / Questions
Created August 8, 2011 23:12
Frozen Rails Give-away
Day job: Web Developer at Core Web Design (in the land of persistent rain; Wales).
Your Rails contributions (if any): Moral support and a few decent bug reports.
What's your Ruby/Rail experience?: Nearly two years using Ruby/Rails. Currently using it to build projects at work and at home which I wouldn't dream of attempting by myself in anything else.
How do you use GitHub?: I use GitHub for my own projects, my work projects, and even more as my go-to place for library discovery.
# using rvm with ruby-1.8.7-p249
# latest version 2.7.7 2010-06-17
sudo brew install libxml2
# installing libxslt from source code
wget ftp://xmlsoft.org/libxml2/libxslt-1.1.26.tar.gz
tar -xzvf libxslt-1.1.26.tar.gz
cd libxslt-1.1.26
./configure --prefix=/usr/local/Cellar/libxslt/1.1.26 --with-libxml-prefix=/usr/local/Cellar/libxml2/2.7.7
#!/bin/bash
# run with: curl -s http://gist.github.com/265272.txt | bash
set -e
localdir=$HOME/.mongodb
datadir=$localdir/data
conf=$localdir/mongod.conf
agentdir=$HOME/Library/LaunchAgents
agent=$agentdir/org.mongodb.mongod.plist
for name in params[:post][:categories].split(",")
post.categories.find_or_create_by_name(name)
end