Skip to content

Instantly share code, notes, and snippets.

View keirwhitlock's full-sized avatar
👨‍💻
Always learning...

Keir Whitlock keirwhitlock

👨‍💻
Always learning...
View GitHub Profile

Keybase proof

I hereby claim:

  • I am kwhitlock on github.
  • I am keirwhitlock (https://keybase.io/keirwhitlock) on keybase.
  • I have a public key ASCSob7DwJmH5GW4_t-k6hbvaq0yTF3BvOAAQDMM_Somlgo

To claim this, I am signing this object:

@keirwhitlock
keirwhitlock / bootstrap.sh
Last active December 31, 2015 13:53
Bootstrap
#!/bin/bash
echo "*************************************
New server is preparing....
*************************************" >> /etc/motd
# Install packages
/bin/yum -y localinstall https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm
@keirwhitlock
keirwhitlock / gist:6f9842ddb88b35455443
Last active August 29, 2015 14:19
Dynamic DNS using Route53
#!/usr/bin/env python
import boto
import urllib2
import json
aws_access_key = ''
aws_secret_key = ''
# Use ifconfig.co to find my Public IP.
@keirwhitlock
keirwhitlock / git log graph alias
Last active August 29, 2015 14:18
Git alias for git log graph (~/.gitconfig)
[alias]
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset)'
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)'
lg = !"git lg2"
" Stops copy and pastes from prepending pastes into a comment.
set paste
" Sets the horzontal cursor position line
set cursorline
" Use Vim settings, rather then Vi settings (much better!).
set nocompatible
" Tell Vim how many columns a tab counts for.