Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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 / 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 / README.md
Created December 26, 2017 17:24
Docker Daemon CA setup
@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 / 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.

%merlin.mbs apsrev4-1.bst 2010-07-25 4.21a (PWD, AO, DPC) hacked
%Control: key (0)
%Control: author (8) initials jnrlst
%Control: editor formatted (1) identically to author
%Control: production of article title (-1) disabled
%Control: page (0) single
%Control: year (1) truncated
%Control: production of eprint (0) enabled
\begin{thebibliography}{16}%
\makeatletter
@captn3m0
captn3m0 / reading197.md
Last active November 29, 2017 22:32
Reading Books from Every Country

Source: https://en-gb.facebook.com/reading197countries/posts/1791872417733369

Will You Be Willing to Provide Me A Helping Hand?

Hi,

I am Aisha Arif Esbhani, a 13 year old based in Karachi, Pakistan.

After discovering that most of the books I read as a preschooler, as an adolescent, were by a British or North American author, I wanted to explore the writers of the African continent and the tiny islands in Asia. I wanted to explore the nations of which I had never read any books. I wanted to explore stories that had been translated into English. >