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 | |
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 [email protected] >> /tmp/ssh_tunnel.out & | |
/usr/local/bin/tmux -2 -S /tmp/tmux |
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
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 |
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
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 "([^"]*)"/ |
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
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 "([^"]*)"/ |