- Modificado (modified);
- Preparado (staged/index)
- Consolidado (comitted);
This file contains hidden or 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
const WebSocket = require('websocket').w3cwebsocket; | |
var token = "key-token"; | |
const socket = new WebSocket('ws://localhost:8000/ws', null, null, { | |
Authorization: `Bearer ${token}` | |
}); | |
socket.onopen = () => { | |
console.log('WebSocket connection established'); |
This file contains hidden or 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
AWS Lambda functions and API gateway are often used to create serverless applications. | |
Function code is written in Go and deployed using Terraform. |
This file contains hidden or 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
--- | |
- hosts: localhost | |
connection: local | |
become: true | |
vars: | |
- google_file: /etc/apt/sources.list.d/google-chrome.list | |
tasks: | |
- name: base deps | |
apt: name={{ item }} update_cache=yes | |
with_items: |
This file contains hidden or 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
package main | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
"github.com/go-redis/redis/v8" | |
"github.com/jinzhu/gorm" | |
_ "github.com/jinzhu/gorm/dialects/sqlite" | |
"github.com/labstack/echo/v4" |
This file contains hidden or 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
Segue a lista de comandos docker e sua utilidade: | |
docker attach – Acessar dentro do container e trabalhar a partir dele. | |
docker build – A partir de instruções de um arquivo Dockerfile eu possa criar uma imagem. | |
docker commit – Cria uma imagem a partir de um container. | |
docker cp – Copia arquivos ou diretórios do container para o host. | |
docker create – Cria um novo container. | |
docker diff – Exibe as alterações feitas no filesystem do container. | |
docker events – Exibe os eventos do container em tempo real. | |
docker exec – Executa uma instrução dentro do container que está rodando sem precisar atachar nele. |