Skip to content

Instantly share code, notes, and snippets.

View Tafkadasoh's full-sized avatar

Martin Wermers-Pauly Tafkadasoh

View GitHub Profile
#!/bin/bash
#
# escapeHTML.sh by Martin Wermers[1], 2018
# Written for my answer on the StackOverflow question 'Include another HTML file in a HTML file':
# https://stackoverflow.com/questions/8988855/include-another-html-file-in-a-html-file/15250208#15250208
#
# This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
# International License. See https://creativecommons.org/licenses/by-sa/4.0 .
#
# Credits to Greg Minshall[2] for the improved sed command that also escapes
@Tafkadasoh
Tafkadasoh / pb-kaz-rename.sh
Last active August 29, 2015 13:56
For customers of the German Postbank who are annoyed that the filename of their account current PDF is very cryptic. Especially annoying to me was that the date in the filename is DD-MM-YYYY opposed to YYYY-MM-DD. Use this little bash script to rename the files. Note: As I only have one bank account, I remove the account number from the filename…
#!/bin/bash
# Benennt Dateinamen von Kontoauszügen der Deutschen Postbank in ein lesbares Format um.
# z.B.: "PB_KAZ_KtoNr_0123456789_01-02-2014_0343.pdf" --> "kontoauszug_2014-02-01.pdf"
# Allgemein: "PB_KAZ_KtoNr_0123456789_DD-MM-YYYY_0123.pdf" --> "kontoauszug_YYYY-MM-DD.pdf"
SRCPREFIX="PB_KAZ_KtoNr_"
SRCSUFFIX=".pdf"
DESTPREFIX="kontoauszug_"
DESTSUFFIX=".pdf"
@Tafkadasoh
Tafkadasoh / Git lord's prayer.txt
Last active January 15, 2018 08:25
Git versions of the Lord's Prayer (Vater Unser), which I've written in 2012, first in German and then translated to english. Published under CC 3.0 BY-NC-SA.
# 'Git lord's prayer' by Martin Wermers, 2012
#
# This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0
# International License. See https://creativecommons.org/licenses/by-nc-sa/3.0 .
Our Git in repository,
hallowed be your name.
Your init come,
your merge be done,
in master as on the branches.