Skip to content

Instantly share code, notes, and snippets.

Avatar

Ryan Bigg radar

View GitHub Profile
View part 2?
totalprice=0
totalitemcount=0
laborcharge=0
discount= 0
totalgccount=0
View email.rl
%%{
machine rfc2822_header;
action mark {
@pos = p
}
action domain {
# We have to match 'foo . bar' per the tests and transform it into 'foo.bar'
@parts[:host] = data[@pos..p-1].delete(" ")
View upgrade_ruby.sh
#!/bin/bash
apt-get update
apt-get install -y build-essential libssl-dev libncurses5-dev libreadline5-dev zlib1g-dev linux-headers-generic libsqlite3-dev
cd /tmp
wget http://repo.webbynode.com/ruby-1.9.2-p290_i386.deb
dpkg -i ruby-1.9.2-p290_i386.deb
rm ruby-1.9.2-p290_i386.deb