Skip to content

Instantly share code, notes, and snippets.

View HemanthJabalpuri's full-sized avatar

Hemanth HemanthJabalpuri

View GitHub Profile
@HemanthJabalpuri
HemanthJabalpuri / GetDomains.js
Created July 29, 2024 16:49
This JavaScript snippet is used to show all the domains a website is using. This is helpful when maintaining a proxy server with whitelisting domains. All the code is taken from ChatGPT. You can add this as snippet in Chrome -> Developer Tools -> Sources (tab) -> Snippets (sub tab)
(function() {
let domains = new Set();
// Collect all resource URLs from the performance API
performance.getEntriesByType("resource").forEach((entry) => {
let url = new URL(entry.name);
domains.add(url.hostname);
});
// Helper function to add a URL's hostname to the set
diff --git a/arch/arm64/configs/vendor/bengal-perf_defconfig b/arch/arm64/configs/vendor/bengal-perf_defconfig
index 79d8332..8108504 100644
--- a/arch/arm64/configs/vendor/bengal-perf_defconfig
+++ b/arch/arm64/configs/vendor/bengal-perf_defconfig
@@ -93,9 +93,10 @@ CONFIG_CRYPTO_AES_ARM64_NEON_BLK=y
CONFIG_PANIC_ON_REFCOUNT_ERROR=y
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
+CONFIG_MODULE_UNLOAD=y
CONFIG_MODVERSIONS=y
From beaa41efdc24b53b642a31cb3f4fe11313237b8f Mon Sep 17 00:00:00 2001
From: der_akinator <[email protected]>
Date: Thu, 23 Nov 2023 05:45:16 +0000
Subject: [PATCH] load modules from vendor_boot ramdisk in TWRP instead of depending on init
Use 'TW_LOAD_VENDOR_BOOT_MODULES := true'
to use TWRP module loader code for vendor_boot module loading.
Some devices need this for successful kernel module loading.
@HemanthJabalpuri
HemanthJabalpuri / bloat.sh
Created November 20, 2023 05:59
Shell script to debloat using UAD json
#!/system/bin/sh
ADBTMP=/data/local/tmp
AAPT=aapt_arm_pie
terminaltty=$(tty)
tmpd="$PWD"; [ "$PWD" = "/" ] && tmpd=""
case "$0" in
/*) cdir="$0";;
*) cdir="$tmpd/${0#./}";;
@HemanthJabalpuri
HemanthJabalpuri / debug.json
Last active October 28, 2023 02:13
F-Droid json parsing test. Below is index-v1.json structure from f-droid. I tried to parse this json using Python (attached below)
{
"apps": [
{
"authorName": "Lo\u00efc Teyssier",
"categories": [
"Science & Education"
],
"suggestedVersionName": "1.3.1",
"suggestedVersionCode": "14",
"issueTracker": "https://github.com/lolo-io/OneList/issues",
@HemanthJabalpuri
HemanthJabalpuri / installarch.txt
Created April 7, 2023 11:20
Install Arch Linux manually in virt-manager
Install Arch Linux in Virtual Manager (using CentOS)
Ref:
https://wiki.archlinux.org/title/installation_guide
https://itsfoss.com/install-arch-linux/
- Add new connection and select arch iso
- 1 GiB RAM and 5 GiB of Disk space is enough for headless install
- It will boot with BIOS mode (not UEFI)
- Check connection with
@HemanthJabalpuri
HemanthJabalpuri / TeluguRadio.m3u
Last active December 14, 2023 10:46
Telugu online radio playlist. Download this and open VLC => Playlists and select TeluguRadio
#EXTM3U
#EXTINF:0,FM Rainbow Visakhapatnam
https://air.pc.cdn.bitgravity.com/air/live/pbaudio081/chunklist.m3u8
#EXTINF:0,FM Rainbow Vijayawada
https://air.pc.cdn.bitgravity.com/air/live/pbaudio174/chunklist.m3u8
#EXTINF:0,Vividh Bharti Vijayawada
https://air.pc.cdn.bitgravity.com/air/live/pbaudio176/chunklist.m3u8
#EXTINF:0,Melody Radio
https://a1.asurahosting.com:9580/radio.mp3
#EXTINF:0,TORI
@HemanthJabalpuri
HemanthJabalpuri / README.md
Created October 25, 2020 08:52
My settings config for Multiling O Keyboard

INSTALLATION

  1. copy contents of multilingHemanth.txt. (text encoding: UTF-8)
  2. open Multiling Keyboard settings > Misc. > Import | Export > Settings. click on Paste.