Skip to content

Instantly share code, notes, and snippets.

View hockeybuggy's full-sized avatar

Douglas Anderson hockeybuggy

View GitHub Profile
@hockeybuggy
hockeybuggy / gitgc.txt
Created September 23, 2015 16:10
git gc is 'magic'
➤ time git status
# On branch VA-3094-delete-facebook-app
nothing to commit (working directory clean)
git status 0.01s user 0.34s system 10% cpu 3.319 total
➤ git gc
Counting objects: 69991, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (22537/22537), done.
@hockeybuggy
hockeybuggy / gist:4163214
Created November 28, 2012 18:52
A simple terminal width command
while (tput cols && sleep 1)do; done
#!/bin/sh
#### GITSHOTS ####
# to install place in the hooks directory of a git repo and make it executeable.
# requires fswebcam: https://github.com/fsphil/fswebcam
gitshotsDir="/home/douglas/media/pictures/.gitshots"
logFile="gitshots.log"
fswebcam --no-banner $gitshotsDir/`date +'%s'`.jpg -r 1280x720 -S 10 --log $gitshotsDir/$logFile
while (clear && curl wttr.in && sleep 300)do; done
@hockeybuggy
hockeybuggy / keybase.md
Created November 14, 2016 23:27
An updated keybase file

Keybase proof

I hereby claim:

  • I am hockeybuggy on github.
  • I am hockeybuggy (https://keybase.io/hockeybuggy) on keybase.
  • I have a public key whose fingerprint is 3B94 9D9D 977F ED50 6290 8E0A 9892 CB40 1284 3ABE

To claim this, I am signing this object: