This file contains 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/sh | |
## | |
# Install memcached and dependencies smoothly on Mac OS X. | |
# | |
# Up to date for Mac OS X as of Sept. 09, 2008. | |
# | |
# See also http://topfunky.net/svn/shovel/memcached/install-memcached-linux.sh | |
# | |
# USE AT YOUR OWN RISK. |
This file contains 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
plugin 'rspec', :git => 'git://github.com/dchelimsky/rspec.git' | |
plugin 'rspec-rails', :git => 'git://github.com/dchelimsky/rspec-rails.git' | |
plugin 'restful-authentication', :git => 'git://github.com/technoweenie/restful-authentication.git' | |
plugin 'cucumber', :git => 'git://github.com/aslakhellesoy/cucumber.git' | |
plugin 'webrat', :git => 'git://github.com/brynary/webrat.git' | |
gem 'mislav-will_paginate', :lib => 'will_paginate', :source => 'http://gems.github.com' | |
rake("gems:install", :sudo => true) | |
This file contains 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
Feature: Identifying local leadership training chairs | |
In order to identify local volunteers with increased capabilities | |
As a super-user | |
I want to be able to identify local leadership training chairs from each chapter | |
Background: | |
Given an application role "Local Leadership Training Chair" | |
Given a LLTC 'Joe' from 'Cincinnati' | |
Scenario: Admin viewing the LLTC page |
This file contains 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/sh | |
# | |
# EC2 bootstrap | |
# | |
mkdir /etc/chef | |
mkdir /var/chef | |
cat > /etc/chef/solo.rb <<SOLO | |
cookbook_path "/var/chef/cookbooks" |
This file contains 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
config.action_controller.asset_host = Proc.new do |source, request| | |
non_ssl_host = "http://asset#{source.hash % 4}.backpackit.com" | |
ssl_host = "https://asset1.backpackit.com" | |
if request.ssl? | |
case | |
when source =~ /\.js$/ | |
ssl_host | |
when request.headers["USER_AGENT"] =~ /(Safari)/ | |
non_ssl_host |
This file contains 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] gem install term-ansicolor treetop diff-lcs nokogiri builder | |
[sudo] gem install rspec rspec-rails cucumber webrat | |
rails newproj | |
cd newproj | |
git clone git://github.com/aslakhellesoy/cucumber.git vendor/plugins/cucumber | |
git clone git://github.com/brynary/webrat.git vendor/plugins/webrat | |
ruby script/generate cucumber | |
ruby script/generate scaffold Frooble name:string color:string description:text | |
rake db:migrate | |
ruby script/generate feature Frooble name:string color:string description:text |
This file contains 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
blink:community bigfleet$ cucumber -p verbose | |
Ruby files required: | |
* features/support/env.rb | |
* features/support/paths.rb | |
* features/step_definitions/response_steps.rb | |
* features/plugins/steps/tradeking_recognia_steps.rb | |
* features/plugins/steps/tradeking_relish_steps.rb | |
* features/plugins/steps/tradeking_utils_steps.rb | |
* features/step_definitions/aasm_steps.rb | |
* features/step_definitions/activity_controller_steps.rb |
This file contains 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
<%= branch = `git symbolic-ref HEAD`.gsub('refs/heads/', '').chomp.gsub('/', '_') %> | |
login: &login | |
adapter: mysql | |
username: root | |
password: xxxxxxxxxxxxxx | |
host: localhost | |
socket: /opt/local/var/run/mysql5/mysqld.sock | |
development: |
This file contains 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
Host ec2*compute-1.amazonaws.com | |
User some_user | |
StrictHostKeyChecking no | |
Host my_chef_instance | |
User some_user | |
Hostname ec2-xx-xx-xx-xx.compute-1.amazonaws.com | |
StrictHostKeyChecking no | |
LocalForward 8443 localhost:443 |
This file contains 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
# Bash snippet to open new shells in most recently visited dir. | |
# Useful if you want to open a new terminal tab at the present | |
# tab's location. | |
# | |
# Put this in your .bashrc or whatever. | |
pathed_cd () { | |
if [ "$1" == "" ]; then | |
cd | |
else |
OlderNewer