Skip to content

Instantly share code, notes, and snippets.

View landnthrn's full-sized avatar
☔
floating in space

> landn.thrn landnthrn

☔
floating in space
View GitHub Profile
@landnthrn
landnthrn / Rename-Image-Sequence.txt
Last active January 10, 2026 05:48
Rename a Image Sequence to frame_0, frame_1, frame_2 ...etc...
function Ask-NonEmpty([string]$prompt) {
while ($true) {
$v = Read-Host $prompt
if ($v -and $v.Trim().Length -gt 0) { return $v.Trim() }
Write-Host "Input cannot be empty. Please try again." -ForegroundColor Yellow
}
}
function Pause-ForUser {
Write-Host ""
@landnthrn
landnthrn / Extract Image Information.txt
Last active January 11, 2026 06:39
Get image data allowing you to see more than the properties can show you! With an additional option to see full image metadata.
Add-Type -AssemblyName System.Drawing
Write-Host ""
# Ask user for image path (Read-Host adds ":" automatically, so do NOT include one)
$path = Read-Host "Paste the full path to your image"
# Trim quotes if user pasted them
$path = $path.Trim().Trim('"')
@landnthrn
landnthrn / Export All Sticky Notes to .md or .txt Files.txt
Last active August 11, 2026 23:34
Export all your Windows Sticky Notes to .md or .txt files so you can transfer all to another noting application like Obsidian
# Close Sticky Notes so DB isn't locked
taskkill /IM Microsoft.Notes.exe /F 2>$null | Out-Null
# --- Paths ---
$plum = "$env:LOCALAPPDATA\Packages\Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe\LocalState\plum.sqlite"
if (!(Test-Path $plum)) { throw "Couldn't find plum.sqlite at: $plum" }
# Output folder (loop until valid)
do {
$vault = Read-Host "Paste a path where you want the folder with the exports to be created"