sudo apt install openssl
openssl req -newkey rsa:4096 \
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
// Connect to the special DNS name <host.docker.internal> which resolves to the internal IP address used by the host. | |
Windows -> host.docker.internal | |
Linux -> 172.17.0.1 |
// create file: | |
sudo vim /usr/share/applications/intellij.desktop | |
// add the following | |
[Desktop Entry] | |
Version=13.0 | |
Type=Application | |
Terminal=false | |
Icon[en_US]=/home/rob/.intellij-13/bin/idea.png | |
Name[en_US]=IntelliJ |
<VirtualHost *:80> | |
ServerName avaliacoes.com | |
ServerAlias avaliacoes.com | |
ServerAdmin admin@avaliacoes.com | |
DocumentRoot "C:\workspace\php\sistema-avaliacoes\public" | |
ErrorLog "logs/avaliacoes-error.log" | |
CustomLog "logs/avaliacoes--access.log" common | |
</VirtualHost> |