This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
date_of_show=29 | |
theater="PEPSI IMAX, Forum Mall, Koramangala" | |
movie_name="avengers-infinity-war-3d" | |
url=https://in.bookmyshow.com/buytickets/$movie_name-bengaluru/movie-bang-ET00074502-MT/201804$date_of_show\#\!seatlayout | |
if curl $url | grep -q -i "$theater"; then | |
open $url | |
osascript -e 'tell app "System Events" to display dialog "Ticket is now available!"' | |
crontab -l | grep -v 'bookmyshow.sh' | crontab - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download java with Curl | |
## For a link like: | |
http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz | |
cd /opt | |
jdk_version_major="8" | |
jdk_version_update="151" | |
jdk_version_build="12" | |
jdk_version="${jdk_version_major}u${jdk_version_update}" | |
jdk_full_version="${jdk_version}-b${jdk_version_build}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am ethicalaakash on github. | |
* I am aakashsinghal (https://keybase.io/aakashsinghal) on keybase. | |
* I have a public key whose fingerprint is C313 6C45 B7EA 3ED9 B9B7 77C5 9CB1 298E 40E7 A49C | |
To claim this, I am signing this object: |