Rosettast0ned
rosettast0ned.com
Rosettast0ned
@rosettast0ned.com
Professional nerd, beer brewer, automation lover, DIY electronics enjoyer. TIME Magazine 2006 Person of the Year. I like some dogs more than some people. Fitness enthusiast. ▪█─────█▪
4/?

Takes a string, array of strings, a .NET DirectoryInfo object, array of DirectoryInfo objects, a mixed array of strings/DirectoryInfo objects, or an array of arrays of the above as input. I'm now working on the reverse functionality (POSIX -> Win).

What in the everliving fuck is wrong with me?
December 15, 2024 at 4:15 AM
3/?

1. Is 300+ lines long
2. Has two mutually-exclusive parameter sets
3. A truth table
4. A nested function that recursively calls itself to parse arrays (with a stopwatch in case of infinite recursion)
5. A return object with its own attached functions
6. Auto output copy-to-clipboard by switch
December 15, 2024 at 4:08 AM
2/?

This is an easy problem. It can be accomplished in just one or two lines of PowerShell if you don't care about errors or accuracy.

It's now two days later, and this function now is/has:
December 15, 2024 at 4:03 AM
This is amazing and I'm stealing it.
December 15, 2024 at 3:50 AM
Witchcraft.
December 2, 2024 at 11:46 AM
I NEVER trust anything that works on the first try.

I'll give it suspicious side-eye until the day I decommission it.
December 2, 2024 at 11:45 AM
Now rewrite it to be more efficient and close the holes, document how you did it, and then upload the new version and vanish into the aether.

Refuse to elaborate.
December 1, 2024 at 8:10 AM
Pancakes. I will not elaborate.

🥞
June 17, 2024 at 4:27 AM
I didn't know that I needed something like this in my life until just now.
April 1, 2024 at 7:05 AM
Never had to deal with the raging garbage fire that is HP Enterprise's site, eh?
February 10, 2024 at 5:05 AM
I feel seen
December 10, 2023 at 9:55 AM
This is fucking creepy.
December 3, 2023 at 4:37 PM
That's a little horrifying. Never been bit by that before, thankfully.

I'm a big fan of making the config files for work scripts in JSON just because of the good integration in Python & PowerShell.

Gonna have to keep that in mind in the future.
December 3, 2023 at 4:08 PM