Skip to content

Instantly share code, notes, and snippets.

# /etc/X11/Xsession.d/90gpg-agent
: ${GNUPGHOME=$HOME/.gnupg}
GPGAGENT=/usr/bin/gpg-agent
# Original, not working: PID_FILE="$GNUPGHOME/gpg-agent-info-$(hostname)"
PID_FILE="$GNUPGHOME/gpg-agent-info"
if grep -qs '^[[:space:]]*use-agent' "$GNUPGHOME/gpg.conf" "$GNUPGHOME/options" &&
* Version 3.0.1 (unreleased)
** Fix JSONDict not pickling.
* Version 3.0.0 (released 2014-10-09)
** Complete API rewrite to simplify library significantly.
* Version 2.0.0 (released 2014-09-26)
** Updated to the latest U2F_V2 standard.
** Expose more low level U2F primitives.
** Removed old draft versions.
@minisu
minisu / pillarboxing.sh
Last active March 15, 2025 10:41
Widen images by pillarboxing
# Converts 4:3 photos to 16:9.
# Useful in order to make smart phone photos look good on a TV (such as in Samsung Ambient mode).
# Requires ImageMagick to be installed.
for f in ./*.jpg ; do magick "$f" -gravity center -background black -extent 133x100% "${f%.jpg}-wide.jpg" ; done