Compare commits

...

2 Commits

Author SHA1 Message Date
heavy
d2596eb1f9 (docker): Add docker aliases. 2025-11-23 09:42:42 +00:00
heavy
70eddcda69 (ntfy): Swith to ntfy in update check script. 2025-11-23 09:42:42 +00:00
2 changed files with 6 additions and 8 deletions

View File

@ -5,7 +5,6 @@
# 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
@ -20,6 +19,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 "Content-Type: application/json" -X POST $token -d "{\"title\":\"Debian Update Checker\",\"message\":\"$text\"}" 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
fi fi

View File

@ -65,10 +65,6 @@ 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
@ -91,9 +87,12 @@ if [ -x /usr/bin/fdfind ]; then
alias fd='fdfind' alias fd='fdfind'
fi fi
# docker ps if docker is available # docker aliases if docker is available
if [ -x /usr/bin/docker ]; then if [ -x /usr/bin/docker ]; then
alias dockps='docker ps --format "table {{ `{{.Image}}` }}\t{{ `{{.Status}}` }}\t{{ `{{.Names}}` }}\t{{ `{{.CreatedAt}}` }}"' 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 '
fi fi
# use neovim if available # use neovim if available
if [ -x /usr/bin/nvim ]; then if [ -x /usr/bin/nvim ]; then