Just a collection of random useful code snippets
 
 
 
 
Go to file
Jan Danielzick 5d4229307c added timestamp to the default Discord message 2021-08-14 00:47:29 +02:00
external_control idk wtf I did or why it works but I fixed a reliability issue (also removed a debugging print statement) 2021-05-10 07:48:56 +02:00
manual_control maybe, this issue didn't exist after all 2021-05-04 08:01:21 +02:00
LICENSE Initial commit 2021-04-28 08:01:08 +02:00
README.md Update 'README.md' 2021-08-13 14:05:43 +02:00
disable_laptop_lid.sh copied this from my laptop's /etc/rc.local 2021-04-28 08:05:28 +02:00
goip_dyndns_updater.sh added timestamp to the default Discord message 2021-08-14 00:47:29 +02:00
sensors.py added some comments so Panini will always know what is going on 2021-05-02 07:53:50 +02:00
ultimate.bashrc added path to export 2021-06-16 01:55:33 +02:00

README.md

RandomUsefulStuff

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 youre interested in a technology / computer / retro computing focused Dircord server.

Descriptions for each code snippet

disable_laptop_lid.sh

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

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

sensors.py

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

Dependencies: lm-sensors, python3

manual_control

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.

external_control

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.

ultimate.bashrc

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.

goip_dyndns_updater.sh

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