Convert-Encoding.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[string[]]$Excludes = @('**Debug**', '** bin\**', '*TemporaryGeneratedFile*.cs', '*.Designer.cs')
Get-ChildItem . -recurse -Include *.aspx, *.master, *.cs -Exclude $Excludes | ForEach-Object {
$content = $_ | Get-Content
$Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False
$_.Fullname
[System.IO.File]::WriteAllLines($_.Fullname, $content, $Utf8NoBomEncoding)
}
source & further reading
gist.github.com — original article
claude cost optimization instructions
Self-hosted AI assistant on a $9 VPS — Ollama + Open WebUI + Caddy
gpu_retired_pages.py -- dump retired NVIDIA GPU memory pages WITH retirement timestamps