Skip to content

Instantly share code, notes, and snippets.

View farnetani's full-sized avatar
🎯
Desenvolvendo em Golang

Arlei F. Farnetani Junior farnetani

🎯
Desenvolvendo em Golang
View GitHub Profile
@rponte
rponte / using-uuid-as-pk.md
Last active July 22, 2024 15:29
Não use UUID como PK nas tabelas do seu banco de dados

Pretende usar UUID como PK em vez de Int/BigInt no seu banco de dados? Pense novamente...

TL;TD

Não use UUID como PK nas tabelas do seu banco de dados.

Um pouco mais de detalhes

@farnetani
farnetani / vscode.md
Last active July 24, 2020 23:14
Vscode - configurando JsHint, Prettier, Eslint com editorconfig

Arquivos de Exemplo abaixo

.prettierrc.json

{
  "trailingComma": "none",
  "tabWidth": 2,
  "semi": false,
  "singleQuote": true
@runozo
runozo / LVM on Ubuntu howto
Last active August 8, 2022 21:06
Using LVM on Linux and resize swap partition
# RESCAN FOR NEWLY ADDED HDS
echo "- - -" > /sys/class/scsi_host/host#/scan
fdisk -l
# NEW LOGICAL VOLUME
sudo fdisk /dev/sdb
# then create a new partition of type 8e (Linux LVM)
# create a phisical volume
sudo pvcreate /dev/sdb1
# create new volume group