docker compose -f n8n-compose.yml --env-file prod.env -p n8n up -d
Source https://devopscube.com/how-to-setup-and-push-serverapplication-logs-to-aws-cloudwatch/
sudo yum install collectd
sudo yum install amazon-cloudwatch-agent
sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-config-wizard
ll /opt/aws/amazon-cloudwatch-agent/bin/config.json
sudo cp /opt/aws/amazon-cloudwatch-agent/bin/config.json /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json
sudo systemctl start amazon-cloudwatch-agent.service
sudo systemctl status amazon-cloudwatch-agent.service
This will allow you to match incoming mail by regex and redirect it to any other mail but will break the Catch-ALL rule in the Aliases.
(Assume that you are root
and repo was cloned into the /root/mailcow-dockerized
)
Override main.cf
nano /root/mailcow-dockerized/data/conf/postfix/extra.cf
This file contains hidden or 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
version: "3" | |
services: | |
mongo: | |
image: mongo:latest | |
restart: always | |
volumes: | |
- ./db:/data/db | |
pritunl: |
This file contains hidden or 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
# Get info | |
Get-VM -VMname * | Select-Object VMname,State,AutomaticStartAction #,AutomaticStartDelay,AutomaticStopAction | |
# Start all VMs that must be running | |
Get-VM -VMname * | Select-Object VMname,State,AutomaticStartAction | ` | |
Where-Object {($_.State -eq 'Off') -and ($_.AutomaticStartAction -eq 'Start')} | ` | |
select -ExpandProperty VMname | Start-VM | |
# Turn off critical VMs | |
Get-VM -VMname * | Select-Object VMname,State,AutomaticStartAction | ` |
mysqldump --routines --single-transaction EventLogging | gzip -c > eventlogging.sql.gz
gunzip < /tmp/eventlogging.sql.gz | mysql -u root -p EventLogging
For big backup file
mysql -u root -p
set global net_buffer_length=1000000; --Set network buffer length to a large byte number
This file contains hidden or 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
# Amount of needed Firefox profiles | |
$amount=2 | |
# if ( Test-Path -Path "C:\Program Files\Mozilla Firefox\" ){ | |
# curl.exe -O firefox.exe https://download.mozilla.org/?product=firefox-latest-ssl&os=win64&lang=uk | |
# } | |
# Create $amount profiles | |
while($num -lt $amount){ |
HowTo install pcntl
php -v
wget http://php.net/distributions/php-7.4.27.tar.gz
tar zxvf php-7.4.27.tar.gz
ll
cd php-7.4.27/ext/pcntl
phpize
Vault
ansible-vault create --vault-id zabbix@~/ans-ps-file ~/ans-vault-zabbix.yml
ansible-vault view --vault-id zabbix@~/ans-ps-file ~/ans-vault-zabbix.yml
ansible-vault view --vault-pass-file ~/ans-ps-file ~/ans-vault-zabbix.yml
# rekey it!
Local dynamic inventory (nmap)
NewerOlder