Skip to content

Instantly share code, notes, and snippets.

View chickendrop89's full-sized avatar
🎯
There's always a room for improvement!

chickendrop89

🎯
There's always a room for improvement!
View GitHub Profile
@chickendrop89
chickendrop89 / 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
@chickendrop89
chickendrop89 / how-to-read-pstore-ramoops-mtkclient.md
Last active July 20, 2025 18:49
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
@chickendrop89
chickendrop89 / do_sigver_init:invalid digest.md
Last active May 6, 2025 18:07
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.

@chickendrop89
chickendrop89 / magisk-volume-key-selection.sh
Created November 1, 2024 15:20
Magisk volume key selection function
volumeselect() {
while true;
do
getevent -lc 1 2>&1 | grep VOLUME | grep DOWN > "$TMPDIR"/events
if grep VOLUME "$TMPDIR"/events >/dev/null;
then break
fi
done
if grep VOLUMEUP "$TMPDIR"/events >/dev/null;
@chickendrop89
chickendrop89 / amlogic-9xxx-useful-links.md
Last active October 29, 2025 16:33
Amlogic S9xxx (set top box) useful links