Skip to content

Instantly share code, notes, and snippets.

View chkndrp's full-sized avatar
🫥
#keepandroidopen

chkndrp

🫥
#keepandroidopen
View GitHub Profile
@chkndrp
chkndrp / ose_setup.py
Last active June 29, 2026 10:18
Bash script to setup OneShot-Extended on Termux
#!/usr/bin/env bash
set -euo pipefail
INSTALL_DIR="$HOME/ose"
BIN_DIR="$PREFIX/bin"
SCRIPT_NAME="ose"
log() {
prefix=""
@chkndrp
chkndrp / agh_hits.py
Last active April 27, 2026 14:39
Get statistics about which AGH DNS upstreams serve the most IPs when having "Fastest IP Address" option set (python script)
import json
import os
from collections import Counter
LOG_PATH = "/opt/adguardhome/data/querylog.json"
def get_upstream_stats(file_path):
if not os.path.exists(file_path):
return f"Error: {file_path} not found"
@chkndrp
chkndrp / real-blocks.sh
Last active April 5, 2026 21:00
Get the real block devices behind /by-name/ symlinks (command)
for l in /dev/block/by-name/*; do printf "%s - %s\n" "${l##*/}" "$(readlink -f "$l")"; done
@chkndrp
chkndrp / strip-mod-and-lib-symbols.sh
Last active April 5, 2026 20:59
Strip kernel modules and libraries from debugging symbols (command)
find . \( -name "*.ko" -o -name "*.so" \) -exec llvm-strip --strip-debug --strip-unneeded {} \;
@chkndrp
chkndrp / thermal-zones.sh
Last active April 5, 2026 20:56
List thermal zone IDs and names (command)
for z in /sys/class/thermal/thermal_zone*; do echo "${z##*zone}: $(cat $z/type)"; done
@chkndrp
chkndrp / bypass-webkitgtk-tizen.md
Last active June 17, 2026 16:48
Tizen studio bypass webkitgtk dependency

The deprecated Tizen Studio app has a dependency on webkitgtk package that doesn't exist anymore on modern fedora distributions/repos

Here is a small "script" to trick the tizen studio installer into thinking it's installed by creating a wrapper for the rpm command. Just paste this to your terminal:

MOCK_BIN=$(mktemp -d)

cat << 'EOF' > "$MOCK_BIN/rpm"
#!/bin/bash
@chkndrp
chkndrp / best-dns-blocklists.md
Last active December 2, 2025 20:59
Best DNS blocklists for home use
@chkndrp
chkndrp / dns-whitelist
Created November 8, 2025 09:41
DNS whitelist for adblockers
# Crash analytics
firebase-settings.crashlytics.com
crashlyticsreports-pa.googleapis.com
crashlytics.com
sentry.com
# Samsung TV network issue
cdn.samsungcloudsolution.com
# Site-breaking domains
@chkndrp
chkndrp / how-to-read-pstore-ramoops-mtkclient.md
Last active July 14, 2026 22:04
How to read pstore/ramoops via mtkclient

How to extract PStore from a device with mtkclient

  • This must be done after a kernel panic/warm boot. Otherwise you might not get any meaningful data.
  • The first two steps can be skipped if you know the address and the length of the region.
  1. Extract expdb partition and run the strings against the image.
$ python mtk.py r expdb expdb.img
@chkndrp
chkndrp / do_sigver_init:invalid digest.md
Last active April 23, 2026 19:28
error:03000098:digital envelope routines:do_sigver_init:invalid digest
error:03000098:digital envelope routines:do_sigver_init:invalid digest:crypto/evp/m_sigver.c:342:
make[1]: *** [/home/xxx/kernel/common/certs/Makefile:94: certs/signing_key.pem] Error 1
make[1]: *** Deleting file 'certs/signing_key.pem'
make: *** [/home/xxx/kernel/common/Makefile:1998: certs] Error 2
make: *** Waiting for unfinished jobs....

This error might occur durring kernel build. It is happening because newer versions of OpenSSL disallow using SHA-1.