Skip to content

Instantly share code, notes, and snippets.

View dinobi's full-sized avatar
🏠
working remotely

DnoB dinobi

🏠
working remotely
  • @jane.app
  • British Columbia, Canada
View GitHub Profile
@dinobi
dinobi / rails_new_help_output.md
Created January 19, 2021 14:30 — forked from eliotsykes/rails_new_help_output.md
"rails new" options explained

Run rails new --help to view all of the options you can pass to rails new:

$ bin/rails new --help
Usage:
  rails new APP_PATH [options]

Options:
  -r, [--ruby=PATH]                                      # Path to the Ruby binary of your choice
                                                         # Default: /Users/eliot/.rbenv/versions/2.2.0/bin/ruby
@dinobi
dinobi / cap.rb
Created October 30, 2020 14:12 — forked from trivektor/cap.rb
Kill resque workers using rake task, let god handle the restart
after "deploy:restart", "resque:stop_workers"
namespace :resque do
task :stop_workers, :except => { :no_release => true } do
run "cd #{current_path} && rake RAILS_ENV=#{rails_env} resque:stop_workers"
end
end
@dinobi
dinobi / rails http status codes
Created May 1, 2018 14:01 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing