Skip to content

Instantly share code, notes, and snippets.

🐍
Taming Python

Philipp Klaus pklaus

🐍
Taming Python
Block or report user

Report or block pklaus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pklaus
pklaus / brother_ql - Press and Testimonials.md
Last active May 1, 2019
brother_ql - Press and Testimonials.md
View brother_ql - Press and Testimonials.md
  • 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
pklaus / brother_ql - Related and Unrelated Software.md
Last active Nov 5, 2019
brother_ql - Related and Unrelated Software
View brother_ql - Related and Unrelated Software.md
@pklaus
pklaus / pg_test_fsync
Created Jun 3, 2018
PostgreSQL Benchmarks with pg_test_fsync on a Samsung 970 Evo 1TB PCIe M.2 2280 SSD
View pg_test_fsync
$ uname -a
Linux jay 4.16.12-1-ARCH #1 SMP PREEMPT Fri May 25 23:30:31 UTC 2018 x86_64 GNU/Linux
$ cat /etc/issue
Arch Linux \r (\l)
$ pg_config --version
PostgreSQL 10.4
$ cd /var/lib/postgres/data/
$ pg_test_fsync
5 seconds per test
@pklaus
pklaus / fix_exif_timestamps.py
Last active Aug 28, 2019
fix_exif_timestamps
View fix_exif_timestamps.py
corrected and now to be found at:
https://github.com/pklaus/pklaus/blob/master/pklaus/images/exif/fix_datetime.py
@pklaus
pklaus / LTSpice_RawRead.md
Last active Sep 25, 2018
Modified LTSpice_RawRead.py
View LTSpice_RawRead.md

Modified LTSpice_RawRead.py

Modified LTSpice_RawRead.py found on https://github.com/nunobrum/PyLTSpice as of 2018-04-25.

Changed to support exports like this:

python3 LTSpice_RawRead.py danitest.raw "V(vin),V(vc2),V(n001)" outfile.csv
@pklaus
pklaus / pg_test_fsync
Created Feb 24, 2018
PostgreSQL Benchmarks with pgbench and pg_test_fsync on an Intel Optane P900 480GB PCIe SSD (where the PostgreSQL instance is running in a Docker container with the PGDATA volume and the Docker image store located on the Optane SSD)
View pg_test_fsync
$ uname -a
Linux 5fc03a999611 4.15.3-2-ARCH #1 SMP PREEMPT Thu Feb 15 00:13:49 UTC 2018 x86_64 Linux
$ cat /etc/issue
Welcome to Alpine Linux 3.6
Kernel \r on an \m (\l)
$ pg_config --version
PostgreSQL 10.1
$ cd /var/lib/postgresql/data/
$ pg_test_fsync
@pklaus
pklaus / pg_test_fsync
Created Feb 24, 2018
PostgreSQL Benchmarks with pgbench and pg_test_fsync on an Intel Optane P900 480GB PCIe SSD
View pg_test_fsync
$ uname -a
Linux owl 4.15.3-2-ARCH #1 SMP PREEMPT Thu Feb 15 00:13:49 UTC 2018 x86_64 GNU/Linux
$ cat /etc/issue
Arch Linux \r (\l)
$ pg_config --version
PostgreSQL 10.2
$ cd /var/lib/postgres/data/
$ pg_test_fsync
5 seconds per test
@pklaus
pklaus / pg_test_fsync
Last active Feb 24, 2018
PostgreSQL Benchmarks with pgbench and pg_test_fsync on a SanDisk Ultra II 240GB SSD
View pg_test_fsync
$ uname -a
Linux owl 4.15.3-2-ARCH #1 SMP PREEMPT Thu Feb 15 00:13:49 UTC 2018 x86_64 GNU/Linux
$ cat /etc/issue
Arch Linux \r (\l)
$ pg_config --version
PostgreSQL 10.2
$ cd /var/lib/postgres/data/
$ pg_test_fsync
5 seconds per test
@pklaus
pklaus / README.md
Last active Feb 13, 2018
FHEM Auto FileLogConvert - A Python utility to convert all your logfiles one-by-one automatically with 98_FileLogConvert.pm
View README.md

fhem_auto_import2DbLog

If you want to convert the logs of your FHEM installation from FileLog to DbLog, you may use the excellent 98_FileLogConvert.pm.

What's a bit inconvenient is that each logfile conversion needs to be started by hand. This is the issue, this Python tool solves: You provide it a list of logfiles and the conversion is done one by one automatically.

Why was this tool written in Python (not Perl as FHEM itself)? Because the

@pklaus
pklaus / install-arch-linux-rpi-zero-w.sh
Last active Sep 28, 2018 — forked from larsch/install-arch-linux-rpi-zero-w.sh
Install Arch Linux ARM for Raspberry Pi Zero W on SD Card (with commands to configure WiFi before first boot).
View install-arch-linux-rpi-zero-w.sh
#!/bin/sh -exu
dev=$1
cd $(mktemp -d)
function umountboot {
umount boot || true
umount root || true
}
# RPi1/Zero (armv6h):
You can’t perform that action at this time.