Skip to content

Instantly share code, notes, and snippets.

View mboeh's full-sized avatar

Matthew Boeh mboeh

View GitHub Profile
@mboeh
mboeh / speak.rb
Last active August 29, 2015 14:04 — forked from mrinterweb/speak.rb
#! /usr/bin/env ruby
# Some of the words are misspelled to help the say program pronounce them right
#
# copy the following line and paste for fun!
# curl -O https://gist.githubusercontent.com/mrinterweb/0ed2ac30a97e25e03fad/raw/5da7c2a012a08cfcc9649e0f410d53f8986e4990/speak.rb && mv speak.rb speak && chmod a+x speak && ./speak
def envlist(name, &default)
results = (ENV["SPEAK_#{name.to_s.upcase}"] || "").split(":")
results.empty? ? default.call : results
end
@mboeh
mboeh / log.txt
Created August 21, 2012 17:18 — forked from steveklabnik/log.txt
A fun shell script from #euruku
$ history 1 | awk {'print $2, $3, $4'} | sort | uniq -c | sort -k1 -rn | head -n 30
172 fg
164 git st
163 ls
72 ruby create_event_local.rb blah
62 git push
59 git pull
54 git commit -m
50 git di
47 bundle