Fix some cheatsheets

This commit is contained in:
Denis Isidoro 2019-10-14 13:51:58 -03:00
parent 2993608739
commit e6486d6b26
5 changed files with 47 additions and 33 deletions

View file

@ -1,20 +0,0 @@
# Builds, (re)creates, starts, and attaches to containers for all services
docker-compose up
# Builds, (re)creates, starts, and dettaches to containers for all services
docker-compose up -d
# Builds, (re)creates, starts, and attaches to containers for a service
docker-compose up -d <service_name>
# Builds, (re)creates, starts, and dettaches to containers for a service
docker-compose up -d <service_name>
# Print the last lines of a services logs
docker-compose logs --tail 100 <service_name> | less
# Print the last lines of a service's logs and following its logs
docker-compose logs -f --tail 100 <service_name>
# Stops containers and removes containers, networks created by up
docker-compose down

View file

@ -43,4 +43,30 @@ docker logs --tail 100 <container_id> -f
docker network create <network_name>
$ image_id: docker images --- --headers 1 --column 3
$ container_id: docker ps --- --headers 1 --column 1
$ container_id: docker ps --- --headers 1 --column 1
% docker-compose, container
# Builds, (re)creates, starts, and attaches to containers for all services
docker-compose up
# Builds, (re)creates, starts, and dettaches to containers for all services
docker-compose up -d
# Builds, (re)creates, starts, and attaches to containers for a service
docker-compose up -d <service_name>
# Builds, (re)creates, starts, and dettaches to containers for a service
docker-compose up -d <service_name>
# Print the last lines of a services logs
docker-compose logs --tail 100 <service_name> | less
# Print the last lines of a service's logs and following its logs
docker-compose logs -f --tail 100 <service_name>
# Stops containers and removes containers, networks created by up
docker-compose down

View file

@ -81,7 +81,7 @@ git fetch origin pull/<pr_number>/head:pr/<pr_number> \
&& git checkout pr/<pr_number>
# Add a new module
git submodule add <repository> [<path>]
git submodule add <repository> <path>
# Update module
git submodule update --init

View file

@ -1,3 +1,5 @@
% npm, node, js
# initial new package
npm init
@ -18,3 +20,20 @@ npm install <package_name> --save-dev
# install globally a specified package
npm install <package_name> -g
% nvm, node, js
# install a specified version of node
nvm install <version>
# list available versions
nvm ls-remote
# use installed node's version
nvm use <version>
# set a node's version as default
nvm alias default <version>

View file

@ -1,11 +0,0 @@
# install a specified version of node
nvm install <version>
# list available versions
nvm ls-remote
# use installed node's version
nvm use <version>
# set a node's version as default
nvm alias default <version>