Skip to content

Instantly share code, notes, and snippets.

@jackun
jackun / x11_gl.c
Last active March 7, 2021 22:26
Transparent X11 window with OpenGL
/*
____ _____
/\__ \ /\ ___\
\/__/\ \ \ \ \__/_
\ \ \ \ \____ \
_\_\ \ \/__/_\ \
/\ _____\ /\ _____\
\/______/ \/______/
Copyright (C) 2011 Joerg Seebohn
@jackun
jackun / libtransmission-force-restart.patch
Last active March 27, 2020 23:13
fix the pain of my existence
diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c
index 04dd922..7ab8583 100644
--- a/libtransmission/torrent.c
+++ b/libtransmission/torrent.c
@@ -842,7 +842,21 @@ setLocalErrorIfFilesDisappeared (tr_torrent * tor)
if (disappeared)
{
tr_deeplog_tor (tor, "%s", "[LAZY] uh oh, the files disappeared");
- tr_torrentSetLocalError (tor, "%s", _("No data found! Ensure your drives are connected or use \"Set Location\". To re-download, remove the torrent and re-add it."));
+ tr_torrentSetLocalError (tor, "%s", _("No data found! Ensure your drives are connected or use \"Set Location\". To re-download, remove/re-add the torrent OR re-verify."));
# link /dev/ttyACM* to /dev/leonardo
SUBSYSTEM=="tty", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="8036", MODE="0666", SYMLINK+="leonardo"
@jackun
jackun / enp3s0-static
Created November 5, 2018 16:49
Two routing tables
Interface=enp3s0
Connection=ethernet
IP=static
Address=('192.168.0.3/24' '192.168.1.3/24')
Gateway=('192.168.0.254')
DNS=('192.168.0.254' '1.1.1.1')
# custom routing on 192.168.1.0/24
# echo 1 telia >> /etc/iproute2/rt_tables
IPCustom=('route add 192.168.1.0/24 dev enp3s0 src 192.168.1.3 table telia'