setfacl -R -d -m u:artisanuser:rwx storage
setfacl -R -d -m g:www-data:rwx storage
This is a very simple method, and for me (as a SysAdmin) it's very practical as I usually make things through SSH terminal.
It's important to say that everything (including text inside posts) that matches the find string WILL BE REPLACED!
For me it's never been a problem so far, but one never knows
First we generate the dump itself, for example:
mysqldump -umyuser -pmypass mydatabase > mydumpfile.sql
Sometimes if you are mailed of cronjobs, will may got an error like this:
/etc/cron.daily/logrotate:
error: error running shared postrotate script for '/var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log /var/log/mysql/error.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1
Well, don't panic! Also don't ignore it! :)
ps -ylC apache2 --sort:rss | awk '{sum+=$8; ++n} END {print "Tot="sum"("n")";print "Avg="sum"/"n"="sum/n/1024"MB"}'
Github: https://github.com/pixelb/ps_mem/
- Install pip:
apt-get install python-pip
- Install ps_mem
pip install ps_mem
Se você possui MAC, provavelmente no arquivo ~/.zshrc.
Se você possui Linux, provavelmente ~/.bashrc.
Se você possui Windows, clique aqui
Ref: https://community.letsencrypt.org/t/how-to-stop-using-tls-sni-01-with-certbot/83210
certbot --version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DOMAIN=$1 | |
if [ -z "$DOMAIN" ] | |
then | |
echo "Favor digitar o domínio como primeiro parâmetro após o comando" | |
exit 1 | |
else | |
echo "Utilizando domínio $DOMAIN" | |
fi |