Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Nemo captn3m0

🎯
Focusing
View GitHub Profile
@captn3m0
captn3m0 / README.md
Created Jul 10, 2020
BSNL-data-prices
View README.md
INR Data Days Valid Cost in USD Cost in USD/day
19 2GB 1 0.2527 0.2527
56 1.5GB/day 14 0.7448 0.0532
78 Unlimited Data with speed reduced to 80 Kbps after 3 GB/day 8 1.0374 0.12967
97 U/L data with speed reduced to 80 kbps after 2.0GB/day 18 1.2901 0.07167
98 Unlimited Data speed reduced to 40 Kbps after 2GB/day 22 1.3034 0.05925
198 2GB/day 54 2.6334 0.04877
448 Unlimited DATA with speed reduced to 40 Kbps after 1GB/Day 84 5.9584
@captn3m0
captn3m0 / 00-README.md
Last active Jun 17, 2020
What does it take to change text from British to American english?
View 00-README.md

The patch below details the changes between JK Rowling's differences in the British and American editions.

The changes do not include changes in quotes:

  • British edition uses single quotes for dialog
  • while the American edition uses double quotes).

Since all quotes are ignored for this calculation, the diff might look incorrect at some places.

The emdash differences might be my fault - need to double check those

@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 / index.mkd
Created Jun 18, 2012
Browsing the web without Javascript and Images
View index.mkd

The only connection available to me right now is a limited 3g connection, which I try not to squander over huge images/media on the internet. My browser is chromium, on linux, and I tend to use Opera 11 (turbo mode) frequently as well.

Just as an experiment, I disabled images & javascript from my browser a few weeks back. What all have I got?

  • Faster pages (I use http://google.com/xhtml occasionally to search)
  • Broken websites (http://about.me/n3m0 which don't run on disabling javascript at all)
  • Broken navigation (http://parse.com due to images being used as links. And since chrome does not display <alt> tags properly, it breaks)
  • Reduced Functionality (Gmail refuses to load chat if images are disabled)

Other than the normal chrome content blocking, I also went ahead and installed ghostery addon. It blocks all advertising, and social media junk (no more sharing). However, it is only useful on the occasional sites I have enabled javascript on.

@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 / LICENSE.txt
Created Sep 28, 2011 — forked from p01/LICENSE.txt
Sudoku Solver in 140bytes
View LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mathieu 'p01' Henri <http://www.p01.org/releases/>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@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