I've found it useful to write test units once you'we written one or two, write specific functions and small scripts. For example some time ago I needed a script that found a machine's public ip, then post that to an mqtt topic along with timestamp, with config abstracted out in a file.
Now there's nothing difficult with this, but just looking up what libraries to use and their syntax takes some time, along with actually writing the code. Also, since it's so straight forward, it's pretty boring. ChatGPT wrote it in under two minutes, working perfectly on first try.
It's also been helpful with bash scripts, powershell scripts and ansible playbooks. Things I don't really remember the syntax on between use, and which are a bit arcane / exotic. It's just a nice helper to have for the boring and simple things that still need to be done.
"Better shoot some blacks to avenge it"