# put stock boot.img into /sdcard/boot.img
# get sha1
adb shell
su
SHA1=$(cat $(magisk --path)/.magisk/config | grep SHA1 | cut -d '=' -f 2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 127.0.0.1 api.ad.xiaomi.com | |
| 127.0.0.1 sdkconfig.ad.xiaomi.com | |
| 127.0.0.1 ad.mi.com | |
| 127.0.0.1 ad.xiaomi.com | |
| 127.0.0.1 ad1.xiaomi.com | |
| 127.0.0.1 adv.sec.miui.com | |
| 127.0.0.1 test.ad.xiaomi.com | |
| 127.0.0.1 new.api.ad.xiaomi.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #!----------------------------------- | |
| #! Replace "oldtext" with "newtext" | |
| #! inside all pdf files in the directory. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| VAL_RPS_FLOW_CNT="32768" | |
| VAL_RPS_SOCK_FLOW_ENTRIES="32768" | |
| PROC_NUM=$(cat /proc/cpuinfo | grep -c ^processor) | |
| VAL_RPS_CPUS=0 | |
| if [ ${PROC_NUM:?} -eq 1 ] | |
| then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Author: RA <ravageralpha@gmail.com> | |
| USAGE(){ | |
| echo "Usage:$(basename $0) [eng] files..." | |
| } | |
| [ $# -eq 0 ] && USAGE && exit 0 | |
| ERROR(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| # Download lists, unpack and filter, write to stdout | |
| curl -s https://www.iblocklist.com/lists.php \ | |
| | sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| | xargs wget -O - \ | |
| | gunzip \ | |
| | egrep -v '^#' |