This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; EMACS configuration for editing files in different languages. | |
;; | |
;; When loading a text file, depending on the specified ispell | |
;; dictionary: | |
;; | |
;; * Sets keyboard layout (layout when starting Emacs needs to be | |
;; American) | |
;; | |
;; * If available, enables "typo-mode" with the correct language | |
;; option. "typo-mode" facilitates entering typographically correct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Some of the `getopts` code has been taken from: | |
# http://mywiki.wooledge.org/BashFAQ/035#getopts | |
# Felix E. Klee <felix.klee@inka.de> | |
W=210 | |
H=297 | |
D=300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Felix E. Klee <felix.klee@inka.de> | |
# Usage info | |
show_help() { | |
cat << EOF | |
Usage: ${0##*/} PATH | |
Copies the path in Windows of PATH (in my Linux virtual machine) to | |
the clipboard. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Felix E. Klee <felix.klee@inka.de> | |
shopt -s nullglob | |
# Usage info | |
show_help() { | |
cat << EOF | |
Usage: ${0##*/} TARGET_DIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Felix E. Klee <felix.klee@inka.de> | |
# Usage info | |
show_help() { | |
cat << EOF | |
Usage: ${0##*/} ENCRYPTED.gpg | |
Decrypts ENCRYPTED.gpg and displays its contents. | |
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Allows maintaining of an Sxmo session on a PinePhone via VNC. | |
# Felix E. Klee <felix.klee@inka.de> | |
st -e sh -c "x11vnc -auth guess -once -loop -noxdamage -repeat -rfbport 5900 -shared" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
/usr/bin/gpg2 --faked-system-time 20200101T000000 "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Finds images that contain DocURLs in their EXIF data, because I | |
# remember that I once had the idea to put them there. Hopefully | |
# there are none. | |
# Felix E. Klee <felix.klee@inka.de> | |
find -regex ".*\.jpe?g" | while read a; do | |
r=$(exiftool "$a" | grep -i docurl) && echo "$a: '$r'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; About DocURLs, see: http://f76.eu/a0 | |
;; | |
;; Felix E. Klee <felix.klee@inka.de> | |
(defgroup docurl nil | |
"Support for browsing DocURLs" | |
:group 'communication) | |
(defcustom docurl-cache-filename | |
"~/.local/share/docurl_cache" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Felix E. Klee <felix.klee@inka.de> | |
set -e | |
# Usage info | |
show_help() { | |
cat << EOF | |
Usage: ${0##*/} PGP_ENCRYPTED_PDF NEW_PDF PGP_ENCRYPTED_RESULT |