Skip to content

Instantly share code, notes, and snippets.

@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
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)"