sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| 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'; |
| yarn typeorm migration:run | |
| yarn typeorm migration:create -n [NAME_MIGRATION] | |
| yarn typeorm migration:revert | |
| yarn typeorm migration:generate -n PostRefactoring |