Skip to content

Instantly share code, notes, and snippets.

@captn3m0
captn3m0 / 01-README.md
Created August 14, 2017 08:09
Sites Blocked in the archive.org debacle

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.

@captn3m0
captn3m0 / README.md
Created December 26, 2017 04:03
Zomato HTTP/1 and HTTP/2 difference

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 / README.md
Created December 26, 2017 17:24
Docker Daemon CA setup
@captn3m0
captn3m0 / AS24560
Created March 26, 2019 16:02
CloudFlare DNS mis-resolving archive.is
 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 / aws-missing-in-mumbai.txt
Last active September 25, 2019 07:06
List of AWS services missing in Mumbai Region
Alexa for Business
Application Discovery Service
AppStream 2.0
Backup
Chime
Cloud Directory
Cloud9
CloudHSM Classic
CloudSearch
CodeStar
@captn3m0
captn3m0 / hackerearth.py
Created October 29, 2019 19:34
HackerEarth API timeout (v3)
#! -*- 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 / CT.json
Created November 4, 2019 19:47
Sample BookMyShow Event 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 / README.md
Last active December 16, 2019 19:57
yubikey swap

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 / 01-README.md
Created March 3, 2020 13:09
SBI Branch Locator Automate

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
Created March 6, 2020 10:23
Yes Bank affected Co-op Banks