Skip to content

Instantly share code, notes, and snippets.

Wikinaut /
Last active Jul 3, 2020
Commandline-Suche im Bundeseinheitlichen Bußgeldkatalog (BKAT)
# Aufruf: <needle>
if [ ! -f "bkat.txt" ] ; then
if [ ! -f "bkat.pdf" ] ; then
wget -O bkat.pdf ""
pdftotext -layout bkat.pdf bkat.txt
egrep -A9 -i --color=always "$1" bkat.txt
Wikinaut /
Last active Apr 2, 2020
Patches for Jitsi
# Patches for jitsi
# see/filed as
# optionally fetch the nightly build:
apt update
apt upgrade
sed -e "s/LANG_DETECTION: false/LANG_DETECTION: true/" -i /usr/share/jitsi-meet/interface_config.js
from glob import glob
from pydub import AudioSegment
i = 0
for name in sorted(glob("*.mp3")):
i = i+1
print str(i)+" "+name
playlist_songs = [AudioSegment.from_mp3(mp3_file) for mp3_file in sorted(glob("*.mp3"))]
# copy all files used in a m3u playlist to a new subdirectory
# and prefix the filenames with a number nnnn00 in ascending order
# initial version 20200206
# based on ideas from
import os.path, shutil, sys
def main():
Wikinaut /
Last active Jul 29, 2020 — forked from tordans/
Vereinfachte Verkehrsordnungswidrigkeitenanzeige bei Halt- und Parkverstößen per E-Mail an die Bußgeldstelle
Wikinaut / gist:e8400f174bc9f79957b1f6dd4a97f56c
Last active Feb 28, 2019
Linuxmint Can't create desktop launcher [SOLVED]
View gist:e8400f174bc9f79957b1f6dd4a97f56c
The bug has been fixed in the source so fingers crossed another cinnamon update will come out fairly quickly.
If not to apply the fix now download the attached patch file
Wikinaut / gist:986e49baf516a0d459e35c6148517cb6
Last active Dec 25, 2018
35c3 Fahrplan to PDF: How to create coloured PDFs from the 35C3 Fahrplan
View gist:986e49baf516a0d459e35c6148517cb6
# Firefox lovers use
for i in 1 2 3 4; do firefox --headless --screenshot $i.pdf$i.html; done
# Chromium lover use
for i in 1 2 3 4;do chromium --headless --disable-gpu --print-to-pdf=$i.pdf$i.html;done
# the simple way: fetch the small B/W pdf and compose a single pdf
for i in 1 2 3 4; do wget$i.pdf; done
# put all into one file
View gist:017b211a81e10221bfc791f8c530bc88
convert -size 400x200 xc:none -font Hack-Bold -pointsize 25 -kerning 1 -gravity center -fill red -annotate 330x330+0+0 "Vorabzug - nicht für Veröffentlichung" -fill yellow -annotate 330x330+2+2 "Vorabzug . nicht für Veröffentlichung" WATERMARK_FILE.png
for i in *.jpg; do composite -dissolve 20% -tile WATERMARK_FILE.png $i ${i%.*}_x.jpg; done
Wikinaut /
Last active Jun 1, 2018
Make a polaroid-style photo montage (make-polaroid)
if [ -n "$1" ]; then
title="$1 ($lastDirectoryComponent)"
Wikinaut /
Last active Jun 7, 2018 - MySimplePageWatcher - Watch a webpage for changes
# Page watcher Cronscript
# initial 201804xx
if [ $# -lt 1 ] ; then
echo "pagewatcher watches an url and sends an e-mail in case of changes."
echo "usage: url [additional-mail-recipients] | clean"
You can’t perform that action at this time.