Skip to content

Instantly share code, notes, and snippets.

@Wikinaut
Wikinaut / buergerbot.py
Created July 2, 2021 10:26
Bürgeramt-Terminfinder
#!/usr/bin/env python
# kleiner Bürgeramt-Terminfinder
#
# 20210702 init
# basierend auf https://gist.github.com/jaysonsantos/0ef66e0677be32050574
import subprocess
import time
@Wikinaut
Wikinaut / audio2video.sh
Last active May 6, 2021 00:16
Create a video for Twitter from an audio and a dummy image file - transcode audio into a video for twitter
#!/bin/bash
if [[ $# -ne 2 ]]; then
echo "audio2video: create a video for Twitter from audio and a dummy image."
echo "Usage:"
echo "audio2video audio.mp3 dummyimage.png"
echo
echo "Remark: width and height need to be divisible by 2."
exit
fi
@Wikinaut
Wikinaut / extend-crop-background.sh
Last active April 17, 2021 18:25
Extend (or crop) the canvas background of an image to a multiple of a modulus (such as 32)
#!/bin/bash
if [ $# -lt 1 ]; then
echo "extend-crop-background <imagefile> [modulus [extent]]"
echo "Extend or crop image to a multiple of modulus ±'extent'"
echo
echo "modulus: default 32"
echo "extent: default=modulus"
echo
echo "Examples:"
@Wikinaut
Wikinaut / make-impact.sh
Created April 5, 2021 07:09
make-impact.sh
#!/bin/bash
# https://twitter.com/climagic/status/1314635495280959489
# Make an impact with ImageMagick
echo "make-impact text outfile"
font="Kanit-ExtraBold"
# convert -list font # list all font names
convert -size 1000x600 \
-define gradient:radii=1000,500 radial-gradient:#884b88-#010101 \
-font $font -fill white -background transparent -interline-spacing -30 -gravity center \
@Wikinaut
Wikinaut / breaking-news.sh
Created February 1, 2021 19:51
Breaking-News-Generator
#!/bin/bash
# Imagegenerator for "Breaking News"
# Init 20210112
if [[ $# -ne 3 ]] ; then
echo "Usage:"
echo "breaking-news imagefile \"headline-text\" \"yellow-ribbon-text\""
exit
fi
@Wikinaut
Wikinaut / install-dependencies-and-build-kodi.sh
Last active February 7, 2021 10:09
install-dependencies-and-build-kodi.sh on Raspberry Pi
sudo apt update
sudo apt upgrade
sudo apt -y install build-essential
sudo apt -y install autoconf
sudo apt -y install automake
sudo apt -y install autopoint
sudo apt -y install gettext
sudo apt -y install autotools-dev
sudo apt -y install cmake
@Wikinaut
Wikinaut / getLangeNaechte.sh
Last active February 1, 2021 20:08
Erstellt lokal eine kompakte Webseite aller "Langen Nächte" von DLF/DLFKultur
#!/bin/bash
# Erstellt lokal eine kompakte Webseite aller "Langen Nächte" von DLF/DLFKultur
# Lizenz: WTFPL
rm "lange-naechte.html"
# get number of pages
maxpages=$(wget -q -O - "https://www.deutschlandfunkkultur.de/lange-nacht.1023.de.html" | \
grep -oE "paginationanzahl.*Seite ./[0-9]+" | \
@Wikinaut
Wikinaut / breaking-news.sh
Created January 18, 2021 17:20
Breaking-News image generator
#!/bin/bash
# Imagegenerator for "Breaking News"
# Init 20210112
if [[ $# -ne 3 ]] ; then
echo "Usage:"
echo "breaking-news \"headline-text\" \yellow-ribbon-text\" imagefile"
exit
fi
Abfallartenkatalog
Abfallartenkataloge
Abfallartenkatalogen
Abfallartenkatalogs
Abfallkatalog
Abfallkataloge
Abfallkatalogen
Abfallkatalogs
Abgaskatalysator
Abgaskatalysatoren
@Wikinaut
Wikinaut / README.md
Last active July 29, 2020 21:37 — forked from tordans/README.md
Vereinfachte Verkehrsordnungswidrigkeitenanzeige bei Halt- und Parkverstößen per E-Mail an die Bußgeldstelle