Skip to content

Instantly share code, notes, and snippets.

View thekoma's full-sized avatar
🏠
Working from home

Andrea Cervesato thekoma

🏠
Working from home
View GitHub Profile
@ralvares
ralvares / sno on kvm
Last active May 3, 2022 16:39
Install Single Node Cluster on KVM - for fun
My environment is below:
Centos8
libvirtd (libvirt) 7.0.0
libvirt network: default - Range 192.168.122.0/24
Domain and Single Node IP: *.sno.local 192.168.122.10
Extracting openshift-baremetal-install
export VERSION=latest-4.8
@garis
garis / IPv6FastwebMikrotik
Last active February 20, 2022 14:20
Fastweb IPv6 on Mikrotik
Take note of the IPv6 prefix assigned then disable IPv6 LAN in the Fastgate (Avanzate->then disable "IPV6 su LAN").
Commands:
/interface 6to4
add clamp-tcp-mss=yes comment="Fastweb IPv6 tunnel" disabled=no dont-fragment=no dscp=inherit !ipsec-secret !keepalive local-address=192.168.2.1 mtu=1480 name=FastwebIPv6Tunnel remote-address=81.208.50.214
/ipv6 address
add address=2001:b07:XXXX:YYYY::512/128 advertise=no disabled=no eui-64=no from-pool="" interface=FastwebIPv6Tunnel no-dad=no
add address=2001:b07:XXXX:YYYY::/64 advertise=yes disabled=no eui-64=no from-pool="" interface=bridge no-dad=no
@alfonsotesauro
alfonsotesauro / ipv6.rsc
Created December 3, 2020 21:52 — forked from mtrimarchi/ipv6.rsc
Fastweb IPv6 Mikrotik RouterOS
/interface 6to4
add clamp-tcp-mss=yes disabled=no dont-fragment=no dscp=inherit local-address=2.230.192.193 mtu=1480 name=6rd remote-address=81.208.50.214
/ipv6 pool
add name=ip6 prefix=2001:b07:2e6:c0c1:: prefix-length=64
/ipv6 address
add address=2001:b07::/32 advertise=no disabled=no eui-64=no from-pool="" interface=6rd no-dad=no
add address=::/64 advertise=yes disabled=no eui-64=no from-pool=ip6 interface=bridge no-dad=yes
@goldyfruit
goldyfruit / pkg.yml
Last active December 16, 2020 09:40
[ansible] Check via the yum module and a registered value if a package is installed or not
---
- name: Ansible tests playbook
hosts: all
remote_user: root
tasks:
- name: Check if mariadb-libs-5.5.44-2.el7.centos.x86_64 package is installed
yum:
list=mariadb-libs-5.5*x86_64
register: pkg
@dodyw
dodyw / findbot.pl
Last active October 11, 2019 10:30
Perl script to find suspicious scripts. This script is taken from http://cbl.abuseat.org/findbot.pl
#!/usr/bin/perl
# The above line may need to be changed to point at your version of Perl
#
# This script attempts to find malicious files/scripts on your machine.
# It specifically looks for spambots that we're aware of, as well
# as "suspicious" constructs in various scripting languages.
#
# Normally it should be run as root.
#
# By default, findbot.pl scans the directories /tmp, /usr/tmp, /home and