Join Nostr
2024-12-27 16:33:29 UTC

Zhenyi Tan on Nostr: On the Gibberish server, I used AI to create a few shell scripts to manage UFW. ...

On the Gibberish server, I used AI to create a few shell scripts to manage UFW. (Because I never know how to write those awk-pipe-cut one-liners.)

One day, one of my scripts randomly stopped working. I later learned that when you have over 100 rules, UFW lists rule numbers below 100 with spaces, like [ 1], which the `awk {print $1}` in my script couldn't handle.

I could ask AI again to fix it, but what if it breaks in another, less obvious way? So I rewrote the script in Ruby. End of story.