Skip to content

Instantly share code, notes, and snippets.

View osheroff's full-sized avatar

Ben Osheroff osheroff

View GitHub Profile
@osheroff
osheroff / gist:3543195
Created August 30, 2012 22:29
faster git auto-complete
#!bash
#
# bash completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
@osheroff
osheroff / git-start-pull-request
Created October 5, 2012 20:32
git start-pull-request
#!/bin/bash
open "https://github.com/zendesk/zendesk/pull/new/`git rev-parse --abbrev-ref HEAD`"
@osheroff
osheroff / mutt_bgrun.sh
Created October 16, 2012 15:23
mutt_bgrun
#!/bin/sh
# @(#) mutt_bgrun $Revision: 1.4 $
# mutt_bgrun - run an attachment viewer from mutt in the background
# Copyright (C) 1999-2002 Gary A. Johnson
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
@osheroff
osheroff / gist:5361166
Created April 11, 2013 06:23
crash parese
<html>
<head>
<script src="http://www.parsecdn.com/js/parse-1.2.3.js"></script>
</head>
</html>
<script>
Parse.initialize("", "");
var Parent = Parse.Object.extend("Parent");

Ruby Infrastructure Engineer, San Francisco, California

Hi, I'm Ben. I'm the lead engineer of the infrastructure team at Zendesk.

I'm looking for a passionate and talented ruby engineer to join our infrastructure team in San Francisco. Who are we? We are the hackers behind the scenes -- we build the services and struts that the rest of Zendesk builds good product on top of. We like solving hard problems, fixing deep bugs, and doing it at scale. We'll try out new technologies, but love technology that delivers on its promises. We feel confident when we press the enter key. We're a team of good generalists who like learning the stack well enough to be considered a specialist.

Some of what we've been up to recently.

Keybase proof

I hereby claim:

  • I am osheroff on github.
  • I am osheroff (https://keybase.io/osheroff) on keybase.
  • I have a public key whose fingerprint is B1CC 891B E6FB 4C65 0A38 FA21 DB5D AB51 B3CC 6B11

To claim this, I am signing this object:

diff --git a/test/test_arhp.rb b/test/test_arhp.rb
index afdd783..fcea9da 100644
--- a/test/test_arhp.rb
+++ b/test/test_arhp.rb
@@ -97,7 +97,7 @@ class ActiveRecordHostPoolTest < Test::Unit::TestCase
# now, disable our auto-switching and trigger a mysql reconnect
switch_to_klass.connection.unproxied.stubs(:_switch_connection).returns(true)
- switch_to_klass.connection.execute("KILL #{thread_id}")
+ Test3.connection.execute("KILL #{thread_id}")
[maxscale]
threads=4
log_debug=1
[top service]
type=service
router=readconnroute
servers=master,slave
user=admin
passwd=123456
Starting make in the src directory.
If there are problems, cd to the src directory and run make there
cd src && /Applications/Xcode.app/Contents/Developer/usr/bin/make first
CC="gcc -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe -DMACOS_X_UNIX -DMACOS_X_UNIX " srcdir=. sh ./osdef.sh
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe -DMACOS_X_UNIX -DMACOS_X_UNIX -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -fobjc-exceptions -o objects/gui_macvim.o MacVim/gui_macvim.m
creating auto/pathdef.c
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe -DMACOS_X_UNIX -DMACOS_X_UNIX -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -fobjc-exceptions -o objects/MMBackend.o MacVim/MMBackend.m
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe -DMACOS_X_UNIX -DMACOS_X_UNIX -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/MacVim.o MacVim/MacVim.m
MacVim/MacVim.m:30
@osheroff
osheroff / gist:f551c143c86c319f8ca5aae9ff1dd705
Created December 10, 2020 20:10
config.guess patch for libid3tag
diff --git a/config.guess b/config.guess
index e8c6fc0..699b3a1 100755
--- a/config.guess
+++ b/config.guess
@@ -1,13 +1,12 @@
#! /bin/sh
# Attempt to guess a canonical system name.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+# Copyright 1992-2020 Free Software Foundation, Inc.