Skip to content

Instantly share code, notes, and snippets.

View vipulgupta2048's full-sized avatar
🐣
Working from home

Vipul Gupta vipulgupta2048

🐣
Working from home
View GitHub Profile
@vipulgupta2048
vipulgupta2048 / avengers.py
Last active April 20, 2019 18:24
Get notified about tickets @ BookMyShow, whatever it takes.
# Owner - Vipul Gupta (@vipulgupta2048)
# Description - A infinite loop trapping Bookmyshow to let them know that you have come to bargain for tickets. Well, only until they block you.
# Real Description - Infinite loop requesting BMS every 3 minutes for availablity for Movie Tickets.
# Pre-requistes - sudo apt install beep
# - pip install beautifulsoup4 requests
# - sudo modprobe pcspkr
# Language - Python3
import requests
from lxml import html
@weldpua2008
weldpua2008 / resolve_url_from_jenkins.py
Created January 15, 2017 09:21
Get an artifact url from Jenkins
#!/usr/bin/env python
# -*- coding: utf-8 -*-
##############################################################
# Get an artifact url
#
##############################################################
# author: Valeriy Solovyov <weldpua2008@gmail.com>
# version 0.1 <3.15.2016>
# - initial
##############################################################
@TooTallNate
TooTallNate / bbs.js
Created March 16, 2012 22:42
Running a node.js REPL over `curl`
/**
* Requires node v0.7.7 or greater.
*
* To connect: $ curl -sSNT. localhost:8000
*/
var http = require('http')
, repl = require('repl')
, buf0 = new Buffer([0])