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
local 172.16.1.75 | |
port 443 | |
proto tcp | |
dev tun | |
ca ca.crt | |
cert server.crt | |
key server.key | |
dh dh.pem | |
auth SHA512 | |
tls-crypt tc.key |
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
[Journal] | |
SystemMaxUse=100M |
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
# /etc/rsyslog.d/syslog_send.conf | |
*.* @log.at.home:514 | |
$ActionQueueFileName queue | |
$ActionQueueMaxDiskSpace 1g | |
$ActionQueueSaveOnShutdown on | |
$ActionQueueType LinkedList | |
$ActionResumeRetryCount -1 |
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
#sudo crontab -e | |
0 0 * * * /usr/bin/find /var/log -name "*.gz" -type f -mtime +30 -exec rm -f {} \; -print >> /var/log/cron_delete.log |
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 | |
#Scripts to start services if not running | |
ps -ef | grep pihole-FTL |grep -v grep > /dev/null | |
if [ $? != 0 ] | |
then | |
systemctl restart pihole-FTL >> /var/log/pihole_autorestart.log | |
fi |
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
/usr/bin/curl -X POST -d '{"id":1, "src":"user_1", "method":"Shelly.SetState", "params":{"id":1, "type":4, "state":{"tgt_pos": 0}}}' http://172.16.0.238/rpc ; /bin/sleep 30 ; /usr/bin/curl -X POST -d '{"id":1, "src":"user_1", "method":"Shelly.SetState", "params":{"id":1, "type":4, "state":{"tgt_pos": 100}}}' http://172.16.0.238/rpc ; /bin/sleep 30 ; /usr/bin/curl -X POST -d '{"id":1, "src":"user_1", "method":"Shelly.SetState", "params":{"id":1, "type":4, "state":{"tgt_pos": 0}}}' http://172.16.0.238/rpc ; /bin/sleep 30 ; /usr/bin/curl -X POST -d '{"id":1, "src":"user_1", "method":"Shelly.SetState", "params":{"id":1, "type":4, "state":{"tgt_pos": 100}}}' http://172.16.0.238/rpc ; /bin/sleep 30 ; /usr/bin/curl -X POST -d '{"id":1, "src":"user_1", "method":"Shelly.SetState", "params":{"id":1, "type":4, "state":{"tgt_pos": 0}}}' http://172.16.0.238/rpc ; /bin/sleep 30 ; /usr/bin/curl -X POST -d '{"id":1, "src":"user_1", "method":"Shelly.SetState", "params":{"id":1, "type":4, "state":{"tgt_pos": 100}}}' http://172 |
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
nohup ./sniff_lan.sh & |
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
/usr/bin/curl -X POST -d '{"id":1, "src":"user_1", "method":"Shelly.SetState", "params":{"id":1, "type":4, "state":{"tgt_pos": 0}}}' http://172.16.0.238/rpc ; /bin/sleep 20 ; /usr/bin/curl -X POST -d '{"id":1, "src":"user_1", "method":"Shelly.SetState", "params":{"id":1, "type":4, "state":{"state": 10}}}' http://172.16.0.238/rpc ; /bin/sleep 10 ; /usr/bin/curl -X POST -d '{"id":1, "src":"user_1", "method":"Sys.Reboot", "params":{"id":1, "type":4, "state":true}}' http://172.16.0.238/rpc |
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
# update esxi | |
esxcli network firewall ruleset set -e true -r httpClient | |
esxcli software profile update -p ESXi-7.0U2e-19290878-standard --no-hardware-warning -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | |
esxcli network firewall ruleset set -e false -r httpClient | |
OR | |
esxcli software sources profile list -d /vmfs/volumes/<DataStore-Name>/<Update-Datei>.zip | |
esxcli software profile update -d /vmfs/volumes/<DataStore-Name>/<Update-Datei>.zip -p <Image-Profile> |
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
# reset/wipe etcd on each node | |
systemctl stop etcd | |
rm -rf /var/lib/etcd/member | |
systemctl start etcd | |
sleep 5 | |
systemctl status etcd |
NewerOlder