Skip to content

Instantly share code, notes, and snippets.

View kelan's full-sized avatar

Kelan Champagne kelan

View GitHub Profile
@kelan
kelan / keybase.md
Last active March 9, 2017 07:05
Proving my GitHub identity to keybase.io

Keybase proof

I hereby claim:

  • I am kelan on github.
  • I am kelan (https://keybase.io/kelan) on keybase.
  • I have a public key ASALCq_STqgOh0ffMVy7om22KGH6mozeKXkbLfHGSTVPLgo

To claim this, I am signing this object:

@kelan
kelan / generate_personal_podcast.rb
Created January 22, 2012 23:55
A script for generating a personal podcast feed from mp3 files in a public Dropbox folder.
#!/usr/bin/env ruby -wKU
#
# by Kelan Champagne
# http://yeahrightkeller.com
#
# A script to generate a personal podcast feed, hosted on Dropbox
#
# Inspired by http://hints.macworld.com/article.php?story=20100421153627718
#
# Simply put this, and some .mp3 or .m4a files in a sub-dir under your Dropbox
#!/usr/bin/env ruby
# To test is using `defaults.merge(options)` or `defaults.merge!(options)`
# is faster, I ran the following (manually replacing 'merge' with 'merge!'
# as appropriate):
10000000.times do
defaults = {:a => 1, :b => 2, :c => 3, :d => 4}
options = {:a => "another value", :d => true}
options = defaults.merge!(options)
@kelan
kelan / chviewpatch.rb
Created October 3, 2009 21:12
chviewpatch
#!/usr/bin/env ruby -w
#
# This is a script to help view a patch file in the Changes.app[1] UI. It is
# pretty basic, but does the job. It simply creates 2 copies of the file,
# where in one (the "original") it strips all the lines starting with '+', and
# the other (the "modified") it strips all the lines starting with '-'. It
# also removes the first character of all lines starting with a space, +, or -
# Then it simply uses the chdiff command line too to view the differences.
#
# It takes input either from filename arguments (multiple files are ok, but it
@kelan
kelan / run-queued-trac-post-commits.rb
Created June 3, 2009 03:35
run queued trac post commits
#!/usr/bin/ruby
tracDir = '/home/myUser/trac_projects/myProject'
logFilePath = tracDir + '/queued_post_commits.txt'
doneFilePath = tracDir + '/queued_post_commits_done.txt'
errorFilePath = tracDir + '/queued_post_commits_errors.txt'
postCommitScriptPath = tracDir + '/trac-post-commit-hook.py'
tracURL = 'http://trac.myDomain.com/myProject/'
errorEmailTo = 'me@myDomain.com'