Skip to content

Instantly share code, notes, and snippets.

View gitDbits's full-sized avatar
🏠
Working from home

Diego Noronha gitDbits

🏠
Working from home
View GitHub Profile
@oliveira-andre
oliveira-andre / deploy.sh
Last active July 24, 2020 15:26
deploy production rails
#enter on server
ssh [email protected]
# adding a user to deploy
adduser deploy
adduser deploy sudo
exit
# copy your ssh file to not need to put your pass
ssh-copy-id [email protected]
@mlanett
mlanett / rails http status codes
Last active February 3, 2025 11:36
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
@JunichiIto
JunichiIto / alias_matchers.md
Last active May 3, 2025 22:08
List of alias matchers in RSpec 3

This list is based on aliases_spec.rb.

You can see also Module: RSpec::Matchers API.

matcher aliased to description
a_truthy_value be_truthy a truthy value
a_falsey_value be_falsey a falsey value
be_falsy be_falsey be falsy
a_falsy_value be_falsey a falsy value