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
Repair Homebrew permissions | |
sudo chmod g+w /usr/local/ | |
Put Chrome and Firefox on dock | |
Download and Install | |
TextMate | |
GitX | |
Run TextMate and setup terminal helper in /usr/local/bin |
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
FULLNAME=`finger "$USER" | awk -F: '{ print $3 }' | head -n1 | sed 's/^ //'` | |
# Git needs to know who you are! | |
git config --global user.name "${FULLNAME}" | |
git config --global user.email "${USER}@newrelic.com" | |
# SVN style shortcuts | |
git config --global alias.st status | |
git config --global alias.ci commit | |
git config --global alias.co checkout |
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 example configuration shows what WE did to get Amazon VPC working with our | |
! ASAs. We use version 8.3(1). This config has not been reviewed or otherwise | |
! blessed in any way by anyone at Amazon. YMMV. | |
! | |
! It differs from Amazon's supplied config by using two different sets of | |
! crypto maps and ACLs, so it brings both tunnels up simultaneously. | |
! | |
! For the purposes of the example, the physical datacenter network is 172.16.1.0/24 | |
! and the VPC is 10.0.0.0/16. |
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/env ruby | |
require 'zlib' | |
print Zlib::Inflate.new.inflate($<.read) |
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
# ssh-agent needs to be running and we need to export the SSH_AUTH_SOCK | |
# environment variable to point to its location in /tmp/ssh-something/agent.PID | |
# so, find the ssh-agent PID and derive the socket filename from it, and then | |
# find that file in its randomly-named directory in /tmp and export that for | |
# ssh to use. | |
set -x | |
SSH_AGENT_PID=`pgrep -n -u $USER ssh-agent` | |
if [ -n "$SSH_AGENT_PID" ]; then | |
guessed_ppid=`expr $SSH_AGENT_PID - 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 | |
if [ $# -ne 5 ]; then | |
prog=`basename $0` | |
echo "Usage $prog <short-hostname> <eth0> <eth1> <eth2> <eth3>" >&2 | |
exit -1 | |
fi | |
set -xe |
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
yourproject/ | |
- Vagrantfile | |
- manifests/ | |
- centos62-64.pp | |
- modules/ | |
- rbenv/ <-- git submodule of https://github.com/alup/puppet-rbenv |
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
# Prevent accidentally calling #[] on a number, we don't bit-slice in this house | |
[Fixnum, Bignum].each do |k| | |
k.class_eval do | |
def [](*args) | |
raise NoMethodError, "Calling #[] on numbers is wrong. Don't do it." | |
end | |
end | |
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
# | |
# New Relic Server Monitor configuration file. | |
# | |
# Lines that begin with a # are comment lines and are ignored by the server | |
# monitor. For those options that have command line equivalents, if the | |
# option is specified on the command line it will over-ride any value set | |
# in this file. | |
# | |
# |
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
# | |
# Thanks to Eron Nicholson at 37 Signals for providing this, | |
# send thanks to him and blame to me. -Nic Benders | |
# | |
template "/etc/apt/sources.list.d/newrelic.list" do | |
source "newrelic.list.erb" | |
owner "root" | |
group "root" | |
mode 0640 |