Skip to content

Instantly share code, notes, and snippets.

View aspeckt-112's full-sized avatar

aspeckt112 aspeckt-112

  • 04:28 (UTC +01:00)
View GitHub Profile
@aspeckt-112
aspeckt-112 / renew-cert.sh
Created March 17, 2026 20:30
Quite a few assumptions here - but it's a quick and dirty way to renew certs on a Linux box - assumes the certbot container is named "certbot" and the nginx container is named "nginx". Use with a cron job because you'll 100% forget otherwise.
#!/bin/bash
# 1. Force the script to move into its own directory
cd "$(dirname "$0")"
# 2. Use full paths to binaries (find these by running 'which docker')
# Usually /usr/bin/docker or /usr/local/bin/docker
DOCKER_BIN=$(which docker)
# 3. Renew the cert
@aspeckt-112
aspeckt-112 / bootable-win-on-mac.md
Created July 4, 2025 07:30 — forked from acarril/bootable-win-on-mac.md
Create a bootable Windows USB using macOS

For some reason, it is surprisingly hard to create a bootable Windows USB using macOS. These are my steps for doing so, which have worked for me in macOS Monterey (12.6.1) for Windows 10 and 11. After following these steps, you should have a bootable Windows USB drive.

1. Download a Windows disc image (i.e. ISO file)

You can download Windows 10 or Windows 11 directly from Microsoft.

2. Identify your USB drive

After plugging the drive to your machine, identify the name of the USB device using diskutil list, which should return an output like the one below. In my case, the correct disk name is disk2.

@aspeckt-112
aspeckt-112 / dotnetlayout.md
Created June 29, 2025 14:46 — forked from davidfowl/dotnetlayout.md
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
@aspeckt-112
aspeckt-112 / 99-asus-falchion.hwdb
Created February 19, 2025 17:46 — forked from jnettlet/99-asus-falchion.hwdb
Stop Asus ROG Falchion mechanical keyboard from sending POWER and SLEEP key presses when the keyboard goes to sleep. Put in /etc/udev/hwdb.d and then run sudo systemd-hwdb update
evdev:input:b*v0B05p193Ee0111*
KEYBOARD_KEY_10081=reserved
KEYBOARD_KEY_10082=reserved
KEYBOARD_KEY_70070=reserved
KEYBOARD_KEY_70071=reserved
KEYBOARD_KEY_70072=reserved
KEYBOARD_KEY_70073=reserved
KEYBOARD_KEY_70074=reserved
KEYBOARD_KEY_70075=reserved
KEYBOARD_KEY_70076=reserved