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)
#
token="https://heavy.uber.space/gotify/message?token=Apw3EgT7BpQZ0rs"
MYTEMPDIR="$(mktemp -d)"
MYAPT="$MYTEMPDIR/apt-update.txt"
trap 'rm -rf -- "$MYDIR"' EXIT
@ -19,6 +20,6 @@ else
LST="$(aptitude -F %p search '~U')"
LST="$(echo $LST | tr '\n' ' ')"
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

View File

@ -65,6 +65,10 @@ alias ips='ip --brief -c address'
alias sol-light='set-scheme.sh solarized.light'
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 --version &> /dev/null
then
@ -87,12 +91,9 @@ if [ -x /usr/bin/fdfind ]; then
alias fd='fdfind'
fi
# docker aliases if docker is available
# docker ps if docker is available
if [ -x /usr/bin/docker ]; then
alias dps='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 '
alias dockps='docker ps --format "table {{ `{{.Image}}` }}\t{{ `{{.Status}}` }}\t{{ `{{.Names}}` }}\t{{ `{{.CreatedAt}}` }}"'
fi
# use neovim if available
if [ -x /usr/bin/nvim ]; then