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 / README.md
Created November 8, 2026 12:38 — forked from Pablohn26/README.md
How to get ssh public key for a given Gitlab or Github user

Better SSH Authorized Keys Management

A seemingly common problem that people encounter is how to handle all of your users authorized_keys file.

People struggle over management, ensuring that users only have specific keys in the authorized_keys file or even a method for expiring keys. A centralized key management system could help provide all of this functionality with a little scripting.

One piece of functionality overlooked in OpenSSH is the AuthorizedKeysCommand configuration keyword. This configuration allows you to specify a command that will run during login to retrieve a users public key file from a remote source and perform validation just as if the authorized_keys file was local.

Here is an example directory structure for a set of users with SSH public keys that can be shared out via a web server:

@jpluimers
jpluimers / query.js
Created October 30, 2026 20:47 — forked from nenadom/query.js
A convenience wrapper around querySelector/querySelectorAll, with a transform function to turn NodeLists into arrays.
/* jshint -W033, -W097 */
/* globals document, Element */
(function() {
"use strict";
function query(es, s) {
return _q(es, s, "querySelector")
}
@jpluimers
jpluimers / Reference
Created October 27, 2026 12:30 — forked from Fluepke/Reference
C=US, O=eMudhra Inc, CN=EM OV TLS CA - G3C
https://xkcd.com/221/
@jpluimers
jpluimers / installsword.c
Created August 7, 2026 15:42 — forked from whitequark/installsword.c
installsword.exe "My Installer Title" "Cool Title in the Background"
#define WIN32_LEAN_AND_MEAN
#include <tchar.h>
#include <stdint.h>
#include <windows.h>
#include <shellapi.h>
COLORREF rgbText = 0xffffff;
LPTSTR pchFontName = _T("Times New Roman");
INT iFontSizePt = 24;
LPTSTR pchText = _T("InstallSword Wizard");
@jpluimers
jpluimers / archive-dns-issue.md
Created June 15, 2026 11:10 — forked from ardislu/archive-dns-issue.md
Reference note about archive.today and Cloudflare DNS.

Problem

If you use Cloudflare's DNS (1.1.1.1), then the popular web archive archive.today (and the related sites archive.ph, archive.is, archive.li, archive.vn, archive.md, and archive.fo) will either fail to resolve, or show an infinite CAPTCHA loop. If it does resolve when you're on Cloudflare's DNS, you may have the domain locally cached.

Solution

Fix this problem by:

  • Configuring dnsmasq on your local DNS server to use an alternate DNS server for archive.today (see comment from @joshenders below), or
  • Connecting to a VPN before connecting to archive.today (only works if the VPN uses different DNS servers), or
@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
@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 / Makefile
Created February 20, 2026 05:26 — forked from nfarring/Makefile
ebert: Ethernet Bit Error Rate Tester
CFLAGS=-std=gnu99 -O3
LDFLAGS=-lrt -lgmp
.PHONY: all
all: ebert
ebert: ebert.c time.o profile.o
time.o: time.c time.h
@jpluimers
jpluimers / amazon-domains.json
Created December 12, 2025 17:06 — forked from AminulBD/amazon-domains.json
Amazon operating domains by country.
{
"us": "https://www.amazon.com",
"uk": "https://www.amazon.co.uk",
"ca": "https://www.amazon.ca",
"de": "https://www.amazon.de",
"es": "https://www.amazon.es",
"fr": "https://www.amazon.fr",
"it": "https://www.amazon.it",
"jp": "https://www.amazon.co.jp",
"in": "https://www.amazon.in",