-
instalando o ts-node pra rodar .ts no terminal
sudo npm i -g ts-node
-
Instalando o tyorm
sudo npm i -g typeorm
-
Verificando a versão do typeorm
typeorm -v
This file contains 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
// | |
// Middleware para fazer a contagem de requisições feitas nas URL's. | |
// | |
let contador = 0; | |
const adicionar = async (req, res, next) => { | |
contador += 1; | |
next(); | |
}; |
This file contains 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
Pressionando a Fn + PRINT SCREEN – tira uma cópia da tela inteira. | |
Pressionando a CTRL + Fn + PRINT SCREEN – tira uma cópia da tela inteira e copia pra área de transferência. | |
Pressionando as teclas ALT + PRINT SCREEN – o que tira uma cópia apenas da janela em foco. | |
Pressionando as teclas SHIFT + PRINT SCREEN – o cursor do mouse muda para uma cruz e você pode selecionar uma região da tela para copiar. Deve então pressionar ENTER (ou RETURN) para copiar a região selecionada. | |
Pressionando as teclas CTRL + Fn + SHIFT + PRINT SCREEN – o cursor do mouse muda para uma cruz e você pode selecionar uma região da tela para copiar. Deve então pressionar ENTER (ou RETURN) para copiar a região selecionada. |
This file contains 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
# first step | |
sudo apt install pavucontrol | |
# seacrh for settings | |
# select "duplex" | |
This file contains 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
#!/bin/bash | |
cd /tmp || exit | |
read -r -p "[s]table or [b]eta? [sS/bB] " choice | |
choice=${choice,,} # tolower | |
if [[ ! "$choice" =~ ^(s|b)$ ]]; then | |
exit | |
fi | |
if [[ "$choice" = "s" ]]; then | |
url=https://dl.pstmn.io/download/latest/linux64 | |
name=Postman |
This file contains 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
@tablet: ~"screen and (min-width: 768px)"; | |
@smartphones: ~"screen and (min-width: 320px) and (max-width: 480px)"; | |
@ipads: ~"screen and (min-width: 768px) and (max-width: 1024px)"; | |
// para iPhones | |
@iphone4: ~"screen and (min-width: 320px) and (max-width: 480px)"; | |
@iphone5: ~"screen and (min-width: 320px) and (max-height: 568px)"; |
This file contains 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 apt-add-repository ppa:tista/adapta | |
sudo apt install papirus-icon-theme adapta-gtk-theme | |
sudo apt install breeze-cursor-theme | |
sudo apt remove plank |
This file contains 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
const express = require('express'); | |
const session = require('express-session'); | |
const bp = require('body-parser'); | |
const app = express(); | |
const router = express.Router(); | |
const host = process.env.HOST || '0.0.0.0' | |
const port = process.env.PORT || 3000 |
This file contains 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
Simple!!! | |
Could not compile template? | |
sudo rm -rf node_modules | |
yarn install |
OlderNewer