Just a collection of random useful code snippets
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jan Danielzick df66ad4d42 clarify documentation 1 month ago
external_control fixed a typo and formatting 8 months ago
manual_control maybe, this issue didn't exist after all 2 years ago
shellutils gave sheelutils a more appropriate name and added which 8 months ago
LICENSE Initial commit 2 years ago
LookUpTable.java clarify documentation 1 month ago
README.md Update 'README.md' 1 year ago
disable_laptop_lid.sh copied this from my laptop's /etc/rc.local 2 years ago
goip_dyndns_updater.sh added timestamp to the default Discord message 1 year ago
sensors.py added some comments so Panini will always know what is going on 2 years ago
ultimate.bashrc added path to export 2 years ago



Just a collection of random useful code snippets (that can be used as programs on their own because why not)

BTW, come to https://discord.gg/uS7kGSH if you’re interested in a technology / computer / retro computing focused Dircord server.

Descriptions for each code snippet


Disables laptop lid state detection in Linux by unregistering it from the driver.

Dependencies: Linux kernel, bash, sysfs filesystem mounted on /sys


Can be used to get the state of a hardware sensor connected to the computer.

Dependencies: lm-sensors, python3


Arduino sketch that allows direct manual control of the pins over the serial interface. This is the older, fancier version which is only capable of controlling outputs. It has some hardcoded values that may need to be adjusted.


A less fancy but generally improved rewritten version of the manual control Arduino sketch that is more feature-packed and better suited for interaction with programs while still being usable for humans.


The .bashrc I have in the user home skel of my server and home folders everywhere. Basically sets a nice prompt and some aliases. Also makes Nano the default editor because fuck vi.


A basic DynDNS updater script for GoIP that can be used if you have a router made by assholes that either can’t document their shit (Hello Zyxel) or won’t allow you to use your own DynDNS provider (Looking at you, TP-Link).