Skip to content

Instantly share code, notes, and snippets.

View theodric's full-sized avatar
🥔
mmm potatoes

spooky þēodrīċ theodric

🥔
mmm potatoes
View GitHub Profile
@theodric
theodric / tpled.txt
Last active October 23, 2025 20:38
thinkpad LED control service/script
twinkpad:/sys/devices/platform/thinkpad_acpi # cat /etc/systemd/system/tpled.service
[Unit]
Description=Custom LED Trigger Setup
After=multi-user.target
[Service]
Type=oneshot
ExecStart=/root/bin/tpled.sh
RemainAfterExit=yes
@theodric
theodric / DPS-1200FB_infodump.txt
Last active October 14, 2025 21:28
HP Proliant Common Slot PSU DPS-1200FB infodump
HP Proliant Common Slot PSU range
Widely regarded as insanely high quality
Of special note from the range: 1200W version DPS-1200FB
P/N: 441830-001, 438202-001, 440785-001, HSTNS-PD11
1200W on 230VAC input
900W on 120VAC input
12VDC 100A output
@theodric
theodric / tpscroll.sh
Created September 4, 2025 03:34
enable trackpoint scrolling on C13 Yoga in Linux
#!/bin/bash
# Enables normal trackpoint scrolling on the ex-chromebook
# this goes into .config/autostart-scripts (make dir if required) and Plasma will automagically turn it into a .desktop in .config/autostart/
xinput set-prop "TPPS/2 Elan TrackPoint" "libinput Scroll Method Enabled" 0 0 1
@theodric
theodric / 50-org.freedesktop.NetworkManager.rules
Created August 28, 2025 19:01
Fix for inability to modify network connections as unpriv user in openSUSE TW 2025.xx
# /usr/share/polkit-1/rules.d/50-org.freedesktop.NetworkManager.rules
[Let fuckassuser modify system settings for network]
Identity=unix-user:fuckassuser
Action=org.freedesktop.NetworkManager.*
ResultAny=yes
ResultInactive=yes
ResultActive=ye
@theodric
theodric / dotXCompose
Last active July 22, 2025 13:12
~/.XCompose shortcut addenda for improved ease of shitposting
<Multi_key> <d> <e> <g>: "°"
<Multi_key> <t> <i> <c> <k>: "✔"
<Multi_key> <p> <l> <m> <n>: "±"
<Multi_key> <r> <r> <r>: "®"
<Multi_key> <c> <c> <c>: "©"
@theodric
theodric / hot-pink-cursor-bashrc
Created July 17, 2025 21:49
Hot pink cursor everywhere hot pink cursors are supported
# set cursor color to bright pink in terminals that support OSC 12
set_cursor_color() {
# only do this if we're in an interactive tty and not a dumb term
[[ $- == *i* && $TERM != "dumb" ]] || return
# OSC 12 escape
printf '\e]12;#ff00ff\a'
}
# detect if we're inside tmux
if [[ -n $TMUX ]]; then
@theodric
theodric / Mikrotik-router-dark-mode.js
Created July 14, 2025 15:06
ViolentMonkey implementation of dark mode for Mikrotik web UI
// ==UserScript==
// @name Mikrotik Router Dark Mode
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Invert colors for Mikrotik router UI to create a dark mode effect
// @match http://10.10.11.254/webfig/*
// @match https://10.10.11.254/webfig/*
// @match http://gw/webfig/*
// @match http://gw.satcom/webfig/*
// @match http://gw.satcom.rowls/webfig/*
@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>
@theodric
theodric / errata.txt
Last active October 26, 2025 21:26
errata
Nice Firefox themes:
Cyberpunk Umbra:
https://addons.mozilla.org/en-US/firefox/addon/cyberpunk-umbra/
DoomEmacsOutrunElectric
https://addons.mozilla.org/en-US/firefox/addon/doomemacsoutrunelectric/
Abstract Neon Robots
https://addons.mozilla.org/en-US/firefox/addon/abstract-neon-robots
@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>