Skip to content

Instantly share code, notes, and snippets.

View robb-broome's full-sized avatar

Robb Broome robb-broome

View GitHub Profile
require 'opencv'
include OpenCV
class FaceRecognizer
attr_reader :image_path
def initialize image_path_object
@image_path = image_path_object.to_s
end

#Install opencv MacOSX Mavericks

  1. fire up xcode - to insure that command line tools are there.
  2. xcode-select --install (older OS?)
  3. https://developer.apple.com/downloads/index.action# (you need an apple developer account, use your apple id)
  4. brew update
  5. brew tap homebrew/science
Cloning into '/usr/local/Library/Taps/homebrew-science'...
remote: Reusing existing pack: 3765, done.
@robb-broome
robb-broome / cap put_keys task
Created November 19, 2010 03:09
Put your ssh keys on the target for fast, smooth operation. (assumes id_dsa.pub)
desc "put your ssh keys on the target for fast, smooth operation."
task :put_keys do
run "mkdir ~/.ssh" rescue nil
system("ssh #{user}@#{app} \"echo `cat ~/.ssh/id_dsa.pub` >> ~/.ssh/authorized_keys\"")
run "chmod 700 ~/.ssh; chmod 600 ~/.ssh/authorized_keys;"
end