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
# add a .pryrc file or .irbrc | |
class Object | |
def me | |
User.find_by(email: 'andrew@example.com') | |
end | |
def slmn | |
SomeLongModelName | |
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
Open your file .git/info/exclude | |
Normaly, I used to exclude database.yml | |
add this line bellow | |
config/database.yml | |
Close the file and make sure you run | |
git update-index --assume-unchanged config/database.yml | |
# Reference |
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
# display system-wide information | |
docker info | |
# list containers | |
docker ps # only running | |
docker ps -a # all | |
# remove specific container ID | |
docker rm 42bbb5394617 |