Compare commits
No commits in common. 'bb662144a9d47b2e8c2da081fdc6c3dfa000ef35' and '9803c56bbc61636cbd7185794c6dfeea5f087b61' have entirely different histories.
bb662144a9
...
9803c56bbc
3 changed files with 1 additions and 33 deletions
@ -1,18 +0,0 @@
@@ -1,18 +0,0 @@
|
||||
#!/bin/bash |
||||
|
||||
if [ $# -eq 0 ]; then |
||||
echo "Usage: ./pushover <message> [title]" |
||||
exit |
||||
fi |
||||
|
||||
MESSAGE=$1 |
||||
TITLE=$2 |
||||
|
||||
if [ $# -lt 2 ]; then |
||||
TITLE="`whoami`@${HOSTNAME}" |
||||
fi |
||||
|
||||
APP_TOKEN="<YOUR APP_TOKEN>" |
||||
USER_TOKEN="<YOUR USER_TOKEN>" |
||||
|
||||
wget https://api.pushover.net/1/messages.json --post-data="token=$APP_TOKEN&user=$USER_TOKEN&message=$MESSAGE&title=$TITLE" -qO- > /dev/null 2>&1 & |
@ -1,8 +0,0 @@
@@ -1,8 +0,0 @@
|
||||
#!/bin/bash |
||||
|
||||
USERNAME='<EMAIL ADRESS>' |
||||
PASSWORD='<Your password>' |
||||
START='Amsterdam' |
||||
EIND='Utrecht' |
||||
|
||||
curl "http://$USERNAME:$PASSWORD@webservices.ns.nl/ns-api-treinplanner?fromStation=$START\&toStation=$EIND\&departure=true" |
Loading…
Reference in new issue