Skip to content

Instantly share code, notes, and snippets.

View Lucasmq's full-sized avatar

Lucas Queiroz Lucasmq

  • João Pessoa - PB
View GitHub Profile

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@Lucasmq
Lucasmq / atalhos-ij.txt
Created November 26, 2020 12:38 — forked from boaglio/atalhos-ij.md
Atalhos do IntelliJ - para quem veio do Eclipse
Atalhos do IntelliJ
----------------------------------------------------------------------------------
templates:
----------------------------------------------------------------------------------
psvm - primeira letra - public static void main
sout - System.out.println
CONTROL + J - live template (usar "Save as live template" para criar novos)
----------------------------------------------------------------------------------
atalhos:
----------------------------------------------------------------------------------
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
TYPEORM_MIGRATION = ./src/database/migrations/*.ts
TYPEORM_ENTITIES = ./src/models/*.ts
TYPEORM_MIGRATION_DIR = ./src/database/migrations
// services/AuthenticateUserService.ts
import { getRepository } from 'typeorm';
import { compare } from 'bcryptjs';
import { sign } from 'jsonwebtoken';
import authConfig from '../config/auth';
import AppError from '../errors/AppError';
@Lucasmq
Lucasmq / comandosTypeORM.txt
Last active June 21, 2020 19:14
Comandos para migrations - TypeORM
yarn typeorm migration:run
yarn typeorm migration:create -n [NAME_MIGRATION]
yarn typeorm migration:revert
yarn typeorm migration:generate -n PostRefactoring