Skip to content

Instantly share code, notes, and snippets.

View simaojunior's full-sized avatar
👨‍💻
Focusing

Simão Júnior simaojunior

👨‍💻
Focusing
View GitHub Profile
@simaojunior
simaojunior / using-uuid-as-pk.md
Created February 7, 2024 17:16 — forked from rponte/using-uuid-as-pk.md
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

@simaojunior
simaojunior / docker-help.md
Created August 30, 2023 15:05 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@simaojunior
simaojunior / .zshrc
Created March 3, 2023 01:41 — forked from bashbunni/.zshrc
CLI Pomodoro for Linux
# study stream aliases
# Requires https://github.com/caarlos0/timer to be installed. spd-say should ship with your distro
declare -A pomo_options
pomo_options["work"]="45"
pomo_options["break"]="10"
pomodoro () {
if [ -n "$1" -a -n "${pomo_options["$1"]}" ]; then
val=$1
@simaojunior
simaojunior / .zshrc
Created March 3, 2023 01:40 — forked from brianbert/.zshrc
CLI Pomodoro for Linux (with loop, notifications and terminal commands!)
declare -A pomo_options
pomo_options["work"]="0.5"
pomo_options["break"]="0.5"
pomodoro() {
val=$1
echo $val | lolcat
timer ${pomo_options["$val"]}m
spd-say "'$val' session done"
notify-send --app-name=Pomodoro🍅 "'$val' session done 🍅"
@simaojunior
simaojunior / GitCommitEmoji.md
Created March 4, 2022 16:24 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@simaojunior
simaojunior / regex.md
Created December 14, 2021 19:37 — forked from alexandreservian/regex.md
Metacaracteres Regex

Representantes

Meta Nome Função
. ponto um caractere qualquer
[] conjunto conjunto de caracteres permitidos
[^] conjunto negado conjunto de caracteres proibidos

Quantificadores

@simaojunior
simaojunior / git.md
Created December 9, 2021 13:55 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda