From 73489aa0903bc1df90d671e5ab39348f316d8352 Mon Sep 17 00:00:00 2001 From: shibao Date: Wed, 15 Nov 2023 11:16:12 -0500 Subject: [PATCH] update scripts --- home/default/scripts/prep-camera-photo | 7 +++++++ home/default/scripts/prune-free-space | 5 +++++ 2 files changed, 12 insertions(+) create mode 100755 home/default/scripts/prep-camera-photo create mode 100755 home/default/scripts/prune-free-space diff --git a/home/default/scripts/prep-camera-photo b/home/default/scripts/prep-camera-photo new file mode 100755 index 0000000..0bd1bdb --- /dev/null +++ b/home/default/scripts/prep-camera-photo @@ -0,0 +1,7 @@ +#!/usr/bin/env sh +set +eou pipefail + +# Takes the latest photo from my camera stream and removes exif data from it +LATEST_PHOTO=$(ls -t1 /home/default/syncthing/camera/Camera | head -n 1) +cp "/home/default/syncthing/camera/Camera/${LATEST_PHOTO}" /home/default/Downloads/temp +cd /home/default/Downloads/temp && remove-exif diff --git a/home/default/scripts/prune-free-space b/home/default/scripts/prune-free-space new file mode 100755 index 0000000..844b30c --- /dev/null +++ b/home/default/scripts/prune-free-space @@ -0,0 +1,5 @@ +#!/usr/bin/env sh +set -eoux pipefail + +yay -Sc --noconfirm +sudo journalctl --vacuum-size=1G