- Google Chrome: https://www.google.com/chrome/index.html
- XCode
- Dropbox: https://www.dropbox.com/downloading
- iTerm2: http://www.iterm2.com/#/section/home
- RVM: http://beginrescueend.com/rvm/install/
- Homebrew: https://github.com/mxcl/homebrew/wiki/installation
brew install bash-completion wget ngrep git coreutils pwgen htop ack mtr
- Notational Velocity: http://notational.net/
- App Store:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ParamHash < HashWithIndifferentAccess | |
def merge_string!(string) | |
hash = Hash.new | |
string.split('&').each { |kv| | |
k,v = kv.split('=') | |
hash[k] = URI::unescape(v) | |
} | |
self.merge! hash | |
end | |
def merge_string(string) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( sudo crontab -l ; echo '@daily rm -rf /private/var/log/asl/*.asl') | sudo crontab |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'newrelic_rpm' | |
class MyJob | |
include NewRelic::Agent::Instrumentation::ControllerInstrumentation | |
def perform | |
begin | |
[][0][] # Just here to raise NoMethodError | |
rescue StandardError => e | |
NewRelic::Agent.notice_error e | |
raise e | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" This is jelder's .vimrc. Use it well. | |
syntax on | |
filetype on | |
filetype indent on | |
filetype plugin on | |
set cinoptions=:0,p0,t0 | |
set cinwords=if,else,while,do,for,switch,case | |
set formatoptions=tcqr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# url.txt should contain the URL load in Chrome in full screen. | |
do shell script "open '/Applications/Google Chrome.app' " & readFile("/url.txt") | |
tell application "Google Chrome" to activate | |
tell application "System Events" | |
keystroke "f" using {command down, shift down} | |
end tell | |
# All this just to read a file; no backticks in AppleScript. | |
on readFile(unixPath) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: page | |
title: "Not Found" | |
sharing: false | |
footer: false | |
--- | |
Sorry, that page doesn't exist. <span id="suggestion"/> | |
<script type="text/javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
class Node | |
attr_accessor :val, :left, :right | |
def initialize( val = nil ) | |
@val = val | |
@left, @right = nil, nil | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Get the specificed version of Ruby onto a Linux host by any means necessary. Invoke like this: | |
# | |
# curl https://raw.github.com/gist/2785410/install_ruby.sh | bash -s -- -r '1.9.3-p125' -b mybucket | |
# | |
# Jacob Elder <[email protected]> | |
usage() { | |
echo "Usage: $(basename $0) -r 1.9.3-p125 -b mybucket" | |
exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Roles, environments, etc only need to exist in the Chef server, which means | |
# they never hit version control without human intervention (or this script). | |
for data_bag in $(knife data bag list) ; do | |
for item in $(knife data bag show $data_bag) ; do | |
mkdir -p $path data_bags/$data_bag | |
knife data bag show $data_bag $item -Fj > data_bags/$data_bag/$item.json | |
git add data_bags/$data_bag/$item.json | |
done |