Skip to content

Instantly share code, notes, and snippets.

View fnichol's full-sized avatar

Fletcher Nichol fnichol

View GitHub Profile
@fnichol
fnichol / hudson_custom_auth.rb
Created June 19, 2010 02:04
Quick-and-dirty LDAP/local fallback auth for hudson
#!/usr/bin/env ruby
require "rubygems"
require "net/ldap"
require "csv"
unless ARGV[0] && ARGV[1]
puts "Usage: #{__FILE__} <username> <password>"
abort
end
@fnichol
fnichol / rvm_sugar.sh
Created August 14, 2010 18:02
Some RVM install time sugar
#!/usr/bin/env bash
# ## Installing RVM as a User
#
# bash < <( curl -s https://rvm.beginrescueend.com/install/rvm )
# bash < <( curl -L http://bit.ly/rvm_sugar )
# [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
#
# ## Installing RVM System Wide (become the root user)
#
@fnichol
fnichol / macosx_10.6_bootstrap.sh
Created September 5, 2010 16:15
Mac OS X 10.6 Bootstrapping
#!/bin/bash
#
# Mac OS X 10.6 Bootstrapping
# turn on ssh
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
# run software update and reboot
sudo softwareupdate --install --all
sudo shutdown -r now
@fnichol
fnichol / macvim_install.sh
Created September 12, 2010 15:46
MacVIM installer
#!/usr/bin/env bash
# ## Installing MacVim on Mac OS X 10.5/10.6
#
# bash < <(curl -L http://gist.github.com/raw/576195/macvim_install.sh)
#
case $(sw_vers -productVersion) in
10.5.*)
url="http://github.com/downloads/b4winckler/macvim/MacVim-7_3-53-ppc-i386-OSX10_5.tbz"
@fnichol
fnichol / sles11-mongod.init
Created September 28, 2010 03:59
mongod init.d script for SLES
#!/bin/sh
#
# /etc/init.d/mongod
#
# Modified from: https://build.opensuse.org/package/view_file?file=mongod.init&package=mongodb&project=home:phprus:server:database&srcmd5=94d608ffe3ba91c10261c49ba16f3db1
#
### BEGIN INIT INFO
# Provides: mongod
# Required-Start: $syslog $local_fs $network
# Required-Stop: $syslog $local_fs $network
@fnichol
fnichol / moonshine_bootstrap.sh
Created October 16, 2010 04:13
Get yer rails user in shape
#!/usr/bin/env bash
# install:
# bash < <(curl -L http://gist.github.com/raw/629402/moonshine_bootstrap.sh)
#
printf "===> Bootstrapping moonshine user: ${user} ...\n"
user=rails
@fnichol
fnichol / maven_install.sh
Created November 17, 2010 19:26
Apache Maven Installer
#!/usr/bin/env bash
# ## Installing Apache Maven
#
# bash < <(curl -L http://gist.github.com/raw/703892/maven_install.sh)
#
mavens=( 2.2.1 3.0.1 )
current="3.0.1"
@fnichol
fnichol / README.md
Created January 3, 2011 16:20
Sample chef-solo config for vagrant prototyping
Feature: Website navigation
In order to navigate the website by links
As a site visitor
I want to have a top level navigation
Scenario: About us nav link
Given I am on the home page
When I follow "About Us"
Then I should be on the aboutus page
#!/usr/bin/env bash
# ## Installing iTerm2 on Mac OS X 10.5/10.6
#
# bash < <(curl -L http://gist.github.com/raw/824149/iterm2_install.sh)
#
url="http://iterm2.googlecode.com/files/iTerm2-alpha16.zip"
zip="${url##http*/}"