Skip to content

Instantly share code, notes, and snippets.

View bhiggins's full-sized avatar

Ben Higgins bhiggins

  • ExtraHop Networks, Inc.
  • Seattle, WA
View GitHub Profile
@bhiggins
bhiggins / syncutil.go
Last active February 9, 2018 22:28
OnceSuccesfully
package syncutil
// Code based on Go's once.go: https://golang.org/src/sync/once.go
import (
"sync"
"sync/atomic"
)
// OnceSuccessfully is an object that will perform one successful action.

Keybase proof

I hereby claim:

  • I am bhiggins on github.
  • I am bhiggins (https://keybase.io/bhiggins) on keybase.
  • I have a public key whose fingerprint is 9D55 1080 FD45 DDA6 E50B 9C76 E861 3CCC 4F88 618E

To claim this, I am signing this object:

@bhiggins
bhiggins / git-svn-wrapper.sh
Created December 11, 2012 00:27 — forked from rkitover/nopaste.txt
Bash version, plus support for ! aliases.
# Based on https://gist.github.com/4236162 with minor changes to be bash-compliant
# Also added support for ! aliases.
# A helper for use with git-svn (allows making hooks)
#
# Based on: https://raw.github.com/hkjels/.dotfiles/master/zsh/git-svn.zsh
git() {
local root=$(command git rev-parse --show-toplevel);