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
cd /opt/apps/search/tomcat/bin
./catalina.sh start
cd <your app dir>
redis-server config/redis.conf
redis-server config/redis.test.conf
# i am in /etc/nginx/sites-available/
if (-f $document_root/system/maintenance.html) {
return 503;
}
error_page 503 @maintenance;
location @maintenance {
rewrite ^(.*)$ /system/maintenance.html last;
break;
**.orig
*.pid
*.rbc
*.swo
*.swp
*~
.DS_Store
.powrc
.rspec
.rvmrc

Keybase proof

I hereby claim:

  • I am robb-broome on github.
  • I am broomer (https://keybase.io/broomer) on keybase.
  • I have a public key whose fingerprint is 7551 87E0 B539 A2C8 ED05 8979 4A3B 807D D824 B884

To claim this, I am signing this object:

[hub]
protocol = https
[user]
name = robb-broome
email = robb@teamvoice.com
[credential]
helper = osxkeychain
[alias]
promote = !$ZSH/bin/git-promote
count = !git shortlog -sn
@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

Keybase proof

I hereby claim:

  • I am robb-broome on github.
  • I am broomer (https://keybase.io/broomer) on keybase.
  • I have a public key whose fingerprint is F7A3 D53C 93E8 FED6 2580 19B0 B946 B84D 6E13 F8E5

To claim this, I am signing this object:

You have permissions to test-us-blinds-102763020
Checking if Target is Set:
Target not required for non-prod deploys
skipping prepare_branches since DEPLOY_BRANCH was not set..
Deploying Target_SHA 12b1627282388834ee3672bc90d89b4d1da5917a
Pulling latest remote changes for us_blinds_differing_from_installment_amounts_102763020
Already up-to-date.
Already up-to-date.
Resolving dependencies...........
The Gemfile's dependencies are satisfied

#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.