Skip to content

Instantly share code, notes, and snippets.

View jpluimers's full-sized avatar

Jeroen Wiert Pluimers jpluimers

  • wiert.me
  • Amsterdam, The Netherlands
View GitHub Profile
@jpluimers
jpluimers / delete_thumbsdb.sh
Created June 9, 2026 14:42 — forked from NicoDeLarge/delete_thumbsdb.sh
Recursively delete Thumbs.db
#!/bin/bash
# Recursively delete all files named Thumbs.db starting from the given path (default: current directory)
# Usage: ./delete_thumbsdb.sh [--dry-run] [path]
DRY_RUN=false
TARGET_DIR="."
for arg in "$@"; do
case "$arg" in
97ed2df27debe5a8e94fb37be4383eb8516d5c24117793bda5c1e13568d3f754 Win11_24H2_Arabic_x64.iso
1bc63e9c62fe3eb7e46778f24c790933770fa7430304583bbdf96b47a5d61f1f Win11_24H2_BrazilianPortuguese_x64.iso
1c1bd6e96290521b7e4f814aca30c2cc4c7fab1e3076439418673b90954a1ffc Win11_24H2_Bulgarian_x64.iso
bd1ecba89bc59b7b62ef12c88c4e70d456edac10b969ecb3299ebd458b1f0fb3 Win11_24H2_Chinese_Simplified_x64.iso
b92c3d6d428d12cf78a8d287b8fb28ffbc44d4a36b74c1b121c3cf443dc67ed2 Win11_24H2_Chinese_Traditional_x64.iso
95c7008ab1b0ba65212a36fb728ac93b9d7611400a78393fe7b319ed5b74ac5c Win11_24H2_Croatian_x64.iso
76120e535db895d0ea69f47d55b836940821352a010dedfcbcfc1e22e619fc4b Win11_24H2_Czech_x64.iso
d5d34dffe45ba557581ada14ac025db8aa58989d054706061b7d0e5b47f5fdb9 Win11_24H2_Danish_x64.iso
ee9bc545673d8f954a1edac691d749438d3e4dfa10a75d2519f79e3708d79fdc Win11_24H2_Dutch_x64.iso
d5a4c97c3e835c43b1b9a31933327c001766ce314608ba912f2fffc876044309 Win11_24H2_EnglishInternational_x64.iso
@jpluimers
jpluimers / automatedManualCertbotRenewal.sh
Created May 18, 2026 12:05 — forked from AnthonyWharton/automatedManualCertbotRenewal.sh
FreeDNS (afraid.org) Cerbot/Let's Encrypt Manual Automation Script
#!/bin/bash
# Copyright 2018, Anthony Wharton
# Single script that can be called that generates certificates using the
# certbotFreeDNSAuthHook.sh and certbotFreeDNSCleanupHook.sh scripts.
# This should be used as guidence of my usage, and changed to your needs. Note
# the generic `/path/to/...` and `DOMAIN.COM`, which should be replaced with
# your script location and domain respectively. In addition, for this to be
# used on a live system, one must remove the `--dry-run` flag.
@jpluimers
jpluimers / CRS112-8P-4S-IN.default.config.rsc
Last active May 19, 2026 10:43
MikroTik RouterOS default configs for CRS112-8P-4S-IN, RB941-2nD (hAP lite) and later more
#| Welcome to RouterOS!
#| 1) Set a strong router password in the System > Users menu
#| 2) Upgrade the software in the System > Packages menu
#| 3) Enable firewall on untrusted networks
#| -----------------------------------------------------------------------------
#| Switch mode:
#| * all interfaces switched;
#| LAN Configuration:
:global defconfMode;
@jpluimers
jpluimers / readme.md
Created May 4, 2026 16:17
Need to fix "Illegal byte sequence" when cloning https://github.com/jpluimers/Conferences.git

Terminal output:

jeroenp@Jeroens-MBP-M1 git % git clone https://github.com/jpluimers/Conferences.git
Cloning into 'Conferences'...
remote: Enumerating objects: 1089, done.
remote: Total 1089 (delta 0), reused 0 (delta 0), pack-reused 1089 (from 1)
Receiving objects: 100% (1089/1089), 62.85 MiB | 10.67 MiB/s, done.
Resolving deltas: 100% (277/277), done.
error: unable to create file 2013/20130907-RAD-Studio-In-Action-PasCon-Leiden-Netherlands/A successful Git branching model ? nvie.com.url: Illegal byte sequence
@jpluimers
jpluimers / RB960PGS-hEX-PoE-as-a-switch.rsc
Created May 4, 2026 11:13
Switch configuration after a factory reset of a MikroTik hEX PoE RB960PGS using the reset button
/interface bridge
add admin-mac=64:D1:54:13:98:E6 auto-mac=no comment=defconf name=bridgeLocal
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/interface bridge port
add bridge=bridgeLocal comment=defconf interface=ether1
add bridge=bridgeLocal comment=defconf interface=ether2
add bridge=bridgeLocal comment=defconf interface=ether3
@jpluimers
jpluimers / sonde.life.arrival.html.main.js
Created April 19, 2026 15:41
https://sonde.life/arrival.html?paused=1&t=6 bits (the `paused` and `t` parameters are not functioning during page load, only after the page has been loaded and the page becomes paused)
(function () {
var STORAGE_KEY = 'sonde-life:theme';
var root = document.documentElement;
var buttons = document.querySelectorAll('.theme-control button');
function readStoredTheme() {
try { return localStorage.getItem(STORAGE_KEY); } catch (_) { return null; }
}
function writeStoredTheme(val) {
try { localStorage.setItem(STORAGE_KEY, val); } catch (_) { /* hardened browser */ }
@jpluimers
jpluimers / index.html
Last active April 5, 2026 18:55
Enabling the `tnum` feature of a font: `style="font-variant-numeric: tabular-nums";` and `style="font-feature-settings: 'tnum'";`
<!DOCTYPE html>
<html>
<head>
<title>Enabling the `tnum` feature of a font: `style="font-variant-numeric: tabular-nums";` and `style="font-feature-settings: 'tnum'";`</title>
</head>
<body>
<table
style="font-family: system-ui, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, Helvetica, Arial, 'Helvetica Neue', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';"
@jpluimers
jpluimers / app.js
Last active March 24, 2026 16:12
Source for "Minesweeper but it's the Strait of Hormuz. https://sweepthestrait.com/" by Sergey Alexashenko
const CELL_SIZE = 16;
// Generated from Natural Earth 10m admin-0 country polygons (IRN/OMN/ARE)
// over bbox [55.1, 24.0, 58.8, 27.15] with 5x5 supersampling per cell.
const BOARD_MASK_ROWS = [
".............###########............................",
"........######..##########..........................",
".......##......############.........................",
"..#...##......#############.........................",
"####....####################........................",
"###.########################........................",
net stop wuauserv
net stop bits
net stop cryptSvc
net stop msiserver
ren %systemroot%\SoftwareDistribution SoftwareDistribution.old
ren %systemroot%\System32\catroot2 catroot2.old
net start msiserver
net start cryptSvc