Skip to content

Instantly share code, notes, and snippets.

@jwulff
jwulff / google-cloud-vision-api-example.rb
Last active July 15, 2016 22:38
Google Cloud Vision API Example
# Get a server key https://cloud.google.com/vision/docs/getting-started
# $ ruby google-cloud-vision-api-example.rb KEY https://www.whitehouse.gov/sites/default/files/whitehouse_files/image/west_wing_main_photo.jpg
require 'net/https'
require 'json'
require 'base64'
require 'open-uri'
key = ARGV[0]
image_url = ARGV[1]
@jwulff
jwulff / keybase.md
Created March 27, 2014 16:39
keybase.md

Keybase proof

I hereby claim:

  • I am jwulff on github.
  • I am jwulff (https://keybase.io/jwulff) on keybase.
  • I have a public key whose fingerprint is 59E2 20D4 2836 BD82 A7CD 544A 96F7 E862 AFC7 97BF

To claim this, I am signing this object:

@jwulff
jwulff / gist:5759508
Created June 11, 2013 18:39
Gmail with a Tinfoil Hat

Encrypted Gmail

Inbound Mail

Inbound private (not Google) mail server that GPG's message subject, hashes addresses, GPG's original body & addresses, includes hashed keywords alongside GPG'd stuff in body. Forwards to Gmail.

Javascript on top of Gmail that decrypts GPG'd payload and hashes search box input for searching.

Outbound Mail

An Introduction to Distributed Algorithms
Valmir C. Barbosa
ISBN: 9780262514422
The Innovator's Way
Peter J. Denning and Robert Dunham
ISBN: 9780262014540
Modeling Business Processes
Wil van der Aalst and Christian Stahl
@jwulff
jwulff / gist:4541182
Last active December 11, 2015 03:58
Deploy notifications in Campfire that include GitHub compare view of what was deployed.
# In deploy.rb
require 'capistrano/campfire'
set :campfire_options, :account => 'orcasnet',
:room => 'Ops',
:token => 'XXX',
:ssl => true
after 'deploy', 'campfire:success'
after 'deploy:cold', 'campfire:success'
require 'factory_girl_rails'
FactoryGirl.define do
BLUTHS = [ 'Annyong',
'Buster',
'George',
'George Michael',
'Gob',
'Lindsay',
'Lucille',