Skip to content

Instantly share code, notes, and snippets.

@DerekZiemba
DerekZiemba / Convert-IPodPhotoThumbsCacheToPng.ps1
Last active September 23, 2026 17:54
Convert 2009-2010 era (Windows XP) "iPod Photo Cache" to PNG images using powershell. Automatically selects largest image.
$sourceDir = "E:\Documents and Settings\Erika\My Documents\My Pictures\iPod Photo Cache"
$outputDir = "H:\Memories\Ericka\Extracted_iPod_Photos"
if (-not (Test-Path $outputDir)) {
New-Item -ItemType Directory -Force -Path $outputDir | Out-Null
}
$files = Get-ChildItem -Path $sourceDir -Recurse -Filter *.ithmb
# Process files in parallel across all available CPU cores
@DerekZiemba
DerekZiemba / convert-mmssmdb-to-xml.ts
Last active August 13, 2026 17:00
Convert old text message backups (mmssmn.db) to modern xml for SMS Backup & Restore
#!/usr/bin/env bun
/**
@name convert-mmssmsdb-to-xml.ts
@description
Converts a RAW Android telephony provider dump (contents of /data/data/com.android.providers.telephony/)
pulled off a rooted or ADB-backed-up) phone into XML format used by
@see {@link https://synctech.com.au|"SMS Backup & Restore"} so old messages can be imported into a modern phone.
This is NOT an SMS Backup & Restore backup file.
@DerekZiemba
DerekZiemba / gemini.google.js
Created August 6, 2026 06:38
Tampermonkey: Better gemini.google.com style
// ==UserScript==
// @name Better Gemini Style
// @namespace http://tampermonkey.net/
// @version 2026-08-05
// @description try to take over the world!
// @author You
// @match https://gemini.google.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=gemini.google.com
// @run-at document-start
// @grant GM_addStyle
@DerekZiemba
DerekZiemba / gather-logs.ps1
Created February 25, 2026 20:59
Applied Rater gather-logs.ps1
# -- Prepare output folder --
$dest = Join-Path $env:USERPROFILE "Desktop\SemcatLogs.$(Get-Date -Format 'yyMMdd_HHmm')"
Write-Host 'Creating LogFile Directory ' -NoNewline
Write-Host $dest -ForegroundColor Green
New-Item -ItemType Directory -Path $dest -Force | Out-Null
$pathsOfInterest = @()
# -- Collect system diagnostics --
@DerekZiemba
DerekZiemba / windows-11-taskbar-styler.wh.cpp
Last active October 22, 2026 18:51
[windows-11-taskbar-styler.wh.cpp] feat: extend taskbar styler with css style advanced selectors, custom theme, and performance improvements
// ==WindhawkMod==
// @id taskbar-stye-fork
// @name Windows 11 Taskbar Styler - Fork - Fork
// @description Customize the taskbar with themes contributed by others or create your own
// @version 1.5.2
// @author m417z
// @github https://gist.github.com/DerekZiemba/deffec696f35768438d508fd3e2e9b1f
// @twitter https://twitter.com/m417z
// @homepage https://m417z.com/
// @include explorer.exe
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "thinkScript",
"scopeName": "source.tosts",
"patterns": [{"include": "#code"}],
"repository": {
"code": {
"patterns": [
{"include": "#comments"},
@DerekZiemba
DerekZiemba / K95 Keyboard F13-F18 Scancode Map.reg
Last active February 19, 2025 18:46
Assign Corsair K95 Keyboard G1-G6 keys to F13-F18, and have it work without needing iCUE
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
; 8 bytes that are always 00 00 00 00 00 00 00 00 (as is required)
"Scancode Map"=hex:00,00,00,00,00,00,00,00,\
07,00,00,00,\ ; +4 bytes that are used for the count nn 00 00 00 (as is required)
\ ; +4 bytes per mapping (BigEndian / reverse order)
64,00,73,00,\ ; Intl'1(00_73) --> F13(00_64)
65,00,70,00,\ ; Intl'2(00_70) --> F14(00_65) (Katakana / Hiragana)
66,00,7d,00,\ ; Intl'3(00_7d) --> F15(00_66) (Yen)
// ==UserScript==
// @name tradeogre-tampermonkey-script
// @author Derek Ziemba
// @version 2024.03.18
// @match https://tradeogre.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=tradeogre.com
// @updateUrl https://gist.github.com/DerekZiemba/41c7049b721fe3c12e8d5144d346e343.js
// @downloadUrl https://gist.github.com/DerekZiemba/41c7049b721fe3c12e8d5144d346e343.js
//// @require file:///C:/Dropbox/Scripts/.js/ZZ5/websites/tradeogre/tradeogre.js
// @run-at document-start
@DerekZiemba
DerekZiemba / Bookmarks-1.5a.csv
Last active August 25, 2023 00:07
System Informer (Everything64.exe) Modules
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
Name,Type,Folder,Case,Whole Word,Path,Diacritic,Prefix,Suffix,Ignore Punctuation,Ignore Whitespace,Regex,Search,Filter,Columns,Sort,Descending,View,Index,File List,Host,Link Type,Macro,Key,Icon
"Q:<X>",0,"",,,,0,,,,1,,"<add-column:Subject;Title;DisplayName;ProductName;Description;Company;OriginalFilename;Version;ProductVersion> !<ext:st> <ignore-punc:ignore-whitespace:<X:>> |<<ContentType:<X:>>|<ignore-whitespace:Type:<X:>> > |<<PerceivedType:""document""> <!attribute:<H|S>> ignore-punc:<Subject:<X:>|Title:<X:>|Description:<X:>>> |<<PerceivedType:""video""> <!attribute:<H|S>> ignore-punc:ignore-whitespace:<Title:<X:>>> |<<ext:exe;dll;rll;msi;msc;cpl;ocx;sys> <ignore-punc:ignore-whitespace:<DisplayName:<X:>|ProductName:<X:>|Company:<X:>|OriginalFilename:<X:>>> |<ignore-punc:Description:<X:>> |<Version:<X:>|ignore-whitespace:ProductVersion:<X:>> > |<<ext:lnk> ignore-punc:ignore-whitespace:ShortcutTarget:<X:>> |< < <PerceivedType:""document""> !<attribute:<H|S>> > < !<size:""<32""> !<size:""
@DerekZiemba
DerekZiemba / index.html
Last active December 2, 2021 22:10
JS Field access performance comparison depending on how Object constructed #jsbench #jsperf (http://jsbench.github.io/#10afe81fe96191b0c43303dedfc30f10) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>JS Field access performance comparison depending on how Object constructed #jsbench #jsperf</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>