Skip to content

Instantly share code, notes, and snippets.

View marvin-marvin's full-sized avatar
⌨️
https://gist.github.com/marvin-marvin

Marvin marvin-marvin

⌨️
https://gist.github.com/marvin-marvin
  • Braunschweig, Germany
View GitHub Profile
@marvin-marvin
marvin-marvin / create_kvm_centos.sh
Last active May 20, 2019 09:53
create kvm centos 7
### 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
@marvin-marvin
marvin-marvin / k8s_configuration.sh
Last active April 8, 2021 18:29
k8s configuration
# 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
@marvin-marvin
marvin-marvin / docker_k8s_setup.sh
Last active April 7, 2021 18:23
docker k8s setup
### 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
@marvin-marvin
marvin-marvin / home_vpn_juliane.mobileconfig
Last active September 17, 2019 15:10
fritzbox autoconnect vpn
<?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>
@marvin-marvin
marvin-marvin / vzdump-backup.pl
Last active June 17, 2019 13:30
backup proxmox via rclone
#!/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
curl -v https://github.com 2>&1 | awk 'BEGIN { cert=0 } /^\* Server certificate:/ { cert=1 } /^\*/ { if (cert) print }'
(^|\.)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$
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
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
@marvin-marvin
marvin-marvin / check_ports.sh
Last active June 30, 2020 11:23
check udp/tcp ports
# 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