Skip to content

Instantly share code, notes, and snippets.

@augbog
Created June 8, 2017 19:12
Show Gist options
  • Select an option

  • Save augbog/28bbe8a35fd72b55748b56f150f6a1f7 to your computer and use it in GitHub Desktop.

Select an option

Save augbog/28bbe8a35fd72b55748b56f150f6a1f7 to your computer and use it in GitHub Desktop.

Revisions

  1. augbog renamed this gist Jun 8, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. augbog created this gist Jun 8, 2017.
    14 changes: 14 additions & 0 deletions .pax-tickets.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    #!/bin/bash

    echo 'Running Pax Tickets script...'
    while [ 1 ];
    do
    count=`curl -H 'Cache-Control: no-cache' -s "http://west.paxsite.com/registration?$[ (RANDOM % 18747214) + 1 ]" | grep -c "showclix.com"`
    echo "http://west.paxsite.com/registration?$[ (RANDOM % 18747214) + 1 ]"
    if [ "$count" != "0" ]
    then
    echo "West PAX Site updated!"
    osascript -e 'display notification "PAX tickets updated!" with title "PAX Tickets"'
    fi
    sleep $[ (RANDOM % 2) + 1 ]
    done