Skip to content

Instantly share code, notes, and snippets.

View apetersson's full-sized avatar

Andreas Petersson apetersson

View GitHub Profile
#!/bin/bash
# Requirements:
# - Parameter checking: The script accepts at least one parameter (the base folder).
# An optional second parameter "scan" activates the scan mode, which only shows missing
# or incorrect DateTimeOriginal tags, without making any changes.
#
# - Extract date from folder names: The script extracts the date from the name
# of the folder. Supported formats are YYYY-MM-DD and YYYY-MM, where for the latter
# the day 01 is automatically added.

Dockerfile for signal-cli

Creating a Dockerfile for signal-cli provides an isolated environment where you can run the tool without polluting your main system with its dependencies. Here's a basic Dockerfile for this purpose:

# Use an official Java base image. Since signal-cli requires at least JRE 17, we'll use that.
FROM openjdk:17-slim

# Set the version of signal-cli you want to install
ENV SIGNAL_CLI_VERSION=x.y.z

Keybase proof

I hereby claim:

  • I am apetersson on github.
  • I am petersson (https://keybase.io/petersson) on keybase.
  • I have a public key ASBiXoYWczDoq0z6N1Km1Afy5Rb6EaMf7YA0V0BtiWp4JAo

To claim this, I am signing this object: