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
#install xcode dev tools | |
xcode-select --install | |
#install homebrew install instructions at https://brew.sh | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
## get the Brewfile | |
??? | |
# brew bundle |
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
UPDATE pg_index | |
SET indisready=false | |
WHERE indrelid = ( | |
SELECT oid | |
FROM pg_class | |
WHERE relname='<TABLE_NAME>' | |
); | |
UPDATE pg_index | |
SET indisready=true |
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
Offer.includes(room_type: :property).where('properties.status=? and offers.default_maximum_stay=?', 'published',1).find_each do |offer| | |
offer.default_maximum_stay = nil | |
offer.rates.where('night_of >= ? and maximum_stay=?', Date.today,1).find_each do |rate| | |
rate.maximum_stay = nil | |
rate.save! | |
end | |
offer.save! | |
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
docker-machine ssh dev | |
cat SECURITY_KEY > /var/lib/boot2docker/hooroo.pem | |
echo "#!/bin/sh\ncat /var/lib/boot2docker/hooroo.pem >> /etc/ssl/certs/ca-certificates.crt" > /var/lib/boot2docker/bootlocal.sh | |
chmod +x /var/lib/boot2docker/bootlocal.sh | |
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
gem list | cut -d" " -f1 | xargs gem uninstall -aIx | |
#http://geekystuff.net/2009/01/14/remove-all-ruby-gems/ |
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 C | |
class B | |
def initialize | |
puts 'B' | |
end | |
end | |
end | |
module C | |
class D |
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
# From http://github.com/jaymcgavren | |
# | |
# Save this as rcov.rake in lib/tasks and use rcov:all => | |
# to get accurate spec/feature coverage data | |
require 'cucumber/rake/task' | |
require 'spec/rake/spectask' | |
namespace :rcov do | |
Cucumber::Rake::Task.new(:cucumber) do |t| |