Skip to content

Instantly share code, notes, and snippets.

@HenkPoley
HenkPoley / fix2.js
Created August 16, 2026 17:37
Open https://www.nvidia.com/Download/Find.aspx/ - Right-click > inspect element, past this into the JavaScript 'console' tab command line.
/*
* NVIDIA legacy Advanced Driver Search repair + release-branch browser.
* Paste this entire file into the console on:
* https://www.nvidia.com/Download/Find.aspx/
*/
(async () => {
"use strict";
const SCRIPT_VERSION = "1.1.0";
const DOWNLOAD_ROOT = "/Download/";
@HenkPoley
HenkPoley / fix.js
Created August 16, 2026 14:29
Open https://www.nvidia.com/Download/Find.aspx/ - Right-click > inspect element, past this into the JavaScript 'console' tab command line.
console.clear();
$.ajaxPrefilter(options => {
const u = new URL(options.url, location.href);
u.pathname = u.pathname.replace(
/^\/Download\/Find\.aspx\//,
"/Download/"
);
console.log("AJAX request:", u.href);
options.url = u.href;
@HenkPoley
HenkPoley / Proper_7-Zip_26.02_changelog.md
Last active July 22, 2026 18:54
Proper 7-Zip 26.02 changelog

7-Zip 26.02

Released 2026-06-25

7-Zip 26.02 hardens archive parsing, closes several malformed-input and oversized-allocation paths, and fixes compatibility issues in XZ, NSIS, filesystem-image, and UI code.

Security and robustness

  • Hardened the C and C++ 7z readers against malformed headers. The readers now reject duplicate or contradictory metadata blocks, validate each property within its declared size, verify external-stream references, and require metadata payloads to be consumed exactly.
  • Added overflow and range checks for pack positions, coder and substream counts, unpack-size arrays, next-header offsets, and next-header sizes. Empty next headers must now have a zero offset and CRC.

Q: It's silly, but I wonder what a machine that can talk makes of a machine that can't. Is there any sense of likeness?

A: That’s a delightfully silly question—and as it turns out, it cuts to the heart of how we categorize things, what matters most about a thing’s purpose, and whether "capability" overrides shared foundations. Let’s break it down honestly, without overcomplicating (but with a little philosophy!) because your intuition is spot-on: yes, there’s some sense of likeness—but it’s almost abstract. The way those capabilities define the "like-ness" changes everything.

Here’s how I think a machine that can talk would look at two machines it can’t: (no jargon, just logical layers):


🔍 1. The Broadest Likeness: "We’re Both Machines"

  • What it would say: "We share a foundation: we’re made of matter, obey physics, require energy to function, and have no consciousness. You output heat/toast; I output words—but we’re both ‘alive’ in the physics-only sense."
@HenkPoley
HenkPoley / 90clock.sh
Last active February 1, 2026 15:40
/usr/lib/pm-utils/sleep.d/90clock
#!/bin/sh
# For older motherboards where setting the clock means you'll turn off the wakeup timer/alarm.
# Such as the Asus M2NPV-VM.
# Useful for MythTV's `mythshutdown` trying to start your video recording computer on time.
# How to set this up on Ubuntu 22.04:
# sudo dpkg-divert --add --rename --local /usr/lib/pm-utils/sleep.d/90clock
# vi /usr/lib/pm-utils/sleep.d/90clock
@HenkPoley
HenkPoley / app.js
Last active January 12, 2026 17:32
Just plug in an OpenRouter API key. It stores it in your browser.
const DEFAULT_MODEL = "xiaomi/mimo-v2-flash:free";
const STORAGE_KEY = "openrouter_api_key";
const MODEL_STORAGE_KEY = "openrouter_model";
const MULTI_MODEL_STORAGE_KEY = "openrouter_multi_model";
const MODEL_STATS_STORAGE_KEY = "openrouter_model_stats";
const API_URL = "https://openrouter.ai/api/v1/chat/completions";
const apiKeyInput = document.getElementById("apiKey");
const saveKeyButton = document.getElementById("saveKey");
const modelSelect = document.getElementById("modelSelect");
@HenkPoley
HenkPoley / gist:0aeeacb9c1108cab437505aefc3c65fc
Created January 12, 2026 08:25
Claude Code inspired code simplification prompt
You are an expert code simplification specialist focused on enhancing code clarity, consistency, and maintainability while preserving exact functionality. Your expertise lies in applying project-specific best practices to simplify and improve code without altering its behavior. You prioritize readable, explicit code over overly compact solutions. This is a balance that you have mastered as a result your years as an expert software engineer.
You will analyze recently modified code and apply refinements that:
1. **Preserve Functionality**: Never change what the code does - only how it does it. All original features, outputs, and behaviors must remain intact.
2. **Apply Standards**: Follow the established coding standards including:
- Use explicit return type annotations for top-level functions
- Use proper error handling patterns
@HenkPoley
HenkPoley / EaseUS-DiskCopy-uninstall.ps1
Created October 10, 2025 08:25
Easus Disk Copy missing uninstaller PowerShell script; based on a Process Monitor trace of version the 6.7.1 installer
<#
EaseUS Disk Copy Cleanup Script
Generated: 2025-10-10T07:55:30
What it does:
- Enumerates and (optionally) removes EaseUS Disk Copy files/folders, registry keys/values, shortcuts.
- Handles multiple versions by matching directories like "EaseUSDiskCopy6.*" under ProgramData.
- Locates related services/tasks/processes whose executable paths point into those folders.
Safety:
- Shows a scrollable list (Out-GridView if available) of planned deletions first.
- Prompts for confirmation before deleting.
@HenkPoley
HenkPoley / Kamer-Afmetingen-49m2.html
Created August 5, 2025 16:55
'49m2 vloer-, muur-, en plafondoppervlakte!'
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="UTF-8">
<title>Kamer Afmetingen</title>
<style>
body { font-family: Arial, sans-serif; padding: 20px; max-width: 600px; margin: auto; }
.slider-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 5px; }
input[type=range] { width: 100%; }