Skip to content

Instantly share code, notes, and snippets.

View mustmodify's full-sized avatar

Johnathon E Wright mustmodify

View GitHub Profile
@bartimaeus
bartimaeus / install-ruby.sh
Created May 31, 2012 19:55 — forked from ryanb/chef_solo_bootstrap.sh
Install Ruby 1.9.3-p286 on Ubuntu 12.04 LTS
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libxml2-dev libxslt-dev libreadline6-dev libyaml-dev
# apt-get -y install libmysqlclient-dev # uncomment for mysql support
cd /tmp
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p286.tar.gz
tar -xvzf ruby-1.9.3-p286.tar.gz
cd ruby-1.9.3-p286/
./configure --prefix=/usr/local
make
@ebot
ebot / decode.rb
Created February 9, 2012 17:02
Sample encoding and decoding hl7 messages from EDM ADR
#!/usr/bin/env ruby -w
# encoding: UTF-8
require 'base64'
input = ''
unless ARGV[0] == 'hl7'
input = File.read 'doc_base64.txt'
else
input = File.read( 'hl7_samples/working_hl7_sample.txt' ).split( '^Base64^' )[1]