Skip to content

Instantly share code, notes, and snippets.

View theodric's full-sized avatar
🥔
mmm potatoes

þēodrīċ theodric

🥔
mmm potatoes
View GitHub Profile
@theodric
theodric / kernelconfig.io-dark-mode.js
Created March 22, 2025 16:59
A Violenmonkey dark mode userstyle for kernelconfig.io
// ==UserScript==
// @name kernelconfig.io Dark Mode v2
// @namespace Curses!
// @version 1.2
// @description kernelconfig.io dark mode userstyle
// @author Theodric + Cursor
// @match https://www.kernelconfig.io/*
// @grant GM_addStyle
// ==/UserScript==
@theodric
theodric / kbd-backlight.service
Created April 13, 2025 18:15
systemd service file to crank 2015 MacBook Air's keyboard backlight to the max during system bringup
[Unit]
Description=set MacBook Air keyboard backlight brightness to max on boot
After=multi-user.target
[Service]
Type=oneshot
ExecStart=/bin/sh -c 'echo 255 > /sys/devices/platform/applesmc.768/leds/smc::kbd_backlight/brightness'
RemainAfterExit=true
[Install]
@theodric
theodric / nuke-residual.sh
Created May 9, 2025 10:07
Gets rid of all leftover unattached package cruft
#!/bin/bash
apt-get -yf remove --purge $(dpkg -l | awk '/^rc/{print $2}')
@theodric
theodric / lxc.shit
Last active June 8, 2025 19:37
LXC shit
If not making own container from scratch:
lxc-create -n thecontainername -t download
lxc-start -n thecontainername
lxc-attach -n thecontainername
lxc-stop -n thecontainername
/var/lib/lxc/thecontainername
in there:
config <FILE>
@theodric
theodric / errata.txt
Last active June 14, 2025 17:39
errata
Disable nemo file manger "Elevated Privileges" warning box:
gsettings set org.nemo.preferences show-root-warning false
sudo gsettings set org.nemo.preferences show-root-warning false
make Firefox stop fucking redirectly compulsively to HTTPS
about:config
browser.fixup.fallback-to-https = false
dom.security.https_first = false
browser.urlbar.autoFill = false
@theodric
theodric / hkw.c
Created June 13, 2025 18:00
"Source to access the HKW PC - Funkuhr under Unix" - saved from a lost webpage: http://www.hello-penguin.com/software/hkw.c
/*
* This program shows how to access the HKW PC - Funkuhr.
* The receiver is also supported by xntpd.
* (c) 1996 by St. Traby, GPL
*/
#include <stdio.h>
#include <termios.h>
#include <sys/time.h>
#include <sys/types.h>