commit ebd97f90873f71b4849f65cc427e6d3cbaaf26eb Author: Chris Roberts <chris.roberts@learningunix.net> Date: Mon, 1 Jun 2026 07:48:49 -0500 added readme and notify.sh Diffstat:
| A | README.md | | | 10 | ++++++++++ |
| A | notify.sh | | | 8 | ++++++++ |
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md @@ -0,0 +1,10 @@ +# Scripts +This is just a handy place to put shell scripts that I write. + + + +## notify.sh +A script that wraps the pushover API for sending notifications. +[Here](https://learningunix.net/posts/dead-simple-notifications-with-pushover/) +is an article on example usage. It relies on the user's pushover user and api key +to be saved as environment variables. diff --git a/notify.sh b/notify.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +/usr/bin/curl -s \ + --form-string "token=$PUSHOVER_TOKEN" \ + --form-string "user=$PUSHOVER_USER" \ + --form-string "title=$1" \ + --form-string "message=$2" \ + https://api.pushover.net/1/messages.json