Compare commits

..

No commits in common. "d2596eb1f970c497e5d59e7e609e5c68a37618e9" and "5e9040da049eefb4e626d78acb6e87effb01e8b3" have entirely different histories.

2 changed files with 8 additions and 6 deletions

View File

@ -5,6 +5,7 @@
# MUST RUN AS ROOT (best in a cronjob) # MUST RUN AS ROOT (best in a cronjob)
# #
token="https://heavy.uber.space/gotify/message?token=Apw3EgT7BpQZ0rs"
MYTEMPDIR="$(mktemp -d)" MYTEMPDIR="$(mktemp -d)"
MYAPT="$MYTEMPDIR/apt-update.txt" MYAPT="$MYTEMPDIR/apt-update.txt"
trap 'rm -rf -- "$MYDIR"' EXIT trap 'rm -rf -- "$MYDIR"' EXIT
@ -19,6 +20,6 @@ else
LST="$(aptitude -F %p search '~U')" LST="$(aptitude -F %p search '~U')"
LST="$(echo $LST | tr '\n' ' ')" LST="$(echo $LST | tr '\n' ' ')"
text="$SUMMARY ($(uname -n)):\n $LST" text="$SUMMARY ($(uname -n)):\n $LST"
curl -H "Tags: $(hostname)" -H "Title: Debian Update Check" -H "Icon: https://www.debian.org/logos/openlogo-nd-75.png" -d "Debian update check: $text" https://ntfy.coolify.gaiselmann.de/hetzner curl -H "Content-Type: application/json" -X POST $token -d "{\"title\":\"Debian Update Checker\",\"message\":\"$text\"}"
fi fi

View File

@ -65,6 +65,10 @@ alias ips='ip --brief -c address'
alias sol-light='set-scheme.sh solarized.light' alias sol-light='set-scheme.sh solarized.light'
alias sol-dark='set-scheme.sh solarized.dark' alias sol-dark='set-scheme.sh solarized.dark'
{{ if eq .bash.prompt.category "Uberspace" -}}
alias quota='quota -gls'
{{ end -}}
# if tldr++ is installed, use it the static way # if tldr++ is installed, use it the static way
if tldr --version &> /dev/null if tldr --version &> /dev/null
then then
@ -87,12 +91,9 @@ if [ -x /usr/bin/fdfind ]; then
alias fd='fdfind' alias fd='fdfind'
fi fi
# docker aliases if docker is available # docker ps if docker is available
if [ -x /usr/bin/docker ]; then if [ -x /usr/bin/docker ]; then
alias dps='docker ps --format "table {{.Image}}\t{{.Status}}\t{{.Names}}\t{{.CreatedAt}}"' alias dockps='docker ps --format "table {{ `{{.Image}}` }}\t{{ `{{.Status}}` }}\t{{ `{{.Names}}` }}\t{{ `{{.CreatedAt}}` }}"'
alias dcu='docker compose up -d '
alias dcd='docker compose down '
alias dcl='docker logs -f '
fi fi
# use neovim if available # use neovim if available
if [ -x /usr/bin/nvim ]; then if [ -x /usr/bin/nvim ]; then