Skip to content

Instantly share code, notes, and snippets.

@captn3m0
captn3m0 / README.md
Created Mar 6, 2020
Yes Bank affected Co-op Banks
View README.md
@captn3m0
captn3m0 / 01-README.md
Created Mar 3, 2020
SBI Branch Locator Automate
View 01-README.md

Create a file called ids.txt Put in all branch IDs you can find for SBI. Run scrape.sh to get data from the SBI website.

You might have to update the cookies.

@captn3m0
captn3m0 / README.md
Last active Dec 16, 2019
yubikey swap
View README.md

Instructions to self to follow if you need to use the second YUBIKEY. THis is required till https://dev.gnupg.org/T2291 is resolved

sudo killall -9 ssh-agent gpg-agent
cd .gnupg/private-keys-v1.d
rm A7E4CAC527963BB0603F6E853738D2B50DCDCE91.key
rm C996662E616AD37885CF87BC1EE05AA1B0766081.key
rm DE6B3E9E1A3FCE768E6837A62E9F9A0B55ECA262.key
@captn3m0
captn3m0 / CT.json
Created Nov 4, 2019
Sample BookMyShow Event JSON
View CT.json
{
"EventCode": "ET00114380",
"ImageCode": "vidya-vox-mad-dreams-tour-et00114380-2019-10-11-t-15-45-47",
"EventTitle": "Vidya Vox - Mad Dreams Tour",
"EventType": "CT",
"Genre": "Music Shows",
"GenreArray": [
"Music Shows"
],
"Language": "Hindi/English",
@captn3m0
captn3m0 / hackerearth.py
Created Oct 29, 2019
HackerEarth API timeout (v3)
View hackerearth.py
#! -*- coding: utf-8 -*-
import requests
# constants
RUN_URL = u'https://api.hackerearth.com/v3/code/run/'
CLIENT_SECRET = '54ba59feaff5eb3bc7541937035dd44f8e629065'
source = "print 'Hello World'"
@captn3m0
captn3m0 / aws-missing-in-mumbai.txt
Last active Sep 25, 2019
List of AWS services missing in Mumbai Region
View aws-missing-in-mumbai.txt
Alexa for Business
Application Discovery Service
AppStream 2.0
Backup
Chime
Cloud Directory
Cloud9
CloudHSM Classic
CloudSearch
CodeStar
@captn3m0
captn3m0 / AS24560
Created Mar 26, 2019
CloudFlare DNS mis-resolving archive.is
View AS24560
 nslookup archive.is 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: archive.is
Address: 178.32.222.191
 nslookup archive.is 9.9.9.9
Server: 9.9.9.9
@captn3m0
captn3m0 / README.md
Created Dec 26, 2017
Docker Daemon CA setup
View README.md
@captn3m0
captn3m0 / README.md
Created Dec 26, 2017
Zomato HTTP/1 and HTTP/2 difference
View README.md

The zomato website gives timeouts over HTTP/1, but connects fine over HTTP/2

$ curl https://www.zomato.com -I && curl https://www.zomato.com -I  --http1.0 --connect-timeout 1 --max-time 1

HTTP/2 403 
server: AkamaiGHost
mime-version: 1.0
content-type: text/html
content-length: 264
@captn3m0
captn3m0 / 01-README.md
Created Aug 14, 2017
Sites Blocked in the archive.org debacle
View 01-README.md

This is a extracted list of all the sites that were blocked in the recent archive.org debacle. Source is the court order PDF at the medianama article.

archive.org is on line number 908. Total 2642 domains, 1316 of them on HTTPS.

Will be running some stats on the URLs to check for block soon.