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
definir usuario padrao git: | |
git config --global credential.https://github.com.username name |
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
- na configuracao do windows apos o reboot do pendrive: | |
Na tela que solicita a conexão com a internet, pressione Shift + F10 para abrir o Prompt de Comando. | |
Digite o comando OOBE\BYPASSNRO e pressione Enter. O computador reiniciará automaticamente. | |
- desativar menu de contexto novo: | |
abra o cmd e use: reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve | |
obs: apos isso reiniciar o explorer | |
- desativar icone e atalho do idioma do teclado: | |
Acesse as Configurações: Pressione Win + I para abrir as Configurações. |
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
import { Injectable } from '@nestjs/common'; | |
import { PassportStrategy } from '@nestjs/passport'; | |
import { ExtractJwt, Strategy } from 'passport-jwt'; | |
import { jwtConstants } from '../constants'; | |
import { Request } from 'express'; | |
@Injectable() | |
export class JwtStrategy extends PassportStrategy(Strategy) { | |
constructor() { | |
super({ |
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
Propridades do atalho e vá no campo Destino e adicione isso no final: | |
--disable-web-security --user-data-dir=/ | |
irá ficar assim: | |
"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --disable-web-security --user-data-dir=/ |
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
Para gerar uma nova chave SSH, use o comando: | |
ssh-keygen -t ed25519 -C "seu_email@exemplo.com" | |
Inicie o agente SSH: | |
eval "$(ssh-agent -s)" | |
Adicione a chave SSH ao agente: | |
ssh-add ~/.ssh/id_ed25519 | |
Copie o conteúdo da chave pública para o clipboard: |
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
Edite o arquivo /etc/ssh/sshd_config e adicione ou modifique as seguintes linhas: | |
ClientAliveInterval 60 | |
ClientAliveCountMax 3 | |
Reinicie o serviço SSH para aplicar as mudanças: | |
sudo systemctl restart sshd |
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
criar chave no SSH: | |
em um ubuntu normal usar o comando: | |
ssh-keygen -t rsa -b 4096 -C "teste@gmail.com" | |
aperte: enter enter enter | |
apos isso enviar a chave para o servidor: | |
ssh-copy-id -p 2222 admin@100.165.66.30 | |
copiar a chave para do seu ubuntu para um lugar: | |
cp ~/.ssh/id_rsa . |
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
// Seus números e trevos escolhidos | |
const playedNumbers = new Set([7, 17, 18, 28, 37, 43]); | |
const playedClovers = new Set([3, 4]); | |
// Resultados dos sorteios | |
const draws = [ | |
{ numbers: [9, 21, 26, 38, 40, 50], clovers: [3, 6] }, | |
{ numbers: [16, 27, 33, 37, 40, 42], clovers: [2, 3] }, | |
{ numbers: [3, 11, 20, 36, 47, 50], clovers: [3, 6] }, |
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
sudo iptables -t nat -A PREROUTING -p tcp --dport 27017 -j DNAT --to-destination 172.17.0.3:27017 |
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
browser.tabs.tabmanager.enabled = false | |
browser.compactmode.show = true (change menu bar and config density to compact) |
NewerOlder