Skip to content

Instantly share code, notes, and snippets.

@cmaster11
Created November 18, 2020 06:48
Show Gist options
  • Save cmaster11/ae9aaab85740ece49c7d1249b88a6822 to your computer and use it in GitHub Desktop.
Save cmaster11/ae9aaab85740ece49c7d1249b88a6822 to your computer and use it in GitHub Desktop.
Markdium-Easy notifications from Bash scripts!
set -e
# Define the n17 function
n17() { sh -c "$(wget -qO - "https://n17.io/sh")" -- -k "N17_RAW_API_KEY" "$@"; }
# This function will be invoked on script error.
n17TrapErr() {
n17 \
-t "Script execution error!" \
-c "$(cat <
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment