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 | |
#~/.bashrc: executed by bash(1) for non-login shells. | |
# kevin gallagher (@ageis) <[email protected]> | |
export MYUID=$(id -u) | |
export USER="$(id -un)" | |
if [[ "$TILIX_ID" ]] || [[ "$VTE_VERSION" ]]; then | |
source /etc/profile.d/vte.sh | |
fi |
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
# NOT fully complete with all the desired features but it does work | |
# Suggested usage - place in the system scheduler and run every few minutes | |
# Set root domain here | |
:local zone "your.internal.domain.com"; | |
:local ttl "00:00:10" | |
:local staticTtl "00:00:30" | |
# TODO : add "nodns" check in static lease comment |
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
function feast() { | |
tmp="`mktemp`" | |
export date="`date +"%Y-%m-%d"`" | |
timeout 1 curl https://www.missalemeum.com/en/api/v3/date/$date 2> /dev/null > $tmp | |
export title="`cat $tmp | jq -r .[].info.title`" | |
export tempora="`cat $tmp | jq -r .[].info.tempora`" | |
export rank="`cat $tmp | jq -r .[].info.rank`" |
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 | |
# Reports on all filesystems declared in fstab, and if they are mounted or not - to detect unmounted filesystems | |
# NOTE: exporter info to stdout, human readable info to stderr | |
# in normal operation, pipe stdout to the datafile and stderr to null or syslog | |
# TODO : add a second error metric so that errors in this script are reported | |
tmpfile="$(mktemp)" |
OlderNewer