# 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
// Define the sleep method and relevant paths. | |
function sleep(ms) { | |
return new Promise((resolve) => setTimeout(resolve, ms)); | |
} | |
const sleepTime = 600; | |
const count = 0; | |
// Update playlistName to desired playlist | |
const playlistName = "#####"; |
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
appops set com.snapchat.android READ_EXTERNAL_STORAGE deny | |
appops set com.snapchat.android WRITE_EXTERNAL_STORAGE deny | |
appops set com.snapchat.android READ_MEDIA_AUDIO ignore | |
appops set com.snapchat.android WRITE_MEDIA_AUDIO ignore | |
appops set com.snapchat.android READ_MEDIA_VIDEO ignore | |
appops set com.snapchat.android WRITE_MEDIA_VIDEO ignore | |
appops set com.snapchat.android READ_MEDIA_IMAGES ignore | |
appops set com.snapchat.android WRITE_MEDIA_IMAGES ignore | |
appops set com.snapchat.android LEGACY_STORAGE ignore |
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
rem to disable private dns | |
adb shell settings put global private_dns_mode off | |
rem to enable private dns with hostname (example with dns.adguard.com) | |
adb shell settings put global private_dns_mode hostname | |
adb shell settings put global private_dns_specifier dns.adguard.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
ffmpeg -i input.aiff -f mp3 -acodec libmp3lame -ab 192000 -ar 44100 output.mp3 |
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 | |
set -e | |
FB="fastboot -S 512M" | |
#adb reboot bootloader | |
# Boot TWRP recovery | |
#${FB} oem unlock |
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
/* | |
* cwTeXHei (Chinese-traditional) http://www.google.com/fonts/earlyaccess | |
*/ | |
@font-face { | |
font-family: 'cwTeXHei'; | |
font-style: normal; | |
font-weight: 500; | |
src: url(//fonts.gstatic.com/ea/cwtexhei/v3/cwTeXHei-zhonly.eot); | |
src: url(//fonts.gstatic.com/ea/cwtexhei/v3/cwTeXHei-zhonly.eot?#iefix) format('embedded-opentype'), | |
url(//fonts.gstatic.com/ea/cwtexhei/v3/cwTeXHei-zhonly.woff2) format('woff2'), |
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
/* | |
* cwTeXMing (Chinese Traditional) http://www.google.com/fonts/earlyaccess | |
*/ | |
@font-face { | |
font-family: 'cwTeXMing'; | |
font-style: normal; | |
font-weight: 500; | |
src: url(//fonts.gstatic.com/ea/cwtexming/v3/cwTeXMing-zhonly.eot); | |
src: url(//fonts.gstatic.com/ea/cwtexming/v3/cwTeXMing-zhonly.eot?#iefix) format('embedded-opentype'), | |
url(//fonts.gstatic.com/ea/cwtexming/v3/cwTeXMing-zhonly.woff2) format('woff2'), |
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
/* | |
* cwTeXFangSong (Chinese Traditional) http://www.google.com/fonts/earlyaccess | |
*/ | |
@font-face { | |
font-family: 'cwTeXFangSong'; | |
font-style: normal; | |
font-weight: 500; | |
src: url(//fonts.gstatic.com/ea/cwtexfangsong/v3/cwTeXFangSong-zhonly.eot); | |
src: url(//fonts.gstatic.com/ea/cwtexfangsong/v3/cwTeXFangSong-zhonly.eot?#iefix) format('embedded-opentype'), | |
url(//fonts.gstatic.com/ea/cwtexfangsong/v3/cwTeXFangSong-zhonly.woff2) format('woff2'), |
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
/* | |
* cwTeXYen (Chinese Traditional) http://www.google.com/fonts/earlyaccess | |
*/ | |
@font-face { | |
font-family: 'cwTeXYen'; | |
font-style: normal; | |
font-weight: 500; | |
src: url(//fonts.gstatic.com/ea/cwtexyen/v3/cwTeXYen-zhonly.eot); | |
src: url(//fonts.gstatic.com/ea/cwtexyen/v3/cwTeXYen-zhonly.eot?#iefix) format('embedded-opentype'), | |
url(//fonts.gstatic.com/ea/cwtexyen/v3/cwTeXYen-zhonly.woff2) format('woff2'), |
NewerOlder