Skip to content

Instantly share code, notes, and snippets.

View taylor's full-sized avatar
🐢
🌊

Taylor Carpenter taylor

🐢
🌊
View GitHub Profile
@taylor
taylor / adhearsion-rhel5.sh
Created August 26, 2011 04:32 — forked from bklang/adhearsion-rhel5.sh
Adhearsion QuickStart for RedHat Enterprise Linux/CentOS 5
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-latest )
source /usr/local/rvm/scripts/rvm
echo "source /usr/local/rvm/scripts/rvm" >> $HOME/.profile
yum install -y bash curl gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel iconv-devel
rvm install 1.9.2
rvm use --default 1.9.2
gem install bundler
@taylor
taylor / GoogleVoiceDialerAction.scpt
Created June 27, 2011 06:41 — forked from matthewtodd/GoogleVoiceDialerAction.scpt
Command-line Google Voice dialer and Mac OSX Address Book Plug-In
-- Drop this script in ~/Library/Address Book Plug-Ins
-- Edit the path in the "do shell script" line
using terms from application "Address Book"
on action property
return "phone"
end action property
on action title for aPerson with aNumber
return "Dial with Google Voice"
end action title
@taylor
taylor / aws_cf_invalidate.rb
Created May 27, 2011 07:29 — forked from jmlacroix/aws_cf_invalidate.rb
Command line script to invalidate cloudfront objects
require 'rubygems'
require 'hmac-sha1'
require 'net/https'
require 'base64'
s3_access='S3_ACCESS_KEY'
s3_secret='S3_SECRET_KEY'
cf_distribution='CLOUDFRONT_DISTRIBUTION_ID'
if ARGV.length < 1
# So I bought this PDF book on ActiveMerchant from Peepcode.
# It's tests use Test::Unit, I was using RSpec. So I translated them.
# http://peepcode.com/products/activemerchant-pdf
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
include ActiveMerchant::Billing
describe OrderTransaction do
before do
@amount = 100