Skip to content

Instantly share code, notes, and snippets.

View danieljurek's full-sized avatar

Daniel Jurek danieljurek

View GitHub Profile
@heaths
heaths / winverify.go
Last active April 19, 2023 00:28
Check Authenticode signature on Windows with Go
//go:build windows
package main
import (
"flag"
"fmt"
"log"
"os"
"path/filepath"
@semick-dev
semick-dev / base64-image-encode.ps1
Last active September 23, 2024 10:00
`pwsh` base64 encode/decode scraps
$inputFile = "azure-sdk-qr-smaller.PNG"
$file = "re-rewritten.txt";
$test_out = "re-out.png"
# to base64
[System.Convert]::ToBase64String((Get-Content $inputFile -AsByteStream)) | Set-Content $file
# back to bytes
[Convert]::FromBase64String((Get-Content $file)) | Set-Content $test_out -AsByteStream
@zvineyard
zvineyard / Pipe Delimited US States
Last active March 18, 2021 16:14
Pipe delimited list of US state abbreviations.
AL|AK|AZ|AR|CA|CO|CT|DE|FL|GA|HI|ID|IL|IN|IA|KS|KY|LA|ME|MD|MA|MI|MN|MS|MO|MT|NE|NV|NH|NJ|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY