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 / how-to-read-pstore-ramoops-mtkclient.md
Last active July 6, 2025 22:41
How to read pstore/ramoops via mtkclient

Noted for Xiaomi Redmi Note 11S 5G (mt6886, codename: opal).

python mtk.py da peek 0x48090000 0xe0000 --filename pstore.bin
  • Ghidra/strings can be later used to read text inside pstore.bin after peeking

@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 / 99-pihole-avoid-roundrobin.conf
Last active June 22, 2025 20:56
Makes Pi-Hole use second upstream DNS server when the first server fails to complete the request, instead of the default round-robin technique that cycles through the upstream servers to distribute the load. This is a dnsmasq configuration file
strict-order
@chickendrop89
chickendrop89 / 99-pihole-admin-redirect.conf
Last active June 22, 2025 20:56
Pi-Hole redirect blank lighttpd page to pihole admin dashboard. This is a lighttpd configuration file
$HTTP["url"] !~ "^/admin" {
url.redirect = (".*" => "/admin")
}
@chickendrop89
chickendrop89 / amlogic-9xxx-useful-links.md
Last active June 22, 2025 20:56
Amlogic S9xxx (set top box) useful links