scripting
small quality of life hugo scripts
Wednesday, 25 February 2026 @ 7:54pm
Finally got around to writing a couple of bash scripts to chain the image modifying and deployment stuff together so I can do all of that with one command instead of 2-3. Named without extensions to make my life easier and located in /.local/bin/ because it was already on the path and seemed like a good idea at the time.
blogify (usage: blogify image01 image02 etc or blogify *.ext)
#!/bin/bash # "apply" orientation flags by actually rotating the image, resize to 1000px on the longest side with a quality of 90 to everything matching whatever was entered mogrify -auto-orient -resize 1000x1000 -quality 90 $@ # remove all exif data and don't make a backup (if you want backups remove -overwrite_original, alternately make sure you're working on a copy) exiftool -all= -overwrite_original $@ I’m pretty sure I tested it with the wildcard but am currently second-guessing myself and will find out the hard way when I next need to do it
Kludgy OBS scene switcher for linux
Tuesday, 27 December 2016 @ 12:36pm
Edited 2017 Jan 7: made the scripts slightly more reliable (not relying on window ids) but they will now get extremely confused if there’s more than one instance of Blender open
Because I’m not smart enough to get the MacOS version of the Automatic Scene Switching plugin for OBS Studio, I gumbied an easy manual one with bash scripts.
So there’s some scenes set up in OBS like so:
Set shortcuts for the scenes in OBS settings like so:
Work, Wannabe and other projects and a dash of unschooling
Friday, 22 April 2011 @ 11:38pm
[minor pseudonymising edits during Drupal to hugo migration for all the good that will do now]
Firstly, what in the hell is with the life category?! I’ve been (very slowly!) importing livejournal entries so I can replace missing photos. Very minor regret that I didn’t bother skimming through my shadowshifter livejournal before I deleted it as I probably had a few progress reports for my various projects kicking around on it, but oh well.