Skip to content

Instantly share code, notes, and snippets.

View vinbarnes's full-sized avatar

Kevin R. Barnes vinbarnes

View GitHub Profile

Your Vision

What is a vision?

Your vision answers the question "What do I want?" A clear vision help you communicate why you're here and what impact you're going to have.

Your vision should be aligned with the company vision, with your manager's V2MOM, and it should be personal. It should be an honest reflection of your own vision for your own work.

If you manage a team, it should be reflective of the purpose of the team and your collective impact.

# Install Bash 4 using homebrew
brew install bash
# Or build it from source...
curl -O http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz
tar xzf bash-4.2.tar.gz
cd bash-4.2
./configure --prefix=/usr/local/bin && make && sudo make install
# Add the new shell to the list of legit shells
I had no problem with gist, james.
#!/bin/sh
#
# Slight modification to the original: https://gist.github.com/4323782
# This uses `cut` because it's Zelda, Link wouldn't use perl! He cuts
# with his sword.
#
# Works best with blinking text; the last heart will blink
# when you have less than 25% of your battery life remaining.
BATTERY="$(pmset -g ps | tail -1 | cut -f 2 |cut -f 1 -d ';' | cut -f 1 -d '%')"

Chili Con Carne

=============== This shit is awesome. It's hot, so nut up pansy.
Don't like it that way? Leave out some peppers and spices.
Green bell pepper is for color, substitute another red or yellow for a sweeter taste.
Like different beans? Add them shits too, get wild with Emeril.
Want this to be even better? Cook/mix everything the night before, put in the fridge. Then cook it all day.

Ingredients

#!/usr/bin/env groovy
def objectDirs = []
new File('.git/objects').eachDir { dir ->
if(dir.name.split('/')[-1] ==~ /[0-9a-f]{2}/) {
objectDirs << dir.absolutePath
}
}
def hashes = []
@vinbarnes
vinbarnes / aa_instructions.md
Created May 2, 2012 20:12 — forked from NZKoz/aa_instructions.md
Back Up All Your Gmail
  • Install getmail (aptitude install getmail4)
  • Set Up Your Imap Server (tl;dr)
  • getmail
  • ruby date_based_archive.rb ~/Maildir/.Archive
class Module
# Use this to replace a method in an alias_method_chain
def inject_alias_method_chain(target, method_to_replace, method_to_use)
method_instance_to_replace = instance_method(method_to_replace)
meths = (private_instance_methods | instance_methods).sort.grep(/^#{target}/)
found = meths.detect do |m|
m != method_to_replace.to_s && instance_method(m) == method_instance_to_replace
end
if found
alias_method found, method_to_use
@vinbarnes
vinbarnes / gist:2187192
Created March 24, 2012 19:42 — forked from rick/gist:2186708
emacs daemon/client command-line aliases for Emacs 24 .dmg installation
alias em='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient'
alias emc='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c'
alias emd='/Applications/Emacs.app/Contents/MacOS/Emacs --daemon'
alias emt='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -t'
@vinbarnes
vinbarnes / emacs.rb
Created March 20, 2012 16:07 — forked from jupp0r/emacs.rb
Homebrew Formular enabling Lion Fullscreen for Emacs 24 git HEAD
require 'formula'
class Emacs < Formula
homepage 'http://www.gnu.org/software/emacs/'
url 'http://ftpmirror.gnu.org/emacs/emacs-23.4.tar.bz2'
mirror 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.4.tar.bz2'
md5 '070c68ad8e3c31fb3cb2414feaf5e6f0'
fails_with_llvm "Duplicate symbol errors while linking.", :build => 2334