Skip to content

Instantly share code, notes, and snippets.

View captn3m0's full-sized avatar
🇩🇪
In Berlin

Nemo captn3m0

🇩🇪
In Berlin
View GitHub Profile
@captn3m0
captn3m0 / apple.txt
Created November 8, 2022 10:50
list of apple releases
macOS Catalina 10.15.3, Security Update 2020-001 Mojave, Security Update 2020-001 High Sierra
macOS Catalina 10.15.3, Security Update 2020-001 Mojave, Security Update 2020-001 High Sierra
watchOS 6.1.2
watchOS 6.1.2
iOS 13.3.1 and iPadOS 13.3.1
iOS 13.3.1 and iPadOS 13.3.1
iOS 13.3.1 and iPadOS 13.3.1
iOS 13.3.1 and iPadOS 13.3.1
iOS 12.4.5
iOS 12.4.5
@captn3m0
captn3m0 / 01.md
Last active October 17, 2022 15:58
Motorala Supproted Devices

moto g pro

  • Currently receiving monthly security updates.
  • Device launched on June, 2020
  • Security updates will stop on June, 2023

moto g stylus 5g (2022)

  • Currently receiving regular security updates.
  • Device launched on April, 2022
  • Security updates will stop on April, 2025
  • Launched On: Android 12
@captn3m0
captn3m0 / .gitignore
Last active April 8, 2022 08:48
pupeteer with log
node_modules
@captn3m0
captn3m0 / 01-README.md
Created July 15, 2021 20:23
ikea-check-script

Run using something like:

while sleep 300; do ikeacheck.sh;done

to run a check every 5 minutes. The script notifies you via notify-send. and puts a timestamp in ~/tmp/ikea.txt.

The curl command is stripped for reference here. To get the exact command, fill the PIN code form at the bottom of your shopping bag, open network tools, and capture the request made to /clickandcollect/in/receive/. Right click and "Copy-to-curl" on that request.

Once this succeeds, your account is added to the list, and if you open your browser sesssion again, you should'nt get the 818 error.

@captn3m0
captn3m0 / video.txt
Last active July 12, 2021 06:25
Video Speed Bookmarklet
The first reduces speed to 0.75x of current:
javascript:(function()%7BArray.from(document.getElementsByTagName('video')).forEach(vid%20%3D%3E%20vid.playbackRate%20*%3D0.75)%3B%7D())
The second increases speed to 1.25x of current:
javascript:(function()%7BArray.from(document.getElementsByTagName('video')).forEach(vid%20%3D%3E%20vid.playbackRate%20*%3D%201.25)%3B%7D())
You can press multiple times to get where you want.
@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>