Skip to content

Instantly share code, notes, and snippets.

View benwyrosdick's full-sized avatar

Ben Wyrosdick benwyrosdick

View GitHub Profile
curl -X POST 'http://colormind.io/api/' --data-binary '{"model":"default"}'
@benwyrosdick
benwyrosdick / Gemfile
Last active February 5, 2016 00:56
Password Protected Static Rack Site
gem 'rack'
[
{
"name": "Tiger Nixon",
"position": "System Architect",
"salary": "$320,800",
"start_date": "2011/04/25",
"office": "Edinburgh",
"extn": "5421"
},
{
@benwyrosdick
benwyrosdick / .bashrc
Created December 4, 2014 14:34
Tab complete on git branch checkouts
function co {
git checkout $1
}
function _co {
local cur branches
[ -d .git ] || return 0
eval 'COMPREPLY=()'

Keybase proof

I hereby claim:

  • I am benwyrosdick on github.
  • I am benwyrosdick (https://keybase.io/benwyrosdick) on keybase.
  • I have a public key whose fingerprint is D0B7 8828 F708 2DEA BB9D 56DD 6BF4 F9E6 2076 AFF3

To claim this, I am signing this object:

-- Ingress Map Analyser --
Portals: 384
Links: 1136
0. 3536 Shelby Fountain
0.0 Concord Baptist Church
0.1 North Shelby Fountain
0.2 Shelby Fountain
0.3 Zapopan Authentic Mexican
@benwyrosdick
benwyrosdick / gist:11270837
Created April 24, 2014 21:52
Burlingame / San Mateo Links
-- Ingress Map Analyser --
Portals: 215
Links: 628
0. "Leon"
0.0 Central Park Japanese Garden
0.1 For All the People
0.2 Graffiti Mural
0.3 Japanese Garden Ancient Tower Statue
@benwyrosdick
benwyrosdick / gist:2410135
Created April 18, 2012 00:39
Resize all my main apps for either laptop or cinema display mode
set leftArrow to 123
set rightArrow to 124
set upArrow to 126
set downArrow to 125
set halfScreen to {control down, option down, command down}
set quarterScreen to {shift down, control down, option down}
tell application "Finder" to set screenSize to bounds of window of desktop
set width to item 3 of screenSize
@benwyrosdick
benwyrosdick / twitter_pic
Created March 11, 2010 04:43
Take a snapshot with iSight and upload it to twitter as you profile picture
#!/bin/sh
#
# download isightcapture at link below
# http://www.intergalactic.de/pages/iSight_files/isightcapture1_1.dmg
isightcapture -t png /tmp/capture.png
curl -u user:pass -H 'Expect:' -F image=@'/tmp/capture.png;type=image/png' http://api.twitter.com/1/account/update_profile_image.xml > /dev/null
echo "Profile Pic Updated"
config = URI.parse(ENV['MONGO_URL'] || 'mongodb://localhost:27017/thedb')
MongoMapper.connection = Mongo::Connection.new(config.host, config.port)
MongoMapper.database = config.path.gsub(/^\//, '')
MongoMapper.database.authenticate(config.user, config.password) if config.user