# Заповнюємо змінні
export FROM=mailadmin@mail.gomin1d.top
export TO=zzzzzzjon1@gmail.com
export SMTP=localhost:25
# Виконуємо команди відправки листа
cat > /etc/ssmtp/ssmtp.conf <<EOF
root=$FROM
mailhub=$SMTP
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 | |
echo "Recreating docker iptables rules and chains" | |
echo "iptables -N DOCKER" | |
echo "iptables -N DOCKER-ISOLATION" | |
echo "iptables -t nat -N DOCKER" | |
echo "iptables -A DOCKER-ISOLATION -j RETURN" | |
echo "iptables -A FORWARD -j DOCKER-ISOLATION" | |
echo "iptables -t nat -A PREROUTING -m addrtype -dst-type LOCAL -j DOCKER" |
![mail1.png](https://gist.github.com/gomin1d/92dffa0bb60a92f060d8cc0bfc7251b4/raw/316a54e3b100d8c6e51ebd11cf18405dba4a88a6/mail1.png)
при установке mariadb после команды
add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://www.ftp.saix.net/DB/mariadb/repo/10.1/ubuntu xenial main'
нужно открыть
nano /etc/apt/sources.list
и там раскомментировать репозиторий mariadb
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
# Добавить в конец файла .bashrc или .profile | |
# Tmux | |
if [ $(tmux ls | wc -l) -eq 0 ] ; then | |
tmux new -d -n htop 'htop; bash' | |
for d in ~/servers/*; { tmux neww -n $(basename $d) -c $d 'mc; bash'; } | |
tmux neww -n work 'mc; bash' | |
fi | |
tmux attach |