Skip to content

Instantly share code, notes, and snippets.

@captn3m0
captn3m0 / README.md
Created June 30, 2021 10:05
Grant Security Alert Permission on GitHub Org Script
  1. Set your Cookie header value in Line 3 of give-access.sh
  2. Set the team IDs that will have access on Line 24. You can add multiple teams.
  3. Edit the repos.txt file with one repository per line
  4. Make sure jq curl and pup are installed. (pup is available at https://github.com/EricChiang/pup)
  5. Run the script (./give-access.sh). A response code of 302 indicates the change was made successfully for that repo. Anything else is failure.

The only 3 cookies that you need to set are: __Host-user_session_same_site, user_session, _gh_sess

The values for user_session and _gh_sess are the same.

@captn3m0
captn3m0 / zulip.patch
Created March 31, 2021 09:53
zulip-5.6.0 PKGUILD patch
diff --git a/PKGBUILD b/PKGBUILD
index 0cce592..9c9fba6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@
pkgname=zulip-desktop-bin
_pkgname=zulip-desktop
-pkgver=5.4.3
+pkgver=5.6.0
@captn3m0
captn3m0 / gist:c7ccb025b874f22ebcc0f1356235d2ba
Last active July 16, 2021 08:19
list of cool missing indian datasets
Too many, so here's a list:
1. Indic books in public domain.
2. An updated shapefile of Indian PINcodes.
3. Updated version of the Indian PINs (the official one at data.gov.in is outdated)
4. MCA directors (DINs), company PANs in a graph dataset
5. SWIFT codes of all bank branches in India against their IFSC (I'm working on this!)
6. A public copy of the Vahan database that our government sold
7. List of all blocked domains in India along with the court order that blocked them
8. Database of all CCTVs in India along with latlong
@captn3m0
captn3m0 / whatsapp-web-and-kbd-tags.md
Last active December 13, 2020 03:57
A description of kbd tag in HTML and why WhatsApp Web should use them

The World Wide Web lets websites use semantic markup to tell exactly what they mean. This lets in both the computer and the user in on the secret.

For eg in HTML you can say:

Did the dog <em>really</em> eat your homework?

where the <em>really</em> part tells your browser that the “really” is emphasized. Your browser (Chrome/Firefox/..) will then showcase that emphasis as italics.

@captn3m0
captn3m0 / planetebooks-kidnapped.xml
Created October 25, 2020 13:48
metadata differences
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
<meta name="generator" content="Adobe InDesign 12.1" />
<meta name="cover" content="x1.png" />
<meta property="ibooks:specified-fonts">true</meta>
<dc:title>Kidnapped</dc:title>
<dc:date>2018-02-15T13:05:26Z</dc:date>
<dc:language>en-US</dc:language>
<meta property="dcterms:modified">2018-02-15T13:05:26Z</meta>
<dc:identifier id="bookid">urn:uuid:29d919dd-24f5-4384-be78-b447c9dc299b</dc:identifier>
</metadata>
@captn3m0
captn3m0 / 01-domains.md
Last active April 24, 2024 07:59
List of all Government of India domains

gov.in (7259)

  • aavin.tn.gov.in
  • abnhpm.gov.in
  • agnii.gov.in
  • ap.gov.in
  • aponline.gov.in
  • appolice.gov.in
  • attendance.gov.in
  • cgg.gov.in
  • eccs.gov.in
@captn3m0
captn3m0 / README.md
Created July 10, 2020 22:07
BSNL-data-prices
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 June 17, 2020 12:55
What does it take to change text from British to American english?

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