Skip to content

Instantly share code, notes, and snippets.

Fletcher Nichol fnichol

View GitHub Profile
@fnichol
fnichol / hudson_custom_auth.rb
Created Jun 19, 2010
Quick-and-dirty LDAP/local fallback auth for hudson
View hudson_custom_auth.rb
#!/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 Aug 14, 2010
Some RVM install time sugar
View rvm_sugar.sh
#!/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 Sep 5, 2010
Mac OS X 10.6 Bootstrapping
View macosx_10.6_bootstrap.sh
#!/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
View macvim_install.sh
#!/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 Sep 28, 2010
mongod init.d script for SLES
View sles11-mongod.init
#!/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 Oct 16, 2010
Get yer rails user in shape
View moonshine_bootstrap.sh
#!/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 Nov 17, 2010
Apache Maven Installer
View maven_install.sh
#!/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 Jan 3, 2011
Sample chef-solo config for vagrant prototyping
View README.md

Setting Up Vagrant With Ubuntu 10.10 (32-bit)

Setup

First you need to ensure that VirtualBox is installed. Current vagrant release is not working with VirtualBox 4.x, so get a previous 3.2.x version (currently 3.2.10 which updates to 3.2.12) from http://www.virtualbox.org/wiki/Download_Old_Builds_3_2.

Next install the vagrant gem and download the Ubuntu 10.10 32-bit vagrant box I built up:

gem install vagrant
vagrant box add maverick32 http://dl.dropbox.com/u/2297268/maverick32.box
View navigation.feature
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
View iterm2_install.sh
#!/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*/}"
You can’t perform that action at this time.