Skip to content

Instantly share code, notes, and snippets.

@vicentebolea
Last active November 28, 2018 07:31
Show Gist options
  • Select an option

  • Save vicentebolea/72ea90fb3e0a88c97e51528efcac19c5 to your computer and use it in GitHub Desktop.

Select an option

Save vicentebolea/72ea90fb3e0a88c97e51528efcac19c5 to your computer and use it in GitHub Desktop.
NOTIFIES TO PUSHBULLET FROM TERMINAL, sends a message to pushbullet, useful to put after a command that takes long time, add $PUSHBULLET_TOKEN to your ~/.bashrc
#!/bin/bash
curl -s -u "$PUSHBULLET_TOKEN": \
-X POST https://api.pushbullet.com/v2/pushes \
--header 'Content-Type: application/json' \
--data-binary '{"type": "note", "title": "'"`hostname`"'", "body": "'"DONE"'"}' >/dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment