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
diskpart | |
list disk | |
select disk "disk number 0" | |
clean | |
convert gpt | |
exit |
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
# Criação de usuario | |
sudo adduser <user_name> | |
Importante que sempre seja fornecido uma senha para melhor a segurança. | |
# Permissão de root para o usuário criado | |
sudo usermod -aG sudo <user_name> | |
# Acessa usuario | |
sudo su - <user_name> |
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
# Caso tenha a maquina já tenha uma uma chave SSH basta roda o comando abaixo; | |
ssh-copy-id user@host | |
# Caso não tenha uma chave basta gerar uma com o comando abaixo; | |
ssh-keygen |
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
# Iniciando o projeto; | |
yarn init -y | |
# Instalando as primeiras dependencias; | |
yarn add express | |
yarn add @types/express ts-node-dev typescript tsconfig-paths -D | |
# Iniciadno projeto com typescript (Criação do arquivo tsconfig.json); | |
yarn tsc --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
# Create project | |
yarn create next-app <project-name> | |
# Add TypeScript | |
yarn add typescript @types/react @types/node -D | |
# Add lib style | |
yarn add sass || yarn add styled-components |
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
{ | |
"workbench.startupEditor": "newUntitledFile", | |
"workbench.iconTheme": "material-icon-theme", | |
"workbench.colorTheme": "Omni", | |
"editor.fontFamily": "'Fira Code'", | |
"editor.fontLigatures": true, | |
"editor.fontWeight": "bold", | |
"git.autofetch": true, | |
"files.exclude": { | |
"**/node_modules": true |
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
# O primeiro passo é realizar a criação de uma rede com a opção bridge | |
docker network create -d bridge mongodb-network | |
# O segundo passo é realizar a criação de um container docker com o mongodb | |
docker run --network mongodb-network --name mongodb -p 27017:27017 -d -t --restart always mongo | |
# Agora para melhorar o gerenciamento do banco mongo suba uma imagem com o mongo-express | |
docker run --network mongodb-network --name mongo-express -e ME_CONFIG_MONGODB_SERVER=mongodb -d -p 8081:8081 --restart always mongo-express | |
# Finalizando todo o processo basta abrir no seu navegador http://localhost:8081 |
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 process in port | |
sudo lsof -t -i:port_number | |
# Execute command kill | |
sudo kill -9 $(sudo lsof -t -i:port_number) |
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
# Producer messages | |
kafka-console-producer --topic <name_topic> --bootstrap-server <host>:<port> | |
# Consumer messages | |
kafka-console-consumer --topic <name_topic> --bootstrap-server <host>:<port> | |
# -> --group <name_group> | |
# List consumers groups | |
kafka-consumer-groups --list --bootstrap-server <host>:<port> |