Skip to content

Instantly share code, notes, and snippets.

Living the dream

Jeffrey Clark h0tw1r3

Living the dream
View GitHub Profile
cerebrate /
Last active Oct 9, 2021
Recompile your WSL2 kernel - support for snaps, apparmor, lxc, etc.


See below before doing anything else.

Recompile your WSL2 kernel - support for snaps, apparmor, lxc, etc.

Yes, I've done this, and yes, it works. It is, however, entirely unsupported and assembled through reasonable guesswork, so if you try this and it explodes your computer, brain, career, relationships, or anything else, you agree that you take sole responsibility for doing it, that I never claimed it was a good idea, and that you didn't get these instructions from me .


Installing multipath tools on PVE Cluster with shared storage

This cheatsheet shows how to install and configure multipath tools on Proxmox PVE Cluster where multiple nodes share single storage with multipath configuration, for example SAN storage connected to each of the nodes by two independent paths.

Proxmox PVE version

This cheatsheet has been tested on Proxmox 5.x.

Note about sudo

I do not prepend sudo command to any of commands listed here, but keep in mind that nearly all commands requires su privileges, so use sudo if your account happen to not have root access.

f0ster /
Last active Nov 8, 2019
slack history downloader (pub and priv) with rate limit retry :)
# MIT License
# Copyright (c) 2016 Chandler Abraham
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
LiamHaworth / notifyAddrChange.go
Created Jun 22, 2017
A simple go program leveraging the Window API to listen for IPv4 network address change events
View notifyAddrChange.go
package main
import (
dalenoe /
Last active Oct 14, 2018 — forked from stevejenkins/
Import and use SSL certificates (including Let's Encrypt) with the Ubiquiti UniFi Controller on Unix/Linux Systems
#!/usr/bin/env bash
# UniFi Controller SSL Certificate Import Script for Unix/Linux Systems
# by Steve Jenkins <>
# Incorporates ideas from
# Version 2.2
# Last Updated June 26, 2016
samhocevar / gist:00eec26d9e9988d080ac
Last active Aug 18, 2021
Configure sshd on MSYS2 and run it as a Windows service
View gist:00eec26d9e9988d080ac
# — configure sshd on MSYS2 and run it as a Windows service
# Please report issues and/or improvements to Sam Hocevar <>
# Prerequisites:
# — MSYS2 itself:
# — admin tools: pacman -S openssh cygrunsrv mingw-w64-x86_64-editrights
berlincount /
Last active Jul 20, 2020
Twisted HTTP server example
#!/usr/bin/env python
from twisted.web import server, resource
from twisted.internet import reactor, defer
from pprint import pprint
import base64
class DummyServer(resource.Resource):
isLeaf = True
andrewkroh / fstab.pp
Created Aug 9, 2014
Configuring /etc/fstab with Puppet Augeas
View fstab.pp
augeas{ '/etc/fstab - nosuid on /sys':
context => "/files/etc/fstab",
changes => [
"ins opt after /files/etc/fstab/*[file = '/sys']/opt[last()]",
"set *[file = '/sys']/opt[last()] nosuid",
onlyif => "match *[file = '/sys']/opt[. = 'nosuid'] size == 0",
augeas{ '/etc/fstab - acl on /sys':
ebirn / runkexec
Last active Nov 15, 2017
kexec latest kernel on Centos 6
View runkexec
VERSION=$(ls -t1 /boot/vmlinuz-* | cut -f 1 -d '-' --complement | head -1)
aputs / replace-centos6x-iptables
Last active Sep 6, 2019
replace centos 6.x iptables
View replace-centos6x-iptables
# compile iptables from source and install to /usr/local
mkdir -p /tmp/iptables
wget "" -qO- | tar --strip-components=1 -C /tmp/iptables -xvj
cd /tmp/iptables
make install
# set alternatives
sudo alternatives --install /sbin/iptables iptables.x86_64 /usr/local/sbin/iptables 100 \