Skip to content

Instantly share code, notes, and snippets.

View pklaus's full-sized avatar

Philipp Klaus pklaus

  • Frankfurt, Germany
View GitHub Profile
pklaus / pg_test_fsync
Created January 7, 2020 13:41
Postgres / PostgreSQL Benchmarks with pg_test_fsync on a WDC WD2002FYPS-0 2TB SATA HDD (AMD Ryzen 3600X on X570 Chipset)
$ uname -a
Linux owl 5.4.8-arch1-1 #1 SMP PREEMPT Sat, 04 Jan 2020 23:46:18 +0000 x86_64 GNU/Linux
$ cat /etc/issue
Arch Linux \r (\l)
$ pg_config --version
PostgreSQL 12.1
$ cd ~
$ pg_test_fsync
5 seconds per test

Issues with Mac Mini 2018 running Linux Resulting in Broken Fan Control

The Linux kernel module applesmc fails to load on a Mac Mini 2018. The attached log is a try to load it via modprobe on Kernel 5.2.2-arch1-1-ARCH.

pklaus /
Last active May 13, 2019 14:11 — forked from slok/
x11 with docker archlinux
KEY=$(xauth list | grep "$(hostname)/unix:0" | awk '{ print $3 }' | head -n 1)
xauth add $CONT_HOSTNAME/unix:0 . $KEY
docker run -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix \
-v $HOME/.Xauthority:/tmp/.Xauthority \
-v /dev/snd:/dev/snd \
pklaus /
Last active September 9, 2019 14:10
Balzers PKG 020 Vacuum Gauge Controller : Analog Out
#!/usr/bin/env python
tables = {
'ikr': [
[0.09, 5.00E-008],
[0.24, 1.00E-007],
[0.34, 1.50E-007],
[0.45, 2.00E-007],
[0.67, 3.00E-007],
[0.86, 4.00E-007],
pklaus / LICENSE.TXT
Last active April 15, 2019 09:24
Copyright (C) 2017 LabJack Corporation <>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
pklaus / dmesg.txt
Created November 30, 2018 10:20
LabJack T7: as it shows up on Arch Linux (Kernel 4.19.4-arch1-1-ARCH)
[ 1003.575895] usb 1-3: new full-speed USB device number 6 using xhci_hcd
[ 1003.718331] usb 1-3: New USB device found, idVendor=0cd5, idProduct=0007, bcdDevice= 0.00
[ 1003.718340] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1003.718354] usb 1-3: Product: LabJack T7
[ 1003.718359] usb 1-3: Manufacturer: LabJack LLC
pklaus / anyrun
Last active April 15, 2019 09:24
A utility to run different instructions found in a configurable folder (env var ANYRUN_INSTRUCTIONS_FOLDER).
#!/bin/env python
Run a script given as argument.
./anyrun your_script_file
This would check the search folder (--search-folder or env var ANYRUN_SEARCH_FOLDER)
for a file named your_script_file and execute it in a shell environment.
pklaus / brother_ql - Press and
Last active February 19, 2020 21:00
brother_ql - Press and
  • How to print name tags for your Meetup
    An article by Kevin Simper, 2018-06-19
  • Unifi / Raspberry - Label printer with touchscreen - Campsite
    A report by Thorsten Sass, 2018-05-17
  • Building a Pi Powered Wireless Label Printer
    A tutorial by Andrew Back, 2018-05-10
  • Weekend Project: Label Designer
    A blog post by Andreas Gohr, 2017-10-06
  • Auto-printing shipping labels with Laravel, Raspberry Pi and AWS
    A blog post by Hugh Grigg, 2017-05-29
pklaus / brother_ql - Related and Unrelated
Last active August 21, 2023 11:38
brother_ql - Related and Unrelated Software