Skip to content

Instantly share code, notes, and snippets.

@molecyll
molecyll / blackboardchecker.sh
Last active August 29, 2015 14:07 — forked from pepijn/ticketswap.sh
blackboard grade checker
#!/bin/bash
HOST=http://blackboard.uva.nl/webapps/portal/frameset.jsp
COURSE="$1" #go to "course-exam information" and select everything after ../frameset.jsp
while [ 1 ]:
do
count =`curl -s "$HOST$COURSE" | grep -c "uitslag"
if [ "$count" != "0" ]
then
@molecyll
molecyll / ticketswap.sh
Last active August 29, 2015 14:07 — forked from pepijn/ticketswap.sh
#!/bin/bash
set -x
HOST=https://www.ticketswap.nl
FISSA="$1" # Example: /53148/de-beste-singer-songwriter-van-nederland
while :
do
date
URI=$(curl -s "$HOST$FISSA" \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36' \