• rumba@lemmy.zip
    link
    fedilink
    English
    arrow-up
    22
    arrow-down
    2
    ·
    edit-2
    3 days ago

    Yes.

    Document that code I wrote 7 years ago, suggest any security or efficiency changes. It’s surprisingly adept at that.

    Give me the changes to NixOS 25.05 configuration.nix to add wadroid. Fails with an error, paste the error back into prompt. Oh, you need these kernel modules that are no longer default as of 25.05 make this change. Different error paste it back, Make this one last change and then reboot. It works. I spent a total of 5 minutes on it. If I were just using Google and screwing around that might have been half a morning.

    OBS is giving me a pixel resolution warning. AI: it’s one of your cameras or some media you’ve added in an unsupported format. Give me a quick shell script to run through all of my media directories in this tree and convert all the MP4 video that’s yuv720 to a supported format in new tree so I can swap them out in the end with no risk. 30 seconds later it’s there. Yes, I can write that but I’m not going to have it done in 30 seconds. And if one of the files errors I just shove the error right back in the AI. I don’t personally care why one in 50 images failed I just want them to be converted and I’m far enough along and Dunning Kruger scale that I honestly don’t really care about what I don’t know as long as I can learn a little more and still get the job done.

    Give me a python script to go through a file full of URLs and verify the SSL key expiration dates. Have a variable for how far the future to alert and then slack me a message at 10:00 a.m. everyday which URLs and IPs are expiring earlier than that variable. Also a bunch of the IPs don’t resolve to external addresses so you’re going to have to fake the calls to check them. Here’s my slack token in the channel name.

    3 minute project

    It doesn’t do my job for me but it gets rid of a hell of a lot of tech debt that I’ll never get around to. I won’t give it monolithic complicated jobs because it’s not good at it. But I will absolutely tell it to make me a flask app with stubs for half a dozen features. Or give it the source for a shitty old admin web page and ask it to modernize the CSS and add session logins.

    Sure, if I’m not watching it it might do something relatively stupid. But honestly it has about the same odds of catching something I did years ago that was relatively stupid and telling me to fix it.