Skip to content

Instantly share code, notes, and snippets.

@spaetz
spaetz / mas.service
Last active February 7, 2024 20:52
matrix-authentication-service systemd file to start it automatically
# assumes binary in /usr/local/bin; assets in /usr/local/share/mas-cli/assets, config.yaml in /etc/matrix-cli
Description=MAS (Matrix OIDC Auth)
After=network.target
After=postgresql.service
[Service]
ExecReload=/bin/kill $MAINPID
# Environment="RUST_LOG=warn" # use one of debug,info,warn,error
User=www-data
#!/bin/sh -e
# Script to set up the University of Hamburg web proxy when the Openconnect VPN connected
# credits to https://wiki.ubuntuusers.de/NetworkManager/Dispatcher/
VPN_CONNECTION_NAME="UniHH"
USER="UserNameHere"
# VPN connection started or stopped?
case "$2" in
vpn-up)

Keybase proof

I hereby claim:

  • I am spaetz on github.
  • I am spaetz (https://keybase.io/spaetz) on keybase.
  • I have a public key whose fingerprint is 5928 8EE8 681D BE69 880A BA90 5E05 13D4 65B2 2153

To claim this, I am signing this object:

@spaetz
spaetz / keybase.md
Last active August 29, 2015 14:21
keybase.md

Keybase proof

I hereby claim:

  • I am spaetz on github.
  • I am spaetz (https://keybase.io/spaetz) on keybase.
  • I have a public key whose fingerprint is C932 1C33 F6F5 CDD0 AD7A 3C1A 5585 F58C C827 A062

To claim this, I am signing this object:

@spaetz
spaetz / add-modelines
Created October 12, 2010 14:10
add-modelines
#!/bin/bash
# add-modelines, a simple script to add comments to
# the beginning and end of source files for LibreOffice devs
# Blame goes to Jesse Adelman (at least at first)
# someone AT boldandbusted dotty-dot com
# http://www.boldandbusted.com/
# (c) 2010 Bold and Busted LLC
# Licensed under the MPL/LGPLv3 or later
/*
* Sozi - An alternative presentation system
*
* Copyright (C) 2009 Guillaume Savaton
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
@spaetz
spaetz / .emacs
Created April 7, 2010 20:45
eudc address bookintegration into notmuch
;;EUDC address book integration
(eudc-set-server "localhost" 'notmuch t)
(setq eudc-server-hotlist '(("localhost" . notmuch)))
(setq eudc-inline-expansion-servers 'hotlist)
@spaetz
spaetz / gist:337419
Created March 19, 2010 10:56
jkr's address book
#!/usr/bin/env python
from cnotmuch import notmuch
import ConfigParser
import email.utils
import os.path
import sys
import re
CP = ConfigParser.ConfigParser()
CP.read(os.path.expanduser("~/.notmuch-config"))
SHR-unstable got a facelift. And you a christmas present....
=============================================================
[Nov 13 2009, The Internets] It's been psychologically proven that the longer you wait for your presents, the more happy you will be when you finally get them. It seems, the SHR team wants to make you REALLY happy and has let you waiting for quite some time without updates to shr-unstable...<br /><br />ENOUGH WAITING. Christmas comes a bit early this year, and a new SHR-unstable image is out for public consumption. Keep in mind that this is the first snapshot after quite many major transitions, so don't complain if things are a bit ..well... unstable in the beginning. We are working hard to stabilize things.<br /><br />We had no resources to provide a nice and working upgrade path, so an opkg upgrade is very likely to lead to a non-working system. (Really! It won't work. We know you'll try anyway :). It still won't work). So download the image, flash it and start afresh.<br /><br />I -spa