need install:
- php-fpm
- nginx
sudo apt install phpmyadmin
create into /etc/nginx/snippets
the file phpmyadmin.conf
add in file:
# Backup | |
docker exec CONTAINER_NAME /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restaurar | |
cat backup.sql | sudo docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE |
sudo sh -c "echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf" |
sudo docker exec -it container nginx -s reload |
# Criar e entrar no repositorio .git | |
mkdir ~/git/meu_projeto.git | |
cd ~/git/meu_projeto.git | |
# Iniciar um novo repositorio git bare | |
git init --bare | |
# Com o repositorio criado voce navega até hooks e criar um arquivo post-receive |
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb | |
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb |
#!/bin/sh | |
rm -rfv "$HOME/.vscode" | |
rm -rfv "$HOME/Library/Application Support/Code" | |
rm -rfv "$HOME/Library/Caches/com.microsoft.VSCode" | |
rm -rfv "$HOME/Library/Saved Application State/com.microsoft.VSCode.savedState" |
access the file ´/etc/mysql/my.cnf´ or ´/etc/mysql/mariadb.conf.d/50-server.cnf´ and find the line `bind-address = 127.0.0.1 | |
and change 127.0.0.1 to 0.0.0.0. | |
source: https://webdock.io/en/docs/how-guides/database-guides/how-enable-remote-access-your-mariadbmysql-database |
need install:
sudo apt install phpmyadmin
create into /etc/nginx/snippets
the file phpmyadmin.conf
add in file:
Listar o tamanho de cada subdiretório no diretório raiz em ordem decrescente: | |
sudo du -h --max-depth=1 / | sort -rh | |
Se preferir uma saída mais concisa, você pode listar apenas os diretórios e seus tamanhos: | |
sudo du -h --max-depth=1 --separate-dirs / | |
Jenv is great, but the JDKs have to be manually installed. If you need more than just a couple of them, you'll want to be able to install them via command line, and sdkman provides this capability very cleanly for java. So... is it possible to work with both sdkman and jenv? Yes and no. Some tricks will allow you to tell jenv about the java versions that are managed by sdkman, but setting defaults (using jenv local 17.0
for instance) does not work very well. Time for a cleaner solution. Sdkman provides all of the same functionality, with more power and a slightly different (but equally simple) syntax. I've switched from jenv to sdkman. Here's my cheat sheet.
Download and install sdkman. Follow the required instructions after installing. Then, run the config command to enable auto_env support.
echo “Installing SDKMAN"
curl -s https://get.sdkman.io | bash