Skip to content

Instantly share code, notes, and snippets.

Jörg Thalheim Mic92

  • no
  • ::1
View GitHub Profile
Mic92 / nginx-config
Last active Mar 20, 2019
Pretty print nginx configuration on NixOS
View nginx-config
#!/usr/bin/env nix-shell
#!nix-shell -p nginx-config-formatter python3 -i python3
import os
import re
import shutil
import subprocess
import sys
from tempfile import TemporaryDirectory
#!/usr/bin/env python3
import itertools
import os
import sys
from typing import *
if sys.version_info < (3, 6):
print("Program requires least Python 3.6", file=sys.stderr)
Mic92 / jtes
Created Feb 25, 2019
Scraper for jedentageinset
View jtes
#!/usr/bin/env nix-shell
#! nix-shell -i python3 -p "python3.withPackages(ps: [ps.requests])"
import dbm
import re
import subprocess
import xml.etree.ElementTree as ET
from io import StringIO
from typing import List, Optional
View gist:d243d86e85336e5944e12ec8637e37dd
starting VDE switch for network 1
running the VM test script
machine: must succeed: modprobe bcachefs
machine: waiting for the VM to finish booting
machine: starting vm
machine# Formatting '/build/vm-state-machine/machine.qcow2', fmt=qcow2 size=536870912 cluster_size=65536 lazy_refcounts=off refcount_bits=16
machine# Formatting 'empty2.qcow2', fmt=qcow2 size=4294967296 cluster_size=65536 lazy_refcounts=off refcount_bits=16
machine: QEMU running (pid 566)
machine# c[?7lSeaBIOS (version
Mic92 /
Last active Feb 7, 2019
Check CSV export of a keepassx database against haveibeenpwnd (k-anonymized)
#!/usr/bin/env python3
import csv
import sys
import pwnedpasswords
def main():
if len(sys.argv) == 0:
print("USAGE: %s keepass-passwords.csv", sys.argv[0])

Keybase proof

I hereby claim:

  • I am Mic92 on github.
  • I am mic92 ( on keybase.
  • I have a public key whose fingerprint is 3DEE 1C55 6E1C 3DC5 54F5 875A 003F 2096 411B 5F92

To claim this, I am signing this object:

View gist:085b6aadee93b8f2e77073e5851e836b
usage: ./bin/nix-review rev [-h] [-b BRANCH] [--build-args BUILD_ARGS]
[-p PACKAGE] [--package-regex PACKAGE_REGEX]
positional arguments:
commit commit/tag/ref/branch in your local git repository
optional arguments:
-h, --help show this help message and exit
-b BRANCH, --branch BRANCH
View backtrace.out
[New LWP 1584]
[New LWP 1580]
[New LWP 1578]
[New LWP 1579]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/".
Core was generated by `rustc --crate-name fd /root/.cargo/registry/src/'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007ff7fc45b35c in llvm::DwarfUnit::constructTypeDIE(llvm::DIE&, llvm::DICompositeType const*) () from /usr/lib/
[Current thread is 1 (Thread 0x7ff7f3a8c700 (LWP 1584))]
View gist:d67b19bad239b9c7669450d2fef7da56
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/wyjnxq1n5hj67y25jw3i144gdl28vlba-source
source root is source
unpacking source archive /nix/store/l2c9mrmw30ai4zjj7zic9f57hx0km267-fd-7.2.0-vendor
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
@nix { "action": "setPhase", "phase": "buildPhase" }
View bazel-watcher.log
copying path '/nix/store/rzva39qnmy3zy9l6pqpszrad8f4rlp2m-4d5928eee3dd5843a1b55136d914b78fef7f25d0.patch' from ''...
copying path '/nix/store/cfan1nq2ib7l8w0rf0693bnvpl0k7x0y-nss-cacert-3.41' from ''...
copying path '/nix/store/77h4hvarnaskmq8y8142j74c32c8jifs-source' from ''...
copying path '/nix/store/8ir0sny1hhxwqc7rn3qin2yjgwm368z8-update-gazelle-fix-ssl.patch' from ''...
copying path '/nix/store/0596k27r6pacyx4jp1bcn8zqyjhji52l-go-1.11.4' from ''...
unpacking sources
unpacking source archive /nix/store/77h4hvarnaskmq8y8142j74c32c8jifs-source
source root is source
patching sources
applying patch /nix/store/rzva39qnmy3zy9l6pqpszrad8f4rlp2m-4d5928eee3dd5843a1b55136d914b78fef7f25d0.patch
You can’t perform that action at this time.