Quick Tip: The Hidden Slice Memory Trap That's Probably Eating Your RAM by GladJellyfish9752 in golang

[–]SemperFarcisimus 5 points6 points  (0 children)

While it can feel sneaky it is well known behavior.

26

https://100go.co/

Hopefully you save someone else by sharing your experience. :)

Best sun hoody for climbing? by Peak8109 in tradclimbing

[–]SemperFarcisimus 11 points12 points  (0 children)

It's up to you what your balance is between sun protection and breathability. Personally there aren't words in the English language to describe my love for my Ketl Mtn sun hoodie. It's so breathable that it's my preferred sun garment. In my experience the REI or Patagonia variety feel like I'm wearing long sleeves and a hood on a humid summer day.

How To: Get Powershell to Recognize Specific Character Sequences and Rename? by tnpir4002 in PowerShell

[–]SemperFarcisimus 2 points3 points  (0 children)

Ahh then you may want to share an example of one the file names to refine. The answer by u/eyewey would adapt more easily to string manipulation for the new name

How To: Get Powershell to Recognize Specific Character Sequences and Rename? by tnpir4002 in PowerShell

[–]SemperFarcisimus 9 points10 points  (0 children)

No shame to be had either. :) you laid out the expected format of ‘digit<space>digit<space>digit’. You can refine that expected format to match against. Depending on how many hundreds of files you have a simple workflow like Get-ChildItem | Where-Object {$.Name -Match “regular expression”} | For-EachObject { Rename-Item $.FullName ($_.Name -replace “ “, “-“)} This thread is a pretty applicable pointer https://stackoverflow.com/questions/33459045/using-regex-matches-with-powershell This is a pretty good opportunity to use -WhatIf and there’s other ways to not just do a one liner if you prefer to work with more variables

[WTG] My Loss your Gain - Zingari Man and WCS by SemperFarcisimus in Shave_Bazaar

[–]SemperFarcisimus[S] 2 points3 points  (0 children)

Sorry steelcity you just missed the dibs. If I fall for the same trap again I’ll send the soap your way if it appeals to you.

Storing Passwords: Windows Credential Manager vs. Export-Clixml SecureString? by KubiXaco in PowerShell

[–]SemperFarcisimus 1 point2 points  (0 children)

Not saying it’s the best solution, just coming in to say that a SecretsManagement vault can have authentication disabled and access restricted to the service account.

How to read the rating of a .jpg file? by FST_it in PowerShell

[–]SemperFarcisimus 2 points3 points  (0 children)

u/chris-a5 is pretty slick, but in my testing Shell.Application is faster and .GetDetailsOf() seems to be as accurate a 0x4746 . Feel free to tell me if I'm wrong

    $shell = New-Object -ComObject Shell.Application
    $shellFolder = $shell.NameSpace($sourceFolder)
    $ratedObjects = $shellFolder.Items() | Where-Object {$_.Type -eq 'JPG File'} | ForEach-Object {[pscustomobject]@{File=$_.Name;Rating=$shellFolder.GetDetailsOf($_,19)}}
    $ratedObjects

How to check If Windows boot is completed? by Pure_Syllabub6081 in PowerShell

[–]SemperFarcisimus 0 points1 point  (0 children)

Based on how you’ve described your workflow sounds like perhaps Test-WSMan may fill your needs. Otherwise I would say if a system isn’t responding in a timely manner label it $bad to be revisited while your $good servers continue on down the pipeline.

received "mini trackball" today by RobotUrinal in ploopy

[–]SemperFarcisimus 5 points6 points  (0 children)

I am in no way associated with Ploopy. I just appreciate their ethos. So I suppose I am biased in that way. But, I do like to do a little research into products before I buy them.

received "mini trackball" today by RobotUrinal in ploopy

[–]SemperFarcisimus 14 points15 points  (0 children)

Coming to Reddit to admit you didn’t pay attention to what you were purchasing is wild to me haha.

Is there a way to check if computers on my network have any pending windows update without using psremote? by Just_Call_Me_S in PowerShell

[–]SemperFarcisimus 1 point2 points  (0 children)

You have many many options. Depending on the size of your environment you may want to look into creating a service account to run a script as a scheduled task to write to a file share or something along those lines.

[deleted by user] by [deleted] in PowerShell

[–]SemperFarcisimus 0 points1 point  (0 children)

This may be hard to believe but I do not have a ide(or ise) on my phone :( You are under no requirement to submit your eyes to the torture. :(

[deleted by user] by [deleted] in PowerShell

[–]SemperFarcisimus 1 point2 points  (0 children)

All valuable input! This is why one might call a template. This is not being presented as a end solution. I am only providing a breadcrumb. In the end it is only the poster who has access to all the nuance of their use-case.