Skip to content

Instantly share code, notes, and snippets.

View kaeltis's full-sized avatar

Patrick Fruh kaeltis

View GitHub Profile
{
"name": "Massdrop CTRL",
"vendorId": "0x04d8",
"productId": "0xeed2",
"lighting": "none",
"matrix": {"rows": 11, "cols": 8},
"layouts": {
"keymap": [
[{"c":"#777777"},"0,0",{"x":1,"c":"#cccccc"},"0,1","0,2","0,3","0,4",{"x":0.5,"c":"#aaaaaa"},"0,5","0,6","0,7","6,0",{"x":0.5,"c":"#cccccc"},"6,1","6,2","6,3","6,4",{"x":0.25,"c":"#aaaaaa"},"6,5","6,6","6,7"],
[{"y":0.5,"c":"#cccccc"},"1,0","1,1","1,2","1,3","1,4","1,5","1,6","1,7","7,0","7,1","7,2","7,3","7,4",{"c":"#aaaaaa","w":2},"7,5",{"x":0.25},"7,6","7,7","9,7"],
# caddy.service
#
# For using Caddy with a config file.
#
# Make sure the ExecStart and ExecReload commands are correct
# for your installation.
#
# See https://caddyserver.com/docs/install for instructions.
#
# WARNING: This service does not use the --resume flag, so if you
@kaeltis
kaeltis / caddy.sh
Created September 30, 2019 16:02 — forked from Jamesits/caddy.sh
Install Caddy Server on Ubuntu with Systemd.
# Should work on all Debian based distros with systemd; tested on Ubuntu 16.04+.
# This will by default install all plugins; you can customize this behavior on line 6. Selecting too many plugins can cause issues when downloading.
# Run as root (or sudo before every line) please. Note this is not designed to be run automatically; I recommend executing this line by line.
apt install curl
curl https://getcaddy.com | bash -s personal dns,docker,dyndns,hook.service,http.authz,http.awses,http.awslambda,http.cache,http.cgi,http.cors,http.datadog,http.expires,http.filemanager,http.filter,http.forwardproxy,http.geoip,http.git,http.gopkg,http.grpc,http.hugo,http.ipfilter,http.jekyll,http.jwt,http.locale,http.login,http.mailout,http.minify,http.nobots,http.prometheus,http.proxyprotocol,http.ratelimit,http.realip,http.reauth,http.restic,http.upload,http.webdav,net,tls.dns.auroradns,tls.dns.azure,tls.dns.cloudflare,tls.dns.cloudxns,tls.dns.digitalocean,tls.dns.dnsimple,tls.dns.dnsmadeeasy,tls.dns.dnspod,tls.dns.dyn,tls.

Keybase proof

I hereby claim:

  • I am kaeltis on github.
  • I am kaeltis (https://keybase.io/kaeltis) on keybase.
  • I have a public key ASDAnotV865BTd3VMWIDprYj5ZMzRF17UZFVMzc6nvpJMAo

To claim this, I am signing this object:

@kaeltis
kaeltis / linuxtv-dvb-apps-414-fix.patch
Created January 7, 2018 21:44
Hack to make linuxtv-dvb-apps work with Kernel >= 4.14
diff -r 3d43b280298c util/dst-utils/dst_test.c
--- a/util/dst-utils/dst_test.c Fri Mar 21 20:26:36 2014 +0100
+++ b/util/dst-utils/dst_test.c Sun Jan 07 22:41:44 2018 +0100
@@ -36,6 +36,15 @@
#define CA_NODE "/dev/dvb/adapter0/ca0"
+//https://github.com/braice/MuMuDVB/commit/596f7dbebd2590f7e77cf755af46952f340ddb97
+#ifndef CA_SET_PID
+typedef struct ca_pid {