Skip to content

Instantly share code, notes, and snippets.

View jonstorer's full-sized avatar

Jonathon Storer jonstorer

View GitHub Profile
#!/bin/bash
echo "REMEMBER: tmux -2 -S /tmp/tmux -attach; chmod aog+rwx /tmp/tmux"
ssh ci 'awk !/:1026/ ~/.ssh/known_hosts > ~/.ssh/known_hosts.new'
ssh ci 'mv ~/.ssh/known_hosts ~/.ssh/known_hosts.bak'
ssh ci 'mv ~/.ssh/known_hosts.new ~/.ssh/known_hosts'
ssh -v -N -R 1026:localhost:22 pairing@ci.crowdtap.com >> /tmp/ssh_tunnel.out &
/usr/local/bin/tmux -2 -S /tmp/tmux
class RenameWeightedQualityScore < Mongoid::Migration
def self.up
members.update({ '_type' => 'Member'}, { "$rename" => { "weighted_quality_score" => "decayed_quality_points_total" } })
crowd_members.update({ }, { "$rename" => { "weighted_quality_score" => "decayed_quality_points_total" } })
end
def self.down
members.update({ '_type' => 'Member' }, { "$rename" => { "decayed_quality_points_total" => "weighted_quality_score" } })
crowd_members.update({ }, { "$rename" => { "decayed_quality_points_total" => "weighted_quality_score" } })
end
module NavigationHelpers
def path_to(page_name)
case page_name
#services
when /the list of services/
services_path
when /a new service/
new_service_path
when /edit the service named "([^"]*)"/
module NavigationHelpers
def path_to(page_name)
case page_name
#services
when /the list of services/
services_path
when /a new service/
new_service_path
when /edit the service named "([^"]*)"/