Skip to content

Instantly share code, notes, and snippets.

View thiagoalvesfoz's full-sized avatar
🚀

Thiago Alves thiagoalvesfoz

🚀
View GitHub Profile
@thiagoalvesfoz
thiagoalvesfoz / ssh.md
Created February 9, 2022 15:20
Adicionando ssh para github e gitlab

Múltiplas chaves SSH para GitHub e GitLab

1. Gerar Chaves SSH

ssh-keygen -t ed25519 -C "user@email.com" -b 4096 -f ~/.ssh/id_ed25519_github
ssh-keygen -t ed25519 -C "user@email.com" -b 4096 -f ~/.ssh/id_ed25519_gitlab

2. Copiar chaves para GitHub e GitLab

@thiagoalvesfoz
thiagoalvesfoz / docker-compose-sonar
Created December 9, 2020 06:35 — forked from wcaquino/docker-compose-sonar
Trecho do docker-compose para incluir o sonar no ambiente
sonarqube:
container_name: sonar
image: sonarqube:7.9.2-community
ports:
- "9000:9000"
networks:
- sonarnet
environment:
- sonar.jdbc.url=jdbc:postgresql://pg-sonar:5432/sonar
depends_on:
// This file was initially generated by Windows Terminal 0.11.1333.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{73225108-7633-47ae-80c1-5d00111ef646}",
// "defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
@thiagoalvesfoz
thiagoalvesfoz / AlgoritimoCpf.js
Created September 3, 2020 22:21
Mascara e Validador para CPF
function cpfMask(value) {
return value
.replace(/\D/g, "")
.replace(/(\d{3})(\d)/, "$1.$2")
.replace(/(\d{3})(\d)/, "$1.$2")
.replace(/(\d{3})(\d{1,2})/, "$1-$2")
.replace(/(-\d{2})\d+?$/, "$1");
};
// EXEMPLO
@thiagoalvesfoz
thiagoalvesfoz / markdown-text-discord.md
Created September 1, 2020 19:15 — forked from cogumm/markdown-text-discord.md
Guia de Markdown para o nosso amado Discord.

Markdown Text 101

Quer deixar o seu seu bate-papo de texto do Discord com um sabor diferente? Você está com sorte, pois este é um Guia de Markdown para o nosso amado Discord!. O Discord usa o Markdown, um sistema simples de formatação de texto simples que ajudará você a destacar suas frases. Veja como fazer isso! Apenas adicione alguns caráteres antes e depois de texto desejado para mudar o estilo! Vou te mostrar alguns exemplos ...

Menu:

@thiagoalvesfoz
thiagoalvesfoz / gist:d3d52694cc0b1eb37f5e3f46ba094a53
Created July 10, 2020 20:14 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@thiagoalvesfoz
thiagoalvesfoz / comandos-git.md
Last active January 5, 2024 12:42
Comandos úteis para se dar bem no git

Novo repositório Atualizado

Para manter a lista de comandos atualizados e aberto para contribuições, decidi migrar a lista para o meu repositório.
Acesse o novo repositório aqui


Comandos úteis para git
Comandos úteis para se dar bem no git