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
bundle config build.pg --with-pg-config=/path/to/pg_config |
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
# Inside a git repo | |
# install the git cookbook | |
knife cookbook site install git | |
# upload all cookbooks onto the git-repos configured hosted chef account | |
knife cookbook upload -a |
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
it "displays recently viewed destination for each viewed destination" do | |
get :show, :id => @destination | |
rendered.should have_selector('img.hotel_image', :count => 2) | |
end |
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
Environment | |
1. Create user for app | |
useradd -m -s /bin/bash user_name | |
passwd user_name | |
2. Add to sudo group | |
usermod -a -G sudo user_name | |
Security | |
1. Setup ssh keys |
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
require 'oauth' | |
require 'json' | |
CONSUMER_KEY = "your-linkedin-app-key" | |
CONSUMER_SECRET = "secret-linkedin-app-thing" | |
consumer_options = {} | |
oauth_token = "derp-derp-derp-hex" # Your oauth key in hex | |
oauth_secret = "derp-derp-derp-more-hex" # your oauth secret key thing |
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 rabbitmqctl delete_vhost / | |
sudo rabbitmqctl create_vhost / | |
sudo rabbitmqctl set_permissions -p / guest '.*' '.*' '.*' |
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
http://ingeniapi.com/train?auth_token=<API KEY>&api_version=1.0&text=text to train&tag_sets={"Type":["University","Exam"],"Topics":["Software"],"Keywords":["Distinction","Completing"]} |
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
⚡ $ curl -O http://f.fontdeck.com/s/css/3nQ4Zt9uZHi/fSeMr4rODjmORk4/localhost/21367.css [14:25:32] | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 1700 100 1700 0 0 94 0 0:00:18 0:00:17 0:00:01 84 | |
100 1700 100 1700 0 0 4611 0 --:--:-- --:--:-- --:--:-- 415k | |
100 1700 100 1700 0 0 157k 0 --:--:-- --:--:-- --:--:-- 332k | |
100 1700 100 1700 0 0 145k 0 --:--:-- --:--:-- --:--:-- 415k | |
100 1700 100 1700 0 0 114 0 0:00:14 0:00:14 --:--:-- 87 |
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
curl http://rubygems.org/api/v1/dependencies\?gems\=tenderlove-frex,spicycode-rcov |
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
Technology.find_each do |tech| Technology.reset_counters(tech.id, :patents) end |