Skip to content

Instantly share code, notes, and snippets.

const name = 'Sóstenes Apollo';
const filterText = removeAccents(`%${name}%`).toLowerCase();
console.log('Filter text', filterText);
this.prisma.$queryRaw`select
id, name
from users
where LOWER(unaccent(name)) LIKE ${filterText};`.then((users) =>
console.log(users),
);

🌱🌎 Configure Dokku Environment

  • Followed these steps: CONHEÇA O DOKKU & APRENDA A CONFIGURÁ-LO PASSO-A-PASSO

  • Crie um droplet na digital ocean usando vps com imagem do dokku

  • Crie um app no dokku via ssh do seu server

  • Lembrando que pra configurar o ssl o seu domínio tem que estar apontado para os servers da digital ocean

alias d=docker
alias g=git
alias dk=docker-compose
alias ds='docker stop (docker ps -a -q)'
alias dps='docker ps'
alias dp='docker ps'
alias c='clear'
alias ns='npm start'
alias nt='npm test'
alias nd='npm run dev'

Delete all containers using the following command:

docker rm -f $(docker ps -a -q)

Delete all volumes using the following command

docker volume rm $(docker volume ls -q)