Skip to content

Instantly share code, notes, and snippets.

View ericboehs's full-sized avatar

Eric Boehs ericboehs

  • Oddball
  • Enid, OK
  • 21:54 (UTC -05:00)
View GitHub Profile
@ericboehs
ericboehs / postgis.rb
Last active August 29, 2015 14:28 — forked from jgeo/postgis.rb
postgis 1.5.3
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'
#!/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:
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"
@ericboehs
ericboehs / PagerDuty.vcf
Created October 30, 2012 05:32
Contact card for PagerDuty numbers
BEGIN:VCARD
VERSION:3.0
PRODID:-//Apple Inc.//iOS 5.1.1//EN
N:;;;;
FN:Pager Duty
@ericboehs
ericboehs / databases.rake
Created October 5, 2012 06:07 — forked from ak47/databases.rake
Monkey patch activerecord-3.0.9/lib/active_record/railties/databases.rake enables parallel_tests to work on my PG Jenkins CI
# #{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/
@ericboehs
ericboehs / lighter
Created November 13, 2010 00:12 — forked from jnunemaker/lighter.rb
#!/usr/bin/env ruby
#############################################################
# Lighter -- Campfire from the command line #
# #
# Installation: #
# gem install tinder #
# chmod +x lighter #
# #
# Usage: #