Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am kaborso on github.
  • I am kaborso (https://keybase.io/kaborso) on keybase.
  • I have a public key whose fingerprint is B711 41FF E624 F37A FF3D 731B 175E 3D28 74D7 1A69

To claim this, I am signing this object:

@kaborso
kaborso / bottles.rb
Created May 22, 2014 13:59
beginning of bottles song implementation
class BottleSong
def initialize
@type = 'bottles'
end
def song
verses(99, 0)
end
def verses(start, the_end)
@kaborso
kaborso / shellfire.sh
Created December 20, 2013 17:21
shellfire and vimstone
# maestro, where did all those containers come from?!
sudo docker ps | awk '{print $1}' | tail -n+2 | xargs sudo docker stop
  1. read CMD instruction from dockerfile rather than require user to write it again in maestro.yml
  • admittedly, having all the commands in one spot is easier to read
  • from readme -- "Note: Command is required by the Docker Python api and having to specify it here can cause problems with images that pre-define entrypoints and commands."
  1. support singular 'port' as well as plural in config section (like in require section)
  2. fix 'mount' (should actually mount a host directory)
@kaborso
kaborso / .vimrc
Created July 30, 2013 16:02
Put in dotfiles repo
""
"" Trailing space deletion
""
func! DeleteTrailingWS()
exe "normal mz"
%s/\s\+$//ge
exe "normal `z"
endfunc