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
### install kvm on centos7 | |
# install packages | |
yum install qemu-kvm libvirt libvirt-python libguestfs-tools virt-install | |
systemctl enable libvirtd ; systemctl start libvirtd ; systemctl status libvirtd | |
# setup br0 and enp0s25 as slave (use nmtui) | |
add BRIDGE=br0 to /etc/sysconfig/network-scripts/ifcfg-enp0s25 | |
nano /etc/sysconfig/network-scripts/ifcfg-br0 | |
DEVICE=br0 |
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
# label workers | |
kubectl label node vps-nl-ams-kube-2 node-role.kubernetes.io/worker=worker | |
kubectl label node vps-us-atl-kube-3 node-role.kubernetes.io/worker=worker | |
kubectl label node esxi-ger-bs-kube-4 node-role.kubernetes.io/worker=worker | |
kubectl label node esxi-ger-bs-kube-5 node-role.kubernetes.io/worker=worker | |
kubectl label node esxi-ger-bs-kube-6 node-role.kubernetes.io/worker=worker | |
# label ESXI workers |
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
### docker + kubernetes installation | |
# docker stuff (not on KVM hosts) | |
modprobe br_netfilter | |
echo 'net.bridge.bridge-nf-call-arptables = 1' >> /etc/sysctl.conf | |
echo 'net.bridge.bridge-nf-call-ip6tables = 1' >> /etc/sysctl.conf | |
echo 'net.bridge.bridge-nf-call-iptables = 1' >> /etc/sysctl.conf && sysctl -p /etc/sysctl.conf | |
yum install -y yum-utils device-mapper-persistent-data lvm2 | |
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
yum install -y docker-ce |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadContent</key> | |
<array> | |
<!-- Home: Manual --> | |
<dict> | |
<key>UserDefinedName</key> |
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
#!/usr/bin/perl -w | |
### VZdump hook script for offsite backups to Gdrive | |
# prepare rclone profile in /root/.config/rclone | |
# symlink to /usr/local/bin/vzdump-backup.pl | |
# add "script: /usr/local/bin/vzdump-backup.pl" (without quotes) to /etc/vzdump.conf | |
# start backup via web GUI | |
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
curl -v https://github.com 2>&1 | awk 'BEGIN { cert=0 } /^\* Server certificate:/ { cert=1 } /^\*/ { if (cert) print }' |
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
(^|\.)i\.computer-bild\.de$ | |
(^|\.)popup\.taboola\.com$ | |
(^|\.)media\.recognified\.net$(^|\.)adclick\.g\.doubleclick\.net$ | |
(^|\.)moatads\.com$ | |
(^|\.)ad\.doubleclick\.net$ | |
(^|\.)www6\.smartadserver\.com$ | |
(^|\.)googleadservices\.com$ | |
(^|\.)www\.googleadservices\.com$ | |
(^|\.)z\.moatads\.com$ | |
(^|\.)mads\.amazon-adsystem\.com$ |
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
https://raw.githubusercontent.com/r-a-y/mobile-hosts/master/AdguardMobileAds.txt | |
https://mirror1.malwaredomains.com/files/justdomains | |
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt | |
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt | |
https://hosts-file.net/ad_servers.txt | |
https://www.fanboy.co.nz/fanboy-cookiemonster.txt | |
https://www.i-dont-care-about-cookies.eu/abp/ | |
https://raw.githubusercontent.com/CHEF-KOCH/CKs-FilterList/master/HOSTS/Ads-tracker.txt | |
https://raw.githubusercontent.com/CHEF-KOCH/CKs-FilterList/master/HOSTS/coinminer.txt | |
https://raw.githubusercontent.com/CHEF-KOCH/CKs-FilterList/master/HOSTS/Malware.txt |
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
adclick.g.doubleclick.net | |
googleads.g.doubleclick.net | |
fls-na.amazon-adsystem.com | |
ad.doubleclick.net | |
www6.smartadserver.com | |
www.googleadservices.com | |
googleadservices.com | |
z.moatads.com | |
mads.amazon-adsystem.com | |
js.ad-score.com |
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
# check UDP port | |
nmap -sU -p 53 5.230.24.151 | |
# check TCP port | |
nmap -sTU -p 22 192.168.1.120 | |
# if there is no nmap | |
nc -zv 192.168.43.241 443 | |
nc -vz -u 10.1.0.100 53 |