Skip to content

Instantly share code, notes, and snippets.

@CherryDT
CherryDT / wslg-hidden-cursor-workaround.wh.cpp
Created November 7, 2026 00:07
WindHawk mod as workaround for mouse cursor vanishing in WSLg Chromium windows
// ==WindhawkMod==
// @id wslg-hidden-cursor-workaround
// @name WSLg: hidden cursor workaround
// @description Draws a Windows arrow over WSLg windows independently of the remote cursor
// @version 0.1
// @author David Trapp (CherryDT)
// @github https://github.com/CherryDT
// @include %ProgramFiles%\WSL\msrdc.exe
// @architecture x86-64
// @compilerOptions -luser32 -lgdi32
@CherryDT
CherryDT / codex-idle-send-workaround.py
Created October 2, 2026 12:52
Workaround for Codex issue #49943
#!/usr/bin/env python3
"""Codex 26.930.21537: idle-only workaround for stalled follow-ups.
See https://github.com/openai/codex/issues/49943#issuecomment-5952747163
python3 codex-idle-send-workaround.py EXTENSION_DIRECTORY # check
python3 codex-idle-send-workaround.py EXTENSION_DIRECTORY --install
python3 codex-idle-send-workaround.py EXTENSION_DIRECTORY --restore
Reload the VS Code window afterwards. Steering and queueing are blocked with a
notice. Backups stay inside the extension folder; --install also upgrades a
@CherryDT
CherryDT / Repair-CodexChromeManifest.ps1
Created August 31, 2026 15:53
PowerShell Script to repair ChatGPT Chrome extension hitting issue #35705
#Requires -Version 5.1
<#
.SYNOPSIS
Repairs stale Codex paths in the Chrome native-host manifest.
.DESCRIPTION
Finds the currently installed OpenAI Codex AppX package and the newest valid
Codex CUA Node runtime, backs up chrome-native-hosts-v2.json, updates its
runtime and resources paths, and verifies the result. This is a workaround
@CherryDT
CherryDT / get_balances_by_date.py
Created July 8, 2026 10:58
Gets a report of hours balance and remaining vacation days at a specific date from TimeTac, for yearly accounting
import argparse
import csv
import os
import requests
import sys
from decimal import Decimal
from typing import Any
from dotenv import load_dotenv
@CherryDT
CherryDT / spatula-examples.md
Created June 20, 2026 14:04 — forked from Romern/spatula-examples.md
Goog-Spatula Header Stuff
@CherryDT
CherryDT / keyring_winhello_poc.go
Last active November 3, 2026 21:00
PoC code for testing Windows Hello for Keyring
//go:build windows
// +build windows
package main
import (
"bytes"
"crypto/rand"
"encoding/base64"
"encoding/json"
@CherryDT
CherryDT / hprof_android_string_fix.py
Created April 24, 2026 13:56
Script to patch converted Android HPROF dumps' strings to correctly display in Eclipse MAT
#!/usr/bin/env python3
"""
hprof_android_string_fix.py
By David Trapp (dt@david-trapp.com)
Patch Android/ART HPROF dumps converted with hprof-conv so Eclipse MAT can
display java.lang.String values that were stored in Android compact/packed
form.
This turns things like `\u616d\u6e69` back into e.g. `main`.
@CherryDT
CherryDT / login-password-less-always.php
Created October 2, 2025 11:29
Put this file into sub-folder adminer-plugins next to Adminer to allow passwordless login
<?php
class AdminerLoginPasswordLessAlways extends Adminer\Plugin {
function login($login, $password) {
return true;
}
}
@CherryDT
CherryDT / providers_settings_parser.py
Created April 15, 2024 16:12
Android Backup settings data file parser
'''
(c) Yogesh Khatri 2019
Updated by David Trapp 2024
License: MIT
Purpose: Read 'com.android.providers.settings.data' located at
<Backup.adb>/apps/com.android.providers.settings/k
Requires: Python 3 and construct
@CherryDT
CherryDT / recordit_download.py
Created March 25, 2024 18:41
Python script to download own RecordIt recordings
# This Python script downloads all the recordings you made with RecordIt as MP4 and GIF files into the current directory.
import requests
from bs4 import BeautifulSoup
import re
import os
import sys
import glob
import xml.etree.ElementTree as ET