Shaun Lawrie
banner
shaunlawrie.com
Shaun Lawrie
@shaunlawrie.com
NZ ~ I write code and it sometimes works. Mostly PowerShell, C# and one silly game for COBOL ~ (he/him)
💖 https://pwshspectreconsole.com
🧑‍💻 https://github.com/ShaunLawrie
👋 https://shaunlawrie.com
Tanstack query is not optional if you’re a part time frontend dabbler, it’s awesome. I spent far too long writing all that state management it does for free when I started on React
August 17, 2025 at 8:25 PM
Thanks for having me 🙏
July 9, 2025 at 7:08 AM
Love your work @gilbertsanchez.com ❤️
July 9, 2025 at 7:07 AM
🙏
June 24, 2025 at 9:13 AM
That was scary and exciting. Looking forward to doing it again this afternoon!
June 24, 2025 at 8:52 AM
What a crowd 😂
June 24, 2025 at 8:46 AM
It generates much fewer spelling mistakes than I do with the iOS keyboard 😂
April 30, 2025 at 11:24 PM
I didn’t know how “get-help commandname-online” worked. That’s a cool feature
April 27, 2025 at 7:44 PM
Hey thanks! You should be able to like I’ve done with the bar chart here in example 4. If it doesn’t work that’ll be a nice bug 🙈 pwshspectreconsole.com/reference/fo...
Format-SpectreTable
pwshspectreconsole.com
March 12, 2025 at 10:24 AM
There’s a lot of magic to make the filesystems fast and 99.9% of the time it doesn’t cause any problems but when it does it’s a pita to diagnose
January 19, 2025 at 10:01 PM
I think powershell’s “copy/move-item -recurse” used to have a similar issue on windows but I can’t find where I saw that documented and it was fixed if I recall correctly. In that case there wasn’t a flush option so I had to check for the destination files existence
January 19, 2025 at 10:01 PM
I’ve had this on occasion and found that some tools don’t finish flushing data to disk after file ops because the syscalls can be async-ish. There’s an option to tell the nix kernel to flush all cached data on most distros that may help linux.die.net/man/8/sync
A cheeky “sleep 1” usually works too 😂
sync(8): synchronize data on disk with memory - Linux man page
sync writes any data buffered in memory out to disk. This can include (but is not limited to) modified superblocks, modified inodes, and delayed reads and ...
linux.die.net
January 19, 2025 at 9:54 PM
I try and put as much of the logic into scripts that I can run locally even if it means replicating a bit of logic I could have used someone else’s action step for. Every line of yaml reduced makes it easier imo.
January 18, 2025 at 9:37 PM
It just needs to be a match, not an extraction to filter content though right? So just using word boundaries works and it gets rid of the random wrestling. If does need to extract the hashtags you’ll need something fancier but I don’t think it needs it for the feed filtering
January 15, 2025 at 10:14 AM