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
#!/usr/bin/perl | |
# Run without parameters to see usage. | |
# Felix E. Klee <[email protected]> | |
use strict; | |
use warnings; | |
use Image::ExifTool qw(:Public); | |
use File::Find; |
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 <[email protected]> | |
if [ $# -ne 2 ]; then | |
cat <<EOF | |
Usage: $0 GPSDIR DIR | |
Geotags image files in DIR using GPS tracks stored in GPSDIR. The | |
tags are added in Exif data. Files that already are geotagged are not |
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
#!/usr/bin/perl | |
# Traverses media files in the specified directory tree. | |
# Prepends the media creation time as a time stamp in the format | |
# "%HH%MM%SS_" to each media file name where the data is | |
# available. The time is local time. | |
# What looks like an existing time stamp is replaced. |
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 | |
# Creates a backup of my machine: linux.f76.eu | |
# Felix E. Klee <[email protected]> | |
LANG="en_US" # Sets locale to US english | |
BACKUP_DIR=~/"Syncthing/temp_backup/Internet/linux.f76.eu/" | |
BACKUP_FILE="backup.tar.gpg" | |
echo "Making backup to" |
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 <[email protected]> | |
set -e | |
# Usage info | |
show_help() { | |
cat << EOF | |
Usage: ${0##*/} PGP_ENCRYPTED_PDF NEW_PDF PGP_ENCRYPTED_RESULT |
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 <[email protected]> | |
(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 | |
# 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 <[email protected]> | |
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
#!/usr/bin/perl | |
# All URLs of the format <http://f76.eu/a*> are for identifying my | |
# documents. See: http://f76.eu/a0 | |
# | |
# This script finds all files when run from the root of the directory | |
# tree with my documents. | |
# Example confguration `~/.config/parse_docurls.conf`: | |
# |
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/sh | |
# Allows maintaining of an Sxmo session on a PinePhone via VNC. | |
# Felix E. Klee <[email protected]> | |
st -e sh -c "x11vnc -auth guess -once -loop -noxdamage -repeat -rfbport 5900 -shared" |
NewerOlder