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 launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist | |
sudo touch /Library/Preferences/org.jenkins-ci | |
sudo defaults write /Library/Preferences/org.jenkins-ci permGen 512m | |
sudo defaults write /Library/Preferences/org.jenkins-ci heapSize 2048m | |
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist |
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 'rubygems' | |
require 'mechanize' | |
FIRST_NAME = 'FIRST_NAME' | |
LAST_NAME = 'LAST_NAME' | |
PHONE = 'PHONE' | |
EMAIL = '[email protected]' | |
PARTY_SIZE = 2 | |
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' } |
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
#one off to ensure heroku remote is added to repo | |
heroku git:remote -a myApp | |
git remote add heroku [email protected]:myApp.git | |
#disables | |
curl https://heroku.newrelic.com/accounts/ACCTID/applications/APPID/ping_targets/disable -X POST -H "X-Api-Key: APIKEY" | |
heroku maintenance:on --app myApp | |
#push to heroku | |
git push --force heroku master | |
heroku run rake db:migrate --app myApp | |
#enables |
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
module AsyncTools | |
module Cleaners | |
def self.find_job_for_object_by_method(klass, method) | |
jobs = Sidekiq::ScheduledSet.new | |
jobs.select { |job| |
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
#see https://devcenter.heroku.com/articles/rails-unicorn#the-unicorn-server | |
worker_processes ENV['WEB_CONCURRENCY'].to_i > 0 ? ENV['WEB_CONCURRENCY'].to_i : 3 | |
timeout ENV['REQUEST_TIMEOUT'].to_i > 0 ? ENV['REQUEST_TIMEOUT'].to_i : 15 | |
preload_app true | |
before_fork do |server, worker| | |
Signal.trap 'TERM' do | |
puts 'Unicorn master intercepting TERM and sending myself QUIT instead' |
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
function postTerm(term) { | |
var xhr = new XMLHttpRequest(); | |
xhr.withCredentials = true; | |
var data = { | |
"messages": [ | |
{ | |
"body": term | |
} |