Skip to content

Instantly share code, notes, and snippets.

View bumi's full-sized avatar

Michael Bumann bumi

View GitHub Profile
@bumi
bumi / AfricaHackTrip_recap_3.md
Created November 16, 2012 16:23 — forked from gr2m/AfricaHackTrip_recap_3.md
3rd recap of the AfricaHackTrip project. Find out more at www.africahacktrip.org

We've made some great progress in the past two weeks, thanks y'all!

  1. New Website online
  2. New timeframe for project + survey
  3. Hackathon on Dec 1st/2nd
  4. First contact with Nairobi
  5. Team meeting on Monday
  6. Vacant team roles
  7. Misc
@bumi
bumi / psych_yml_tester.rb
Created June 7, 2011 09:53 — forked from jhilden/yamltester.rb
YAML tester
# USAGE:
# ruby -e "$(curl -fsSL https://raw.github.com/gist/1011972/2e6ac978bc06905f60e380b5fe5abbf898b3af0a)" <directory>
# for example:
# ruby -e "$(curl -fsSL https://raw.github.com/gist/1011972/2e6ac978bc06905f60e380b5fe5abbf898b3af0a)" .
require 'rubygems'
require 'yaml'
YAML::ENGINE.yamler = 'psych'
directory = ARGV[0]
class MagickIdentify
attr_reader :data
def initialize(image_path)
@image_path = image_path
@data = {}
execute_and_parse
end
def method_missing(method, *args)
#!/usr/bin/env ruby
#actually I just wanted to try forking a gist :D
exit unless ARGV.size == 1
pids = %x[ps ax|grep #{ARGV[0]}|grep -v grep].split("\n").map{|line| line.strip.scan(/^\d+/).first.to_i} - [Process.pid]
if pids.any?
system "kill #{pids.join(' ')}"
puts "killed #{pids.size} #{ARGV[0]} instance(s)"