Skip to content

Instantly share code, notes, and snippets.

View silversonicaxel's full-sized avatar
🎵
Rock `n´ Roll will never die!

Alessandro Rabitti silversonicaxel

🎵
Rock `n´ Roll will never die!
View GitHub Profile
@silversonicaxel
silversonicaxel / devices
Last active November 22, 2021 23:53
UNIX SHELL COMMANDS #unix #unix-devices
// list of all devices /dev
$ diskutil list
// unmount device
$ diskutil unmountDisk [DEVICE]
$ diskutil unmountDisk /dev/disk2
@silversonicaxel
silversonicaxel / heroku-commands
Last active February 4, 2020 21:45
HEROKU #heroku
# 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
@silversonicaxel
silversonicaxel / pip-commands
Created December 17, 2019 07:01
PIP #python #pip
// 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]
@silversonicaxel
silversonicaxel / shellscript-settings
Last active April 24, 2019 09:54
SHELL SCRIPT #bash #shellscript
# exit when any command fails
set -o errexit
# exit when script uses undeclared variables
set -o nounset
# trace executed commands
set -o xtrace
@silversonicaxel
silversonicaxel / ncu-commands
Created June 11, 2018 07:43
NCU #ncu #npm-check-updates
// list all packages out of date
$ ncu
// upgrade packag.json
$ ncu -u
@silversonicaxel
silversonicaxel / yarn-commands
Last active August 27, 2019 11:18
YARN #yarn
// upgrade yarn version
brew upgrade yarn
// create a package.json file asking for
// - name (node)
// - version (1.0.0)
// - description ()
// - author ()
yarn init
@silversonicaxel
silversonicaxel / angular-commands
Last active March 13, 2022 02:11
ANGULAR #angular
// 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
// information about docker
$ docker --version
$ docker info
// create a docker container
$ docker build -t <tagname> .
// list docker containers running
$ docker ps
@silversonicaxel
silversonicaxel / jql-filters
Last active March 21, 2018 10:59
JQL #jira #sql
// 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
@silversonicaxel
silversonicaxel / nvm-commands
Last active March 21, 2018 10:59
NVM #nodejs #nvm
// 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