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
// list of all devices /dev | |
$ diskutil list | |
// unmount device | |
$ diskutil unmountDisk [DEVICE] | |
$ diskutil unmountDisk /dev/disk2 |
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
# create project | |
heroku create | |
# run the project locally | |
heroku local web | |
# command to login the remote bash of the project you are in | |
heroku run bash | |
# command to watch logs |
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
// reads the versions of all installed packages in a local virtual environment | |
// then produces a text file with the package version for each python package specified | |
pip freeze > requirements.txt | |
// install the packages read from a requirements textfile | |
pip install - r requirements.txt | |
// install a specific package | |
pip install [package] |
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
# exit when any command fails | |
set -o errexit | |
# exit when script uses undeclared variables | |
set -o nounset | |
# trace executed commands | |
set -o xtrace |
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
// list all packages out of date | |
$ ncu | |
// upgrade packag.json | |
$ ncu -u |
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
// upgrade yarn version | |
brew upgrade yarn | |
// create a package.json file asking for | |
// - name (node) | |
// - version (1.0.0) | |
// - description () | |
// - author () | |
yarn init |
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
// to install angular cli | |
$ sudo npm install -g @angular/cli | |
// to create a new angular project | |
$ ng new angular-project | |
$ cd [TEST-PROJECT] | |
// to launch the application | |
$ ng serve |
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
// information about docker | |
$ docker --version | |
$ docker info | |
// create a docker container | |
$ docker build -t <tagname> . | |
// list docker containers running | |
$ docker ps |
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
// current assignee | |
project = "PROJECT_NAME" AND assignee is not EMPTY | |
// last created tickets | |
project = "PROJECT_NAME" ORDER BY id DESC | |
// blocked tickets on a status for the last X days | |
project = "PROJECT_NAME" AND | |
(status = "In Progress" AND status changed to "In Progress" before -[X]d OR status = "Review" AND status changed to "Review" before -[X]d) | |
ORDER BY status ASC |
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
// install node version | |
nvm install 7.0.0 | |
nvm install 4.7.3 | |
// use differen node version | |
nvm use 7.0.0 | |
// list versions of node | |
nvm list |
NewerOlder