Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -euo pipefail
# Update Domeneshop DNS record using DDNS (https://api.domeneshop.no/docs/#tag/ddns)
API_KEY="your_apikey"
API_SECRET="your_secret"
DOMAIN="example.com"
SUBDOMAINS=(
www
subdomain2
@Pomdre
Pomdre / imagetofolder.bat
Last active October 26, 2023 19:24
Image organiser/sorting script for windows
@REM This is a script for taking Files in src_folder and move them to dest_root_folder organised under the year and month the image or file was created.
@REM For the best preformence install exiftool by Phil Harvey othervise it would use the file's modification date.
@echo off
setlocal enabledelayedexpansion
rem Source folder containing images
set "src_folder=C:\Uploads\Camera"
rem Destination folder for organizing images
set "dest_root_folder=C:\Uploads\Camera\Sorted"