diff --git a/hugo-content/content/projects/home-server.md b/hugo-content/content/projects/home-server.md index 170beff..f0f4de0 100644 --- a/hugo-content/content/projects/home-server.md +++ b/hugo-content/content/projects/home-server.md @@ -1,7 +1,7 @@ --- title: "Home Server" date: 2025-12-17T15:42:08-08:00 -draft: true +draft: false --- So things have changed since the raspberry pi days. I got a beelink for @250 and it blows the 6 pi cluster out of the water in terms on compute and latency. I have installed k3s on it as well, but it's a bit upgraded as I have learned a lot more about kubernetes since the last go-round. diff --git a/hugo-content/content/projects/toy-crate.md b/hugo-content/content/projects/toy-crate.md index e71bd67..b152fe1 100644 --- a/hugo-content/content/projects/toy-crate.md +++ b/hugo-content/content/projects/toy-crate.md @@ -28,3 +28,11 @@ My wife and I have been gathering abandoned toys on our morning walks for awhile ## Finished! The box came out more lopsided than imagined, but it works great! It's been about a month and there have been multiple full cycles of toys. I'm thrilled that the community has been accepting of it, and that it hasn't been removed. +## And Death +We ended up moving further away and went to the beach less, and the check-ins got to be more depressing, typically mostly trash and it was used more as a lost and found for kids socks. I kept putting toys in, but they would dissapear too quickly. I noticed there were usually toys I didn't add, but none would last more than a week. + +One day I cam back, it was in its place but it looks like people tried to use it for their fire, but it must have burnt abysmally with all the waterproofing I did. + +It was in an unsafe state, so I came by later and took it away. It was a fun experiment, but ultimately the sucky people beat out the good ones. I have no plans to make a new one here. + +![burnt_crate](/img/burnt_crate.webp) \ No newline at end of file diff --git a/hugo-content/static/img/burnt-crate.webp b/hugo-content/static/img/burnt-crate.webp new file mode 100644 index 0000000..56022bf Binary files /dev/null and b/hugo-content/static/img/burnt-crate.webp differ diff --git a/scripts/make_webp.sh b/scripts/make_webp.sh index 98cd018..625b01e 100755 --- a/scripts/make_webp.sh +++ b/scripts/make_webp.sh @@ -1,14 +1,26 @@ #!/bin/bash -SCRIPT_DIR=$(dirname "$(readlink -f "$0")") +SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd) -# Find all files of type PNG, JPEG, or TIFF -files=$(find $SCRIPT_DIR/../hugo-content/static/img/ -type f -iname "*.png" -o -iname "*.jpg" -o -iname "*.tif") +# Find all files of type PNG, JPEG, TIFF, or HEIC +files=$(find "$SCRIPT_DIR/../hugo-content/static/img/" -type f \( -iname "*.png" -o -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.tif" -o -iname "*.tiff" -o -iname "*.heic" \)) # Loop through all the files in the directory for file in $files; do - # Convert the file to WEBP - cwebp -resize 1500 0 $file -o "${file%.*}.webp" + output="${file%.*}.webp" + + # Check if file is HEIC format + if [[ "$file" == *.heic ]] || [[ "$file" == *.HEIC ]]; then + # Convert HEIC to WebP using sips (built into macOS) and cwebp + temp_png="${file%.*}_temp.png" + sips -s format png "$file" --out "$temp_png" >/dev/null 2>&1 + cwebp -resize 1500 0 "$temp_png" -o "$output" + rm "$temp_png" + else + # Convert other formats directly with cwebp + cwebp -resize 1500 0 "$file" -o "$output" + fi + # Delete old file - rm $file + rm "$file" done \ No newline at end of file