Skip to content

Instantly share code, notes, and snippets.

View per2jensen's full-sized avatar

Per Jensen per2jensen

View GitHub Profile
@per2jensen
per2jensen / metadata-delete-most-keep-a-few.md
Last active February 28, 2023 20:51
Use exiftool to remove most metadata

Introduction

If you upload a photo somewhere, for instance to Flickr as I do, you might not be interested in exposing all the metadata a file contains.

I have started to use the excellent exiftool to manage the metadata exposed on photos that are publicly available.

I came across this excellent webpage, which is a good read.

BEWARE: The example below preserves Artist and CopyRight tags, which might give away your email.

@per2jensen
per2jensen / darktable-config-backup-on-login.md
Created February 19, 2023 15:42
How I backup my darktable config directory on every login

Introduction

I use darktable (DT) as my RAW processing tool, and have so for many years now.

Losing my DT configurations and the database with tags and image metadata is something I don't want to experience.

For that reason I take backups in a couple of ways:

  • I do regular backups with my 'dar' scripts

  • In addition to that, when I login on my Ubuntu 22.04 desktop computer, a backup of ~/.config/darktable is made and stored on a cloud service.

@per2jensen
per2jensen / ssh-with-key-on-yubico-5.md
Last active July 5, 2023 18:54
ssh key backed by Yubico 5

I have bought a couple of Yubico 5 security keys, which work with modern ssh servers, and also with Githup (and lots of other web app).

Below is my recipe to create an ssh key with the secret stored on the Yubico secret key.

I am using Ubuntu 22.04 on both desktop and server - it works for me.

Update 2023-07-05: It turned out that I often had issues, I have now found out why: the opensc component was missing on my workstation

do the following to fix it