Instantly share code, notes, and snippets.

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
View brother_ql - Related and Unrelated Software.md
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
View fix_exif_timestamps.py
#!/usr/bin/env python
"""Recursively scan a directory tree, fixing dates
on all jpg/png image files.
Modifications are done in-place.
Requires: gexiv2
Loosely based on: http://coreygoldberg.blogspot.de/2014/01/python-fixing-my-photo-library-dates.html
"""
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
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
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
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
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