Skip to content

Instantly share code, notes, and snippets.

@jsachs
jsachs / cycle-pem.sh
Last active March 14, 2017 15:50
shell script to replace authorized_keys in an EC2 instance
#!/bin/bash
# this script should be used in a dir with both the old
# private key and the new public key
oldpem=$1
user=$2
newpub=$3
newpem=$4
@jsachs
jsachs / keybase.md
Last active February 20, 2019 22:24
Keybase Verification

Keybase proof

I hereby claim:

  • I am jsachs on github.
  • I am jsachs (https://keybase.io/jsachs) on keybase.
  • I have a public key ASAiAoLQ2Urmwg4IseICWAp91z4EvenFm7kMcWHRxMkSdQo

To claim this, I am signing this object:

@jsachs
jsachs / gist:117f308d2c02390b64e9
Last active August 29, 2015 14:17
Mac Setup Script
# Check for Homebrew,# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update homebrew recipes
brew update
# Install GNU core utilities (those that come with OS X are outdated)
brew install coreutils