Code: Select all
tmux new -s #session_name
Code: Select all
tmux attach -t #session_name
Code: Select all
tmux ls
Code: Select all
tmux new -s #session_name
Code: Select all
tmux attach -t #session_name
Code: Select all
tmux ls
Code: Select all
host all all 0.0.0.0/0 scram-sha-256
Code: Select all
\password postgres
Code: Select all
pg_basebackup while write activities on primary db
Code: Select all
pg_basebackup -h primary_host -p 47140 -D /path/to/backup/dir -v -X stream -P --checkpoint=fast -R
Code: Select all
seq 100000 | xargs -I{} -- sh -c 'command1; command2; command3; . . .'
Code: Select all
seq 100000 | xargs -I{} -- sh -c 'echo "Loop {}"; ab -n 100000 -c 1000 http://172.16.22.110/'
Code: Select all
PermitRootLogin no
MaxAuthTries 4
Code: Select all
sudo service ssh restart
Code: Select all
sudo vim /etc/systemd/resolved.conf
Code: Select all
[Resolve]
DNS=8.8.8.8 8.8.4.4
Domains=example.com local.domain