https://github.com/eon01/DockerCheatSheet
curl -fsSL https://get.docker.com | sh;
code --list-extensions | xargs -L 1 echo code --install-extension
| version: '3.7' | |
| services: | |
| postgres: | |
| image: postgres:10.10-alpine | |
| container_name: postgres | |
| ports: | |
| - 5432:5432 | |
| volumes: | |
| - ./postgres-data:/var/lib/postgresql/data | 
| version: '3.7' | |
| services: | |
| postgres: | |
| image: postgres:10.10-alpine | |
| container_name: postgres | |
| ports: | |
| - 5432:5432 | |
| volumes: | |
| - ./postgres-data:/var/lib/postgresql/data | 
| module.exports = { | |
| parser: '@typescript-eslint/parser', | |
| env: { | |
| es6: true, | |
| node: true | |
| }, | |
| plugins: ['@typescript-eslint'], | |
| extends: [ | |
| 'plugin:@typescript-eslint/recommended', | |
| 'prettier/@typescript-eslint', | 
Restore
docker exec -i <postgres_container_name> pg_restore  --clean --no-acl --no-owner -U postgres -d <database_name> < <path where the database is>Dump
docker exec -t <postgres_container_name> pg_dump -U postgres -F t <database_name> > dump_`date +%d-%m-%Y"_"%H_%M_%S`.dump| Emoji | Code | Commit Type | 
|---|
Em toda instalação do git temos o arquivo~/.gitconfig, onde ficam, de forma global (aplicável a todos os projetos), todas as credências do usuário tais como alias e outras configurações personalizadas como por exemplo:
[user]
        name = Matheus Gomes
        email = [email protected]