This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[GENERAL] | |
# Enable or disable the script execution | |
Enabled: True | |
# SYSFS path for checking if the system is running on AC power | |
Sysfs_Power_Path: /sys/class/power_supply/AC*/online | |
# Auto reload config on changes | |
Autoreload: True | |
## Settings to apply while connected to Battery power | |
[BATTERY] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# pmtud.sh Efficient Pathway MTU Discovery Program | |
# Copyright (C) 2025 Ben Neilsen | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### Checks the last APT upgrade and notifies if it was too long ago | |
# requires: libnotify-bin | |
NOTIF_DURATION=15000 | |
UPGRADE_DAYS=7 | |
notify() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PORT=58309 | |
USER=ben | |
MOUNT_DIR=/mnt/plex | |
IDENTITY_FILE=~/.ssh/id_rsa_plex | |
CACHE_FILE=/tmp/optiplex-temp-ip.cache | |
IPS=$(cat $HOME/optiplex_ips) | |
TIMEOUT=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
// THIS ASSUMES ASCII-- not portable to EBCDIC systems | |
static int shiftletter(int c, int r); | |
int main(int argc, char *argv[]) | |
{ | |
if (argc <= 1) return 1; |