This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Postgis < Formula | |
url 'http://postgis.refractions.net/download/postgis-1.5.3.tar.gz' | |
homepage 'http://postgis.refractions.net/' | |
sha256 'a2334f8b229446c0497d48a430a40152a3b71a5da02f414a0340a0a025d416cf' | |
head 'http://svn.osgeo.org/postgis/trunk/', :using => :svn | |
depends_on 'postgresql91' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Ensure compiler isn't already installed | |
[[ -d /usr/local/gcc_arm/ ]] && echo 'gcc_arm already installed. Aborting...' && exit 1 | |
echo '---> Downloading gcc arm to your current directory' | |
[[ ! -f gcc-arm-none-eabi-4_8-2014q2-20140609-mac.tar.bz2 ]] && \ | |
curl https://s3.amazonaws.com/ericboehs-uploads/gcc-arm-none-eabi-4_8-2014q2-20140609-mac.tar.bz2 > gcc-arm-none-eabi-4_8-2014q2-20140609-mac.tar.bz2 | |
# Rehosted on Amazon S3 as launchpad is really slow. | |
# If you are uncomfortable downloading from an unknown source, replace the above with: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rest_client" | |
require "twitter" | |
URL = "http://www.oge.com/residential-customers/products-and-services/" + | |
"Positive-Energy-Smart-Grid/Pages/PriceSignal.aspx" | |
DATE_RE = Time.now.strftime("%A,\\s+%B\\s+%d,\\s+%Y") | |
unless ARGV.size == 4 | |
abort "USAGE: #{$PROGRAM_NAME} CONSUMER_KEY CONSUMER_SECRET " + | |
"OAUTH_TOKEN OAUTH_TOKEN_SECRET" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN:VCARD | |
VERSION:3.0 | |
PRODID:-//Apple Inc.//iOS 5.1.1//EN | |
N:;;;; | |
FN:Pager Duty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# #{Rails.root}/lib/tasks/databases.rake | |
=begin | |
Monkey Patch | |
activerecord-3.0.9/lib/active_record/railties/databases.rake | |
clears obstinate stale PG session to get parallel_tests working | |
also, PG user must be superuser to use these low level PG functions | |
=end | |
def drop_database(config) | |
case config['adapter'] | |
when /mysql/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
############################################################# | |
# Lighter -- Campfire from the command line # | |
# # | |
# Installation: # | |
# gem install tinder # | |
# chmod +x lighter # | |
# # | |
# Usage: # |