Skip to content

Instantly share code, notes, and snippets.

View peterfication's full-sized avatar

Peter Morgenstern peterfication

View GitHub Profile

Keybase proof

I hereby claim:

  • I am peterfication on github.
  • I am peterfication (https://keybase.io/peterfication) on keybase.
  • I have a public key ASC_g4c6ErfhnPFz892Od0c5GvZA-BVhu4RhxgBASalbSgo

To claim this, I am signing this object:

@peterfication
peterfication / decode_yakbak.js
Created November 27, 2016 10:17
Decode body response created by https://github.com/flickr/yakbak
var zlib = require('zlib');
var gunzip = zlib.createGunzip();
var buf1 = new Buffer("...", "base64")
var buf2 = new Buffer("...", "base64")
var buf3 = new Buffer("...", "base64")
var buf = Buffer.concat([buf1, buf2, buf3])
zlib.gunzip(buf, function(err, dezipped) {
console.log(dezipped.toString())
});
@peterfication
peterfication / brew-install.sh
Created January 29, 2016 12:22 — forked from jsz0/brew-install.sh
my default brew/cask installs
# firsrun:
# install xcode-cli-tools
# xcode-select --install
# install homebrew
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# install caskroom
# brew install caskroom/cask/brew-cask
# update/install: