Skip to content

Instantly share code, notes, and snippets.

View AustinSaintAubin's full-sized avatar

Austin St. Aubin AustinSaintAubin

View GitHub Profile
@AustinSaintAubin
AustinSaintAubin / fan-toggle_lenovo-thinkpad.sh
Created July 29, 2026 22:41
ThinkPad fan control: timed/staged/indefinite PWM override with desktop notifications for Fedora KDE Plasma
#!/usr/bin/env bash
# Author: Austin St. Aubin <austinsaintaubin@gmail.com>
# Date: 2026-07-29
#
# fan-toggle: Toggle ThinkPad fans between MAX (for a duration) and AUTO.
# Usage:
# fan-toggle [DURATION] [SPEED]
# DURATION: 90, 90s, 5m, 1h, inf (or "indefinite") (default 5m)
# SPEED : 0-255 or N% (default 100%)
# inf duration skips the auto-revert timer — runs until toggled off.
@r15ch13
r15ch13 / iommu.sh
Last active July 8, 2026 21:01
List IOMMU Groups and the connected USB Devices
#!/usr/bin/env bash
# License: https://r15ch13.mit-license.org
shopt -s nullglob
lastgroup=""
for g in `find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V`; do
for d in $g/devices/*; do
if [ "${g##*/}" != "$lastgroup" ]; then
echo -en "Group ${g##*/}:\t"
else

PKI for busy people

Public-key infrastructure (PKI) is an umbrella term for everything that has to do with keys and certificates.

This is a quick overview of the important stuff.

Public-key cryptography

Public-key cryptography involves a key pair: a public key and a private key. Each entity has their own. The public key can be shared around, the private key is secret.