Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Valter Andrei ValterAndrei

🏠
Working from home
  • Poços de Caldas - MG, Brasil
View GitHub Profile
@ValterAndrei
ValterAndrei / cpf_cnpj_regex.md
Last active July 27, 2022 12:29
Regex for CPF and CNPJ
View cpf_cnpj_regex.md
  • CPF
/^\d{3}\.\d{3}\.\d{3}\-\d{2}$/
  • CNPJ
/^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$/
View remove-all-from-docker.sh
# Stop all containers
docker stop $(docker ps -qa)
# Remove all containers
docker rm $(docker ps -qa)
# Remove all images
docker rmi -f $(docker images -qa)
# Remove all volumes