Skip to content

Instantly share code, notes, and snippets.

@michaeldorner
michaeldorner / vpnc.sh
Last active September 19, 2025 11:12
OpenConnect GlobalProtect wrapper for vpn.ohmportal.de with macOS Keychain support
#!/bin/bash
PORTAL="vpn.ohmportal.de"
# Get username from Keychain
USER=$(security find-generic-password -s "$PORTAL" -g 2>&1 | \
awk -F\" '/"acct"<blob>="/ {print $(NF-1); exit}')
# Get password from Keychain
PASS=$(security find-generic-password -s "$PORTAL" -w 2>/dev/null)
\documentclass{article}
\usepackage{pgffor}
\usepackage{pgfkeys}
\usepackage{ifthen}
\pgfkeys{
/contributions/.cd,
1/.initial=Conceptualization,
2/.initial=Methodology,
@bashbunni
bashbunni / .zshrc
Last active June 21, 2026 22:47
CLI Pomodoro for Mac
# I'll be doing another one for Linux, but this one will give you
# a pop up notification and sound alert (using the built-in sounds for macOS)
# Requires https://github.com/caarlos0/timer to be installed
# Mac setup for pomo
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\
-title 'Work Timer is up! Take a Break 😊'\
-appIcon '~/Pictures/pumpkin.png'\
-sound Crystal"
\documentclass{standalone}
\usepackage{amsmath,amssymb}
\usepackage{charter}
\usepackage[charter]{mathdesign}
%\font\nullfont=cmr10
@michaeldorner
michaeldorner / hypergraph_example.tex
Last active November 28, 2024 03:58
hypergraphs
\documentclass{minimal}
\usepackage{tikz}
\usepackage{tikz-network}
\usetikzlibrary{calc, backgrounds, positioning}
\input{tikz-hypergraph}
\usepackage{xcolor}
@lisawolderiksen
lisawolderiksen / git-commit-template.md
Last active June 16, 2026 14:18
Use a Git commit message template to write better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the