Skip to content

Instantly share code, notes, and snippets.

View ben-axnick's full-sized avatar

Ben Axnick ben-axnick

View GitHub Profile
require 'forwardable'
class Deque
extend Forwardable
def_delegators :@deque, :push, :pop, :unshift, :shift
def initialize
@deque = ActualDeque.new
end
@ben-axnick
ben-axnick / 2015-11-yadm.md
Created January 22, 2016 00:33
How to manage dotfiles with YADM

Background

Solutions I've tried

  • Git repo directly checked out in home directory

    • Noisy
    • Have to ignore *, everything is a --force
    • Juggling machine variations is a pain
  • Homesick / Homeshick

@ben-axnick
ben-axnick / .bash_profile
Created November 22, 2017 03:38 — forked from patrobinson/.bash_profile
Using yubikey 4c on Mac OS X (running Sierra)
GPG_ENV=$( gpg-agent --daemon 2>/dev/null )
if [ $? == 0 ]; then
eval $GPG_ENV
else
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
fi
export GPG_TTY=$(tty)
function copy-code() {
echo $1 |sed -e 's/[^ ]* //' |pbcopy
@ben-axnick
ben-axnick / keybase.md
Created September 23, 2019 00:37
keybase.md

Keybase proof

I hereby claim:

  • I am bentheax on github.
  • I am baxnick (https://keybase.io/baxnick) on keybase.
  • I have a public key ASCCfnDn9FeGCkl536NioVR_iteaT7Z7JjQVNs13hJugdwo

To claim this, I am signing this object: