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
| # Ubuntu upstart file at /etc/init/mongodb.conf | |
| start on runlevel [2345] | |
| stop on runlevel [06] | |
| exec /usr/local/mongodb/bin/mongod --config /usr/local/mongodb/mongod.conf |
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 ApplicationController < ActionController::Base | |
| helper :all # include all helpers, all the time | |
| protect_from_forgery # See ActionController::RequestForgeryProtection for details | |
| # Scrub sensitive parameters from your log | |
| # filter_parameter_logging :password | |
| protected | |
| # | |
| def forward_action(action_name) |
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
| Digest::SHA1.hexdigest(`/sbin/ip route get 8.8.8.8`.split("\n")[0].split.last) |
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
| #!/usr/bin/ruby | |
| require 'rubygems' | |
| require 'mq' | |
| EM.run { | |
| amq = MQ.new | |
| amq.topic('evp-started') | |
| amq.topic('evp-stopped') |
NewerOlder