Skip to content

Instantly share code, notes, and snippets.

@kabakaev
kabakaev / migrate-immich-to-cnpg.md
Created December 23, 2024 20:10
Immich: migrate postgres to CloudNativePG

Migrate Immich helm chart deployment to CloudNativePG

Deploy a cnpg operator and a one-node postgres cluster

See also immich-app/immich-charts#149 (comment)

# Re-use the password from the source postgres instance.
PASSWORD=$(kubectl -n immich get secrets immich-postgres-user -o yaml | grep ' password:' | awk '{print $NF}' | base64 -d)
echo "immich@postgres password is: $PASSWORD"
@DevEarley
DevEarley / image-copy.cmd
Created August 28, 2019 16:17
Recursively get all images in a directory and copy to another folder.
for /R "C:\source\" %%G in (*.png *.jpg *.jpeg *.gif *.svg) do copy "%%G" "C:\target\"
@anthonyeden
anthonyeden / ExchangeInstallLE.bat
Created December 23, 2017 03:03
Let's Encrypt & Microsoft Exchange - Installation Script
"C:\Program Files\Lets Encrypt\letsencrypt.exe" --renew --baseuri "https://acme-v01.api.letsencrypt.org/"
powershell -File "C:\Program Files\Lets Encrypt\ExchangeLetsEncrypt.ps1" -CertificateImport "C:\ProgramData\letsencrypt-win-simple\httpsacme-v01.api.letsencrypt.org\mail.example.com-all.pfx" -ServerName exchange.example.com