Skip to content

Instantly share code, notes, and snippets.

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

Koen Hendriks koenhendriks

🏠
Working from home
View GitHub Profile
@koenhendriks
koenhendriks / iptables.sh
Created March 19, 2019 13:39
Snippet openvpn iptables
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o venet0 -j MASQUERADE
@koenhendriks
koenhendriks / export.json
Created October 26, 2021 13:17
Sloppy Matrix json export
{
"project": "matrix-chat",
"services": [
{
"id": "matrix",
"apps": [
{
"id": "synapse-server",
"image": "matrixdotorg/synapse",
"cmd": "./start.py generate && ./start.py run",
@koenhendriks
koenhendriks / workspace_switch.sh
Created November 26, 2022 13:08
Workspace switcher from CLI for CInnamon
#!/usr/bin/env bash
current=`xdotool get_desktop`
max=`xdotool get_num_desktops`
if [ "$1" = "left" ]; then
desktop=`expr $current - 1`
elif [ "$1" = "right" ]; then
desktop=`expr $current + 1`
else