Skip to content

Instantly share code, notes, and snippets.

View maddox's full-sized avatar

Jon Maddox maddox

View GitHub Profile
@maddox
maddox / bb_price_check.rb
Created November 7, 2019 22:14
Best Buy Price Checker
require 'rubygems'
require 'nokogiri'
require 'open-uri'
products = []
products << ["Beverage Cooler", "https://www.bestbuy.com/site/insignia-115-can-beverage-cooler-black-stainless-steel/6027001.p?skuId=6027001"]
products << ["10TB drive", "https://www.bestbuy.com/site/wd-easystore-10tb-external-usb-3-0-hard-drive-black/6278208.p?skuId=6278208"]
products << ["Hue White 4 pack", "https://www.bestbuy.com/site/philips-hue-white-a19-bluetooth-smart-led-bulb-4-pack-white/6347040.p?skuId=6347040"]
ruby - use the one on leopard
gems - sudo gem update --system
rails - sudo gem install rails
mongrel - sudo gem install mongrel
subversion - use the one on leopard
git - http://git-osx-installer.googlecode.com/files/git-1.5.6.4-intel-leopard.dmg (http://code.google.com/p/git-osx-installer/)
mysql - http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-5.0.51b-osx10.5-x86.dmg/from/http://mysql.osuosl.org/
postgres - on your own but i'm sure theres an installer, avoid macports at all costs, use google!
@maddox
maddox / lineup.txt
Created August 18, 2018 04:07
hdhomerun premium channels
QVC
WEATH
FNC
CNN
HLN
MSNBC
CNBC
CSPAN
ESPN
ESPN2
@maddox
maddox / ma2mame.rb
Created June 3, 2011 05:16
Convert a Maximus Arcade game list to a MameUI game list
require 'rubygems'
require 'json'
require 'open-uri'
filename = "MAME_Favorites.txt"
list_text = open(filename).read
# replace brackets
list_text.gsub!('[', '{')
#!/usr/bin/env ruby
#
# SHOW ME
# Takes X pictures of you via your iSight, animates them, uploads them to CloudApp, and puts
# the url in your clipboard
#
# This uses a bunch of projects to make the magic happen, mostly thanks
# to Zach Holman: http://github.com/holman
#
#
@maddox
maddox / gist:925543
Created April 18, 2011 15:19
Install ShairPort for 10.6
user, project = ARGV # 'tobi', 'liquid'
`git clone git@github.com:#{user}/#{project}/wiki.git`
@maddox
maddox / httparty_icebox.rb
Created October 13, 2009 22:02 — forked from karmi/httparty_icebox.rb
icebox httparty caching
# = Icebox : Caching for HTTParty
#
# Cache responses in HTTParty models [http://github.com/jnunemaker/httparty]
#
# === Usage
#
# class Foo
# include HTTParty
# include HTTParty::Icebox
# cache :store => 'file', :timeout => 600, :location => MY_APP_ROOT.join('tmp', 'cache')
@maddox
maddox / README.md
Created March 16, 2011 19:10 — forked from tmm1/README.md
def what_is_gist
"A bad ass version-able pastebin"
end