Skip to content

Instantly share code, notes, and snippets.

View kvaps's full-sized avatar
🔳
This mess is mine!

Andrei Kvapil kvaps

🔳
This mess is mine!
View GitHub Profile
@kvaps
kvaps / Three-Node-LustreFS-Cluster-Quickstart.md
Last active October 9, 2017 16:57 — forked from joshuar/Three-Node-LustreFS-Cluster-Quickstart.md
Quick three-node Lustre set-up on CentOS 6
@kvaps
kvaps / vyos.sh
Created August 6, 2017 23:19 — forked from jbrodriguez/vyos.sh
#!/bin/vbash
# CONFIG
wan=dhcp
lan=192.168.1.1
lan_segment=192.168.1.0
vpn_segment=192.168.5.0
domain=apertoire.org
lease_start=192.168.1.200
lease_stop=192.168.1.245
@kvaps
kvaps / gist:90e95e23582b83258a01b91d642b24f1
Created July 9, 2017 19:08 — forked from nabla-c0d3/gist:715cdfe2ffb9d13726eb
MitM Script for XMPP StartTLS Stripping
#!/usr/bin/env python
import sys, socket, thread, ssl
from select import select
HOST = '0.0.0.0'
PORT = 5222
BUFSIZE = 4096
# Change this with the first two bytes of the SSL client hello
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
systemctl stop corosync
systemctl stop pve-cluster
pmxcfs -l
rm /etc/pve/corosync.conf
rm /etc/corosync/authkey
rm /etc/corosync/corosync.conf
#reboot the server
@kvaps
kvaps / le-renew-webroot
Created December 23, 2015 13:01 — forked from thisismitch/le-renew-webroot
Let's Encrypt Auto-Renewal using the Webroot Plugin (Nginx)
#!/bin/bash
web_service='nginx'
config_file="/usr/local/etc/le-renew-webroot.ini"
le_path='/opt/letsencrypt'
exp_limit=30;
if [ ! -f $config_file ]; then
echo "[ERROR] config file does not exist: $config_file"