Skip to content

Instantly share code, notes, and snippets.

View erikvanoosten's full-sized avatar

Erik van Oosten erikvanoosten

View GitHub Profile
@erikvanoosten
erikvanoosten / update-immich.sh
Last active January 20, 2024 18:44
Update Immich
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
CURRENT_VERSION=$(grep IMMICH_VERSION= .env | awk -F= '{print $2}')
echo "Getting latest version of Immich..."
LATEST_VERSION=$(curl -s --include https://github.com/immich-app/immich/releases/latest | grep 'location:' | awk -F/ '{print $NF}')
# Remove DOS line end
LATEST_VERSION=${LATEST_VERSION//[$'\t\r\n ']}
package com.adevinta.blog.pluginengine.pluginapi
trait ConverterPlugin {
def name: String
def init(): Unit
def makeConverter(specification: String): Converter
}
trait Converter {
def convert(in: String): String