this post was submitted on 11 Jan 2026
29 points (100.0% liked)

Ask Lemmy

36581 readers
940 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


6) No US Politics.
Please don't post about current US Politics. If you need to do this, try !politicaldiscussion@lemmy.world or !askusa@discuss.online


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Fizz@lemmy.nz 2 points 1 day ago (1 children)

Thats kind of what I am doing at the moment and i enjoy writing those scripts but i get so nervous running them. Even though I'm really confident they won't break something i still feel I'm unlucky enough for the script to accidentally delete our prod dB.

Lol, same. I spend more time writing guard rails, setting up verbose debugging output/logs, figuring out how I can test without blowing up shit, backing up data before, backing up what it's going to do, and then trying to set up automated confirmation of success or failure than I do coding the purely functional parts.

I've run the "person has quit, yeet their access" script I made on people days early more than I should admit. Had to put in a lot of extra checks on that.

If you're at a place still using VMWare, a tip: if you're trying to automate shutting down all the VMs for some hardware moves (get list of VMs, send Guest OS shutdown command, wait a certain amount of time, if VM still showing online force shutoff), VSphere will return the VM management devices/servers/whatever they're called (what vSphere runs on) in the list of VMs, and it will accept Guest OS shutdown commands sent to the thing hosting VM management/vSphere. Halfway through shutting it all down for a move I started getting "cannot reach VSphere" errors. Added an extra hour or two to that weekend project as we had to get into things through some other back end shanigans to finish shutdowns manually.