~kolletzki/scripts

A collection of useful scripts
Trim content in discord notifications
Fix json escaping in discord-notify
Add systemd-unit-notify

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~kolletzki/scripts
read/write
git@git.sr.ht:~kolletzki/scripts

You can also use your local clone with git send-email.

#scripts

This is a collection of more or less small scripts I wrote to automate things.

#import-bc

Imports music from a downloaded bandcamp zip file into ~/Music// and into the default cmus library.

Usage:

$ ./import-bc.sh ./Artist\ -\ Album.zip

#discord-notify

Sends a discord notification via Discord Webhooks. The system hostname is used as bot username.

Usage:

$ ./discord-notify.sh "Hello, World!"

#systemd-unit-notify

Notifies of a systemd unit failure including the last journal entries via Discord Webhooks. Basically discord-notify extended with some systemd stuff.

Usage:

$ ./systemd-unit-notify.sh my-unit