Skip to content

Instantly share code, notes, and snippets.

View glanotte's full-sized avatar

Geoff Lanotte glanotte

View GitHub Profile
@glanotte
glanotte / mvim
Created September 28, 2010 13:34
mvim shell script
#!/bin/sh
#
# This shell script passes all its arguments to the binary inside the
# MacVim.app application bundle. If you make links to this script as view,
# gvim, etc., then it will peek at the name used to call it and set options
# appropriately.
#
# Based on a script by Wout Mertens and suggestions from Laurent Bihanic. This
# version is the fault of Benji Fisher, 16 May 2005 (with modifications by Nico
# Weber and Bjorn Winckler, Aug 13 2007).
@glanotte
glanotte / production.rb
Created November 30, 2012 15:52
Unicorn init.d script with support for different rvm gemsets
# RAILS_ROOT/config/unicorn.rb
# Search for "# SET ME!" and replace these with your own settings!.
HOW_DEEP_WE_R_FROM_RAILS_ROOT = "../.."
# Set environment to development unless something else is specified
RAILS_ROOT = File.expand_path(HOW_DEEP_WE_R_FROM_RAILS_ROOT, File.dirname(__FILE__))
SHARED_PATH = File.expand_path('../shared', RAILS_ROOT)
ENV['BUNDLE_GEMFILE'] = File.expand_path("#{HOW_DEEP_WE_R_FROM_RAILS_ROOT}/Gemfile", File.dirname(__FILE__))
@glanotte
glanotte / item-error.json
Last active August 29, 2015 14:22
Collection+JSON item-error extension
{
"collection": {
"version": "123",
"items": [{
"href": "http://example.com/contacts/1",
"data": [
{"name": "id", "value": "1"}
]
},{
"item-error": "This object is invalid",

Keybase proof

I hereby claim:

  • I am glanotte on github.
  • I am glanotte (https://keybase.io/glanotte) on keybase.
  • I have a public key whose fingerprint is 0A9C 06E8 289B 8FA0 0C20 CF99 3E15 A54D D347 9586

To claim this, I am signing this object: