Skip to content

Instantly share code, notes, and snippets.

@rponte
rponte / using-uuid-as-pk.md
Last active May 23, 2024 12:44
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

@jackblk
jackblk / .gitconfig
Last active February 10, 2024 17:47
Git automatically config for work email and personal email
[includeIf "gitdir/i:github/"]
path = .gitconfig-github
[includeIf "gitdir/i:work/"]
path = .gitconfig-work'
@bergmannjg
bergmannjg / rearct-native-app-in-wsl2.md
Last active May 21, 2024 15:14
Building a react native app in WSL2
@xmeng1
xmeng1 / wsl2-network.ps1
Created July 14, 2019 06:50
WSL2 Port forwarding port to linux
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '"
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}';
if( $found ){
$remoteport = $matches[0];
} else{
echo "The Script Exited, the ip address of WSL 2 cannot be found";
exit;
}