Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/pwsh
param ([double]$netto)
$brutto = $netto*1.19
Write-Output ("{0:F2}" -f $brutto)
https://www.archives.gov/files/research/jfk/releases/2025/0318/104-10003-10041.pdf
https://www.archives.gov/files/research/jfk/releases/2025/0318/104-10004-10143%20(C06932208).pdf
https://www.archives.gov/files/research/jfk/releases/2025/0318/104-10004-10143.pdf
https://www.archives.gov/files/research/jfk/releases/2025/0318/104-10004-10156.pdf
https://www.archives.gov/files/research/jfk/releases/2025/0318/104-10004-10213.pdf
https://www.archives.gov/files/research/jfk/releases/2025/0318/104-10005-10321.pdf
https://www.archives.gov/files/research/jfk/releases/2025/0318/104-10006-10247.pdf
https://www.archives.gov/files/research/jfk/releases/2025/0318/104-10007-10345.pdf
https://www.archives.gov/files/research/jfk/releases/2025/0318/104-10009-10021.pdf
https://www.archives.gov/files/research/jfk/releases/2025/0318/104-10009-10222.pdf
param(
[string]$filePath
)
# Ensure the file exists
if (-not (Test-Path $filePath)) {
Write-Error "File does not exist: $filePath"
exit 1
}
javascript:window.location.pathname=window.location.pathname.replace(/^\/[a-z]{2}-[a-z]{2}\//,'/en-us/');
Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.Screen]::PrimaryScreen.Bounds
[System.Console]::CursorVisible = $false
Register-EngineEvent -SourceIdentifier PowerShell.Exiting -Action {
[System.Console]::CursorVisible = $true
} | Out-Null
$width = 10
$height = 20
$script:field = New-Object 'object[]' $height
for ($i = 0; $i -lt $height; $i++) {
@eugrus
eugrus / Profile.ps1
Last active January 6, 2025 11:13
%SystemRoot%\System32\WindowsPowerShell\v1.0\Profile.ps1
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
[Console]::InputEncoding = [System.Text.Encoding]::UTF8
$PSDefaultParameterValues = @{ '*:Encoding' = 'utf8' }
@eugrus
eugrus / base64img.ps1
Created December 30, 2024 15:57
View an image encoded in a Base64 line from clipboard
Add-Type -AssemblyName System.Drawing
function Test-Base64 {
param (
[string]$base64
)
try {
[Convert]::FromBase64String($base64)
return $true
} catch {
@eugrus
eugrus / dumpsys audio output
Created December 9, 2024 13:45
audio on GREVA 8K (RK3528)
1
class=class android.content.res.ApkAssets
debugName=/product/overlay/CaptivePortalLoginFrameworkOverlay.apk
assetPath=/product/overlay/CaptivePortalLoginFrameworkOverlay.apk
2
class=class android.content.res.ApkAssets
debugName=/product/overlay/GmsConfigOverlayASI.apk
assetPath=/product/overlay/GmsConfigOverlayASI.apk
3
class=class android.content.res.ApkAssets
@eugrus
eugrus / cs.ps1
Last active January 4, 2025 20:30
PowerShell loader for C# code
param([string]$CSFilePath)
Add-Type -LiteralPath $CSFilePath -IgnoreWarnings
[Program]::Main(@())