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 Resque | |
def self.unregister_workers_for_host(host) | |
Resque.workers.select{|worker| worker.id.split(':').first==host}.each(&:unregister_worker) | |
end | |
end | |
Resque.unregister_workers_for_host("ip-10-250-192-51") |
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
load 'deploy/assets' | |
namespace :deploy do | |
namespace :assets do | |
desc 'Run the precompile task locally and rsync with shared' | |
task :precompile, :roles => :web, :except => { :no_release => true } do | |
%x{bundle exec rake assets:precompile} | |
%x{rsync --recursive --times --rsh=ssh --compress --human-readable --progress public/assets #{user}@#{host}:#{shared_path}} | |
%x{bundle exec rake assets:clean} | |
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
Started GET "/oauth/authorize?client_id=aa957fb21e60fe301126c5abe244db5e965d23ea3a71d178834e9cda18a4ad9a&response_type=code&redirect_uri=http%3A%2F%2Fmydomain.com%3A4000%2Fauth%2Fmydomainmethod%2Fcallback&scope=" for 127.0.0.1 at 2012-05-28 23:02:04 +0000 | |
Processing by Doorkeeper::AuthorizationsController#new as HTML | |
Parameters: {"client_id"=>"aa957fb21e60fe301126c5abe244db5e965d23ea3a71d178834e9cda18a4ad9a", "response_type"=>"code", "redirect_uri"=>"http://mydomain.com:4000/auth/mydomainmethod/callback", "scope"=>""} | |
Redirected to http://mydomain.com:4000/auth/mydomainmethod/callback?code=8e3aa21259fda1336c5a6fb8d042207755161b231b794c676b4d1595133cb6ad | |
Completed 302 Found in 35ms (ActiveRecord: 14.7ms) | |
Started POST "/oauth/token?client_id=aa957fb21e60fe301126c5abe244db5e965d23ea3a71d178834e9cda18a4ad9a&redirect_uri=http%3A%2F%2Fmydomain.com%3A4000%2Fauth%2Fmydomainmethod%2Fcallback&code=8e3aa21259fda1336c5a6fb8d042207755161b231b794c676b4d1595133cb6ad&client_secret=0a410804646338927aca5f0d0bc0551247d7b654 |
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
# with my git configuration the spree repo was giving me issues with line endings | |
# this fixed the issue for me: marking a file as binary causes git to ignore it completely | |
core/vendor/assets/javascripts/jquery.alerts/jquery.alerts.css.erb binary | |
core/vendor/assets/javascripts/jquery.alerts/jquery.alerts.js binary | |
core/vendor/assets/javascripts/jquery.jstree/themes/apple/style.css binary | |
sample/db/sample/spree/line_items.yml binary | |
sample/db/sample/spree/products.yml binary |
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
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
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
#!/bin/bash | |
docker stop $(docker ps -a -q) | |
docker rm -f $(docker ps -a -q) | |
docker volume prune -f | |
docker network prune -f |
OlderNewer