Author: Peter Whyte
-
Claude FM: The /radio Command in Claude Code
Type /radio in Claude Code and it opens Claude FM, the lo-fi music stream Anthropic runs on YouTube, in your browser. What you see, what happens with no browser, and what to do if the command is missing.
-
Kill a Process by Name or ID in PowerShell
Kill a process in PowerShell with Stop-Process, by name or by process ID, preview it with -WhatIf, stop whatever is holding a port, and why -Name notepad.exe finds nothing.
-
Search Your PowerShell Command History with Ctrl+R
Press Ctrl+R in PowerShell to search every command you have run before, keep pressing to cycle through matches, and Enter to run it. Plus F8, Get-History and where the PSReadLine history file lives.
-
Find Which Process Is Using a Port in PowerShell
Find which process is using a port on Windows with Get-NetTCPConnection and Get-Process, what it means when the answer is svchost or System, how to check UDP ports, and the netstat equivalent.
-
Top Processes by Memory in PowerShell (Get-Process)
List the ten processes using the most memory with Get-Process and Sort-Object, what WorkingSet64 and CPU mean, totals per program, and sorting by CPU instead.
-
Fix “UnicodeEncodeError: ‘charmap’ codec can’t encode character” in Python on Windows
Python on Windows stops with UnicodeEncodeError: 'charmap' codec can't encode character when it prints an arrow, a long dash or an emoji to a pipe or a file. Why it happens and the fixes: PYTHONIOENCODING, UTF-8 mode, sys.stdout.reconfigure, and why chcp 65001 does not help.
-
Check Free Disk Space in PowerShell (Get-Volume)
Show size, free space and percent free for every drive with Get-Volume, flag drives under 10 percent, check a remote server, and the Get-PSDrive alternative.
-
Copy PowerShell Output to the Clipboard (Set-Clipboard)
Copy PowerShell output to the clipboard with Set-Clipboard, keep the table layout with Out-String, copy the current folder path, append, read it back with Get-Clipboard, and the Windows PowerShell 5.1 file-copy trap.
-
Base64 Encode and Decode a String in PowerShell
Encode a string to Base64 and decode it back with [Convert] and [Text.Encoding], why the encoding must match, -EncodedCommand, and encoding a whole file.