This file contains hidden or 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 python | |
# Author : Sankalp Khare | |
# Date : [2014-03-05 Wed] | |
def genFunc(): | |
"""This function generates 3 values (no loop, just to illustrate that its | |
execution freezes, then resumes)""" | |
yield ">> Yo Mihira!" |
This file contains hidden or 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
; <<>> DiG 9.8.1-P1 <<>> +trace microsoft.com | |
;; global options: +cmd | |
. 150227 IN NS i.root-servers.net. | |
. 150227 IN NS e.root-servers.net. | |
. 150227 IN NS h.root-servers.net. | |
. 150227 IN NS j.root-servers.net. | |
. 150227 IN NS a.root-servers.net. | |
. 150227 IN NS d.root-servers.net. | |
. 150227 IN NS g.root-servers.net. |
This file contains hidden or 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
#!/bin/bash | |
# checks if there are any changes... | |
NUMVIDZ=$(curl -s http://www.youtube.com/channel/UC_1vMv4Al_96QgYzkFjh99w/videos | grep "href=\"/watch?[^ ]*$") | |
while [[ 1 ]] | |
do | |
sleep 5m | |
NEWNUMVIDZ=$(curl -s http://www.youtube.com/channel/UC_1vMv4Al_96QgYzkFjh99w/videos | grep "href=\"/watch?[^ ]*$") |
This file contains hidden or 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/python | |
# Author: Sankalp Khare | |
# Email: [email protected] | |
import sys | |
import urllib2 | |
import re | |
import datetime | |
from optparse import OptionParser |
This file contains hidden or 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 python | |
# Author : Sankalp Khare | |
# Date : [2012-07-12 Thu] | |
# Pass the movie id (can be easily found on bookmyshow) to this script plus a | |
# date, and it will run in a loop, checking if bookings for the said movie are | |
# open on the given date. If yes, it will notify you of the same via | |
# notify-send |
NewerOlder