Proxy Information
Original URL
gemini://g.mikf.pl/fragmlog/2023-04-01-powershell--files/before_changes.ps1
Status Code
Success (20)
Meta
text/gemini Import-Module ` "C:\Users\Mika Feiler\$( )\source\repos\DotnetTarGzipper\$( )\bin\Release\net7.0\DotnetTarGzipper.dll" $GemCap = $env:GemCap Push-Location Set-Location $GemCap & 'C:\Program Files\Git\bin\bash.exe' ` -c 'date -d "$(grep "^## " tinylog.gmi | cut -c 4- | head -1)" \ +"# Mika Feiler%n=> tinylog.gmi %F Tinylog" > gemfeed-tinylog.gmi' Pop-Location $TempFile = New-TemporaryFile Write-Host "Temporary file name '$TempFile'. " $SrHtTokenKey = "SrHtToken_g.mikf.pl" Get-ChildItem $GemCap -File -Recurse -Name | Where-Object { $_ -NotMatch "^(.*[\\\/])?\..*" } | ForEach-Object { $_ -replace '\\', '/' } | New-Tar (Resolve-Path $GemCap) | Compress-Gzip | Set-Content -Path $TempFile -AsByteStream Write-Host "Finished creating archive. " function Get-SrHtToken { $SrHtToken = Get-Secret $SrHtTokenKey -ErrorVariable NoSrhtToken if($NoSrhtToken.Exception -Is ` [System.Management.Automation.ItemNotFoundException]) { Set-Secret $SrHtTokenKey ($SrHtToken = ` Read-Host -AsSecureString -Prompt "Enter the token") } $SrHtToken } Invoke-WebRequest -Method Post ` -Uri "https://pages.sr.ht/publish/g.mikf.pl" ` -Authentication OAuth -Token (Get-SrHtToken) ` -Form @{ protocol = "GEMINI" content = Get-ChildItem $TempFile } ` -RetryIntervalSec 2 -MaximumRetryCount 3 | ForEach-Object { Write-Host $_.RawContent }
Capsule Response Time
236.720878 milliseconds
Gemini-to-HTML Time
0.007497 milliseconds

This content has been proxied by September (ba2dc).