Skip to content

Instantly share code, notes, and snippets.

View maddox's full-sized avatar

Jon Maddox maddox

View GitHub Profile
Process: iTunes [52549]
Path: /Applications/iTunes.app/Contents/MacOS/iTunes
Identifier: com.apple.iTunes
Version: 10.5.1 (10.5.1)
Build Info: iTunes-10514201~1
Code Type: X86-64 (Native)
Parent Process: launchd [212]
Date/Time: 2011-11-22 10:42:31.019 -0500
OS Version: Mac OS X 10.7.2 (11C74)
@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!('[', '{')
@maddox
maddox / gist:975568
Created May 16, 2011 23:09
How To Work With Xcode 4 All Day
$ crontab -e
30 * * * * killall Xcode && open /Developer/Applications/Xcode.app
require 'open-uri'
require 'net/http'
require 'openssl'
default_params = {"api" => "v1", "appid" => "iphone1_1", "apiPolicy" => "app1_1", "apiKey" => "2wex6aeu6a8q9e49k7sfvufd6rhh0n", "locale" => "en_US", "timestamp" => Time.now.to_i}
param_array = []
default_params.each_pair{|key, value| param_array << "#{key}=#{URI.escape(value.to_s)}" }
uri = URI::HTTP.build(:scheme => 'https', :host => "app.imdb.com", :path => "/find", :query => param_array.join("&"))
@maddox
maddox / gist:925543
Created April 18, 2011 15:19
Install ShairPort for 10.6
@maddox
maddox / README.md
Created March 16, 2011 19:10 — forked from tmm1/README.md
#!/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 / pug_time.rb
Created February 10, 2011 03:48
PugTime
require 'rubygems'
require 'httparty'
class PugTime
include HTTParty
base_uri "http://pugtime.tumblr.com/rss"
def self.random_pug
pugs = get_pugs
user, project = ARGV # 'tobi', 'liquid'
`git clone git@github.com:#{user}/#{project}/wiki.git`
@maddox
maddox / gist:750952
Created December 22, 2010 01:51
Just a list of a few things found on my desk before cleaning it
iPad
iPhone 4
iPhone 3G
iPod touch 2G
1 broken iPhone 2G
1 broken iPhone 3GS
4 pairs of sunglasses
1 Magic Mouse
1 Magic Trackpad
1 MS Explorer mouse