James Brundage | MVP
mrpowershell.com
James Brundage | MVP
@mrpowershell.com
Jack of all Trades, Master of PowerShell.

Prolific Programmer

Microsoft MVP in Azure / PowerShell

https://mrpowershell.com/
https://github.com/StartAutomating
https://github.com/PowerShellWeb

NB, Neurodivergent, Nerdy, Newsjunkie.

Ask me anything.
#PowerShell #Trick #FYI

#Template #Inception

~~~PowerShell
@"
A multiline double quoted string is a template $(
"And it can contain templates. $(
"(which can contain templates) $(
"[which can contain templates] $(
@"
and so on.
"@
)"
)"
)"
)
"@
~~~
a man standing on a bridge looking at a woman walking on the sidewalk
Alt: Just throwing this little bit of code out there before I throw it away. This has been possible in PowerShell forever. Maybe I'm Javascripting wrong, but I was not able to do this sort of template inception in JS. Don't know of too many other languages where these sorts of shennanigans work, either. Add it to the list of fairly unique things about PowerShell.
media.tenor.com
December 10, 2025 at 2:13 AM
Reposted by James Brundage | MVP
RegEx and LDAP Filters are two great use cases for joining arrays of strings in PowerShell. Been building RegEx that way for a while, but did it with LDAP Filters today and found it quite nice!
December 9, 2025 at 9:10 PM
Good news for #webdev and #PowerShell people:

I've created a little educational module "Servers101"

github.com/PowerShellWe...

It's a collection of simple servers written in pure PowerShell.

Hopefully this helps everyone see how simple servers can be.
GitHub - PowerShellWeb/Servers101: Simple Servers in PowerShell
Simple Servers in PowerShell. Contribute to PowerShellWeb/Servers101 development by creating an account on GitHub.
github.com
December 8, 2025 at 8:09 PM
How is it that I can do #WebDev in #PowerShell for almost two decades without uncontrolled code injection and yet it seems like every other week some #JavaScript project has accidentally allowed root access ?

🧑‍💻🤦

( Looking at you, #NextJS )
December 8, 2025 at 6:46 PM
#TodayILearned #BlueSky bugs out when you try to type a #PowerShell heredoc.

Type @, then ', then see how you cannot press enter after this point (you have to add the @ later).

@support.bsky.team where do I file this bug?

bsky.app/profile/mrpo...
#PowerShell does pretty great as a meta shell language.

Also, it's strings are designed to avoid this exact situation.

There are 4 string types in PowerShell

- Single quote 'Like this'
- Double quote "Can have $variables"
- Single heredoc @'
I don't need to escape
'@
- Double heredoc @"
"$pid"
"@
December 7, 2025 at 8:43 PM
@sdwheeler.bsky.social

The other day I made a 101 line file server as a demo.

I carefully kept each line within 80 characters.

Where in the wide world of #PowerShell docs could such an example go?

Inquiring minds want to know 😉.
December 4, 2025 at 8:19 PM
Hey PowerShell people:

For the last Pacific PowerShell User Group of the year ( next week ), would you rather:

- Do a community lightning round of demos?
- Hear a talk about #PowerShell and #CSS?
December 4, 2025 at 6:50 PM
Reposted by James Brundage | MVP
To make my life easier, and perhaps some others, I've moved my TrueColor acceleration code, with some modifications, into a PowerShell Module called PSRainbow. It's available today in the Gallery for anyone to use.

www.powershellgallery.com/packages/PSR...

#powershell
PSRainbow 1.1.0
Provides a library of 24-bit colors that can be used in PowerShell scripts.
www.powershellgallery.com
December 1, 2025 at 4:31 PM
Even with a bit of #PowerShell help, it's a big pain to tag over a hundred different people as #GitHub co-authors.

🤷 Do what you gotta do to attribute correctly

Anyone else ever use the Co-authored-by capabilities in GitHub?
December 3, 2025 at 9:07 PM
Today's #WTF / #LinkOfTheDay / #TheKindOfStoryWeNeedRightNow

It appears Racoons are getting a little festive and may be trying to worship porcelain gods.

www.theguardian.com/us-news/2025...
Drunk raccoon found passed out in Virginia liquor store
Store employee found masked bandit sleeping off a bender after invading booze store and tippling a tad too much
www.theguardian.com
December 3, 2025 at 7:52 PM
Ever wonder how to refine your ideas?

I'm not going to tell you which ideas are good or bad, but The Five Rubrics might help you figure it out.

This is great for any #engineer or #creative.

Read this post to learn how to think it thru.
The Five Rubrics
# The Five Rubrics ## How To Refine Ideas > Reprint of [The Five Rubrics from MrPowerShell.com](https://MrPowerShell.com/Wisdom/The-Five-Rubrics) We have all have a good idea or two. We engineers, and creatives, and leaders may have a few more than that. Intellectual professionals live and die ...
pipup.social
December 3, 2025 at 12:59 AM
Got a good idea?

Here The Five Rubrics I've been using for years:

mrpowershell.com/Wisdom/The-F...

- 5 rubrics
- 10 questions each
- 50 questions to give you food for thought

Please, take a second and take a bite.

Share what you find useful.
The Five Rubrics
Five Rubrics to help refine any idea or project.
mrpowershell.com
December 2, 2025 at 10:45 PM
Wish #AtProto lexicons were easier to author?

Why not try writing them in #Markdown?

I wrote a #PowerShell script to parse this format out, and decided to give @pipup.social a try to get feedback on the idea.

What do you think?
Markdown Lexicons
# Markdown Lexicons What if we could describe a lexicon in Markdown? I think it might be a really readable way to represent them. What do you think? ## An Example Let's suppose we wanted to represent some thing #### com.example.some.thing > A description of the lexicon |Property|Type|Description|...
pipup.social
December 2, 2025 at 2:53 AM
I often find that an open-ended offer of help or request for help reveals how a community interacts with people.

If people are helpful, you've got a good community.

If people are hurtful, you've got a bad community.

Try to be a good #OpenSource community.
December 1, 2025 at 10:34 PM
Reposted by James Brundage | MVP
Have you ever tried to program a meteor crashing in 2 lines of code? Try strudel! strudel.cc#c2V0Q3BtKDEy...
Strudel REPL
Strudel is a music live coding environment for the browser, porting the TidalCycles pattern language to JavaScript.
strudel.cc
November 29, 2025 at 11:19 PM
Hey #AtProto people:

This weekend I made a #PowerShell script that converts a #Markdown table into a Lexicon

That sound useful to anyone else?

Anyone got an idea what to call such a tool?
December 1, 2025 at 8:09 PM
#TodayILearned that if you `cd //` in #PowerShell on #Linux, it will take you to `/mnt`

Gotta love some of the little touches 😆
November 30, 2025 at 8:44 PM
#PowerShell one-liner to get a #BlueSky handle from #GitHub:

~~~PowerShell
(iwr github.com/StartAutomat... -match 'bsky' | Select -Expand href
~~~

Longform with docs:

Gist:

gist.github.com/StartAutomat...

Tangled String:

tangled.org/strings/did:...
GitHubBlueSky.ps1 · by mrpowershell.com
Get a GitHub User's BlueSky Profile with PowerShell
tangled.org
November 28, 2025 at 10:31 PM
@marcf.be

I noticed you are working on a package manager. Just so happens I'm working on a packaging module. Happy to figure out how to add support to yours to the list. LMK if you'd like to sync.
November 28, 2025 at 10:06 PM
#JustWondering

Does anyone else use #Music as a timer?

Like: I know the next two tracks in my current playlist are each 7 minutes, so I'll try to do tasks that fit in the next 7-14 minutes.
November 28, 2025 at 10:03 PM
Is #TikTok dying / dead ?

I've had a little #PowerShell #WebSocket script picking up all of the #youtube and #tiktok links from time to time.

Yesterday afternoon, during a ~6 hour window, I saw 14742 links to videos posted to #AtProto.

95% YouTube
5% TikTok

Is TikTok Dying / Dead?
a man is sitting in a car talking to another man and says i 'm actually embarrassed for you
Alt: Walter White might be evil, but he never sent a thank you message to the current administration to millions of people who didn't want it. That's my best guess as to why TikTok sharing on At Protocol / BlueSky is so low. It's legitimately embarrassing though. If I had run this same experiment two years ago I expect I'd get vastly different numbers.
media.tenor.com
November 25, 2025 at 10:45 PM
Deep down I always knew we were more creative than #AI...

Now I have the paper that proves it? 😉🖖

www.psypost.org/a-mathematic...
A mathematical ceiling limits generative AI to amateur-level creativity
A new study argues that the algorithms driving tools like ChatGPT impose a hard limit on originality. By prioritizing probable answers, these models are structurally confined to producing amateur-leve...
www.psypost.org
November 25, 2025 at 6:31 PM
Today I learned the Deflate streams used in #PNG are directly supported in #DotNet

docs.microsoft.com/en-us/dotnet...

Always good to know there's more than one way to compress stuff in #CSharp and #PowerShell
DeflateStream Class (System.IO.Compression)
Provides methods and properties for compressing and decompressing streams by using the Deflate algorithm.
docs.microsoft.com
November 24, 2025 at 11:18 PM
When considering "lead, follow, or get out of the way", too many people seem to gravitate towards options A or B.
November 24, 2025 at 8:50 PM
Decided to watch #BlueSky / #AtProto emoji with #PowerShell today for a second, and I've gotta wonder?

Anyone know what's going on with all the broken hearts?

Script to watch the emoji feed in the alt text
November 24, 2025 at 7:56 PM