Skip to content

Instantly share code, notes, and snippets.

View vicmagpac's full-sized avatar
🎯
Focusing

Victor Magalhães vicmagpac

🎯
Focusing
  • Brasil
  • 22:48 (UTC -03:00)
View GitHub Profile
#!/bin/bash
# Baseado em http://mig5.net/content/mysql-postgresql-all-databases-backup-script
# Rafael Bernard Rodrigues Araujo - 14/06/2012
today=$(date +%y%m%d)
# local dir where the backups go
myDir='/disk2/backup/pg'
# this is for PostgreSQL. If you don't need it, you
@vicmagpac
vicmagpac / cielo.sh
Last active August 29, 2015 14:15 — forked from netojoaobatista/cielo.sh
#!/bin/bash
if [ $EUID != 0 ]; then
echo 'Você precisa ser root para instalar certificados.'
exit $?
fi
# Diretório onde os certificados serão instalados
cert_path=`openssl version -d|sed 's/.*\"\(.*\)\"/\1/g'`/certs
# Path para o certificado da Cielo
@vicmagpac
vicmagpac / JetBrains trial reset.md
Created November 5, 2024 11:15 — forked from h3ssan/JetBrains trial reset.md
Reset all JetBrains products trial in Linux

In some cases, only these lines will work

for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    rm -rf ~/.config/$product*/eval 2> /dev/null
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
done

But if not, try these