Skip to content

Instantly share code, notes, and snippets.

@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 / hsl-jekyll.rb
Created February 1, 2024 07:04
A HSL to Hex Jekyll Filter
require 'color'
module Jekyll
module HSLToHexFilter
def hsl_to_hex(input)
# Extract HSL components from the input string
hsl_match = input.match(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/)
hue, saturation, lightness = hsl_match.captures.map(&:to_f)
# Create HSL object
@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 / _headers
Created November 22, 2022 05:23
endoflife.date sample rendered files
/*
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
# Generated using https://www.permissionspolicy.com/
Permissions-Policy: accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=() interest-cohort=()
X-Content-Type-Options: nosniff
Referrer-Policy: strict-origin
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
/api*
Access-Control-Allow-Origin: *
@captn3m0
captn3m0 / jekyll-sqlite.rb
Created May 8, 2023 07:23
Jekyll Sqlite Plugin
require 'sqlite3'
module SQLiteGenerator
class Generator < Jekyll::Generator
priority :high
def generate(site)
site.config['sqlite'].each do |name, config|
require 'pp'
SQLite3::Database.new config['file'] do |db|
Jekyll.logger.info "Jekyll SQLite:", "Starting to load #{name}"
@captn3m0
captn3m0 / PKGBUILD.diff
Created May 7, 2023 10:13
openscap-1.3.7 clean install
diff --git a/PKGBUILD b/PKGBUILD
index 2786452..150320b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
# Maintainer: Quey-Liang Kao <s101062801@m101.nthu.edu.tw>
pkgname=openscap
-pkgver=1.3.6
+pkgver=1.3.7
@captn3m0
captn3m0 / 01-README.md
Created November 22, 2022 06:55
AWS Hyderabad

List of missing services on AWS Hyderbad region (at launch) is in missing-services.txt

Announcement text:


Hello Everyone,

We are excited to announce that the AWS Asia Pacific (Hyderabad) Region is now available.

@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 / 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.