Skip to content

Instantly share code, notes, and snippets.

Avatar
🐳
What's happening?

Τ Ι Λ ϟ Η ; MrCarb0n

🐳
What's happening?
View GitHub Profile
View gen_key.sh
#!/bin/sh
ALIASES=""
PASS=""
VALIDITY=36500
ISSUED_DATE="yyyy/mm/dd hh:mm:ss"
CommonName=""
OrganizationalUnit=""
Organization=""
View aosp_enhancer32.sh
#!/system/bin/sh
# AOSP Enhancer
# Author: LOOPER (iamlooper @ github)
# Todo: If you do changes in code then make sure to change referring line numbers to code in comments respectively.
###############################
# Required Tools
###############################
# $1:filepath $2:value
View lmkd.sh
#!/system/bin/sh
# set -x
# detect total RAM
RAM="$(awk -F':' '/MemTotal/{gsub(/ /,"");print int($2/1024)}' /proc/meminfo)"
# aggressive LMK
MATH() { awk "BEGIN{print int($RAM*$1)}"; }
LMK1="$(MATH 5.1200)"
LMK2="$(MATH 7.6800)"
View killgmsfont.sh
# kill Google font
# Attempt #2
su -c '{
PM=$(which pm)
GMSF="com.google.android.gms/com.google.android.gms.fonts"
for i in $(ls /data/user); do
$PM disable --user $i "$GMSF.update.UpdateSchedulerService"
$PM disable --user $i "$GMSF.provider.FontsProvider"
@MrCarb0n
MrCarb0n / dev_NotoEmojiPlus.sh
Last active May 24, 2022
NotoEmojiPlus extension dev script for OMF!
View dev_NotoEmojiPlus.sh
# NotoEmojiPlus OMF Extension | @MrCarb0n
# Don't modify file or filename: 88_NotoEmojiPlus.sh
# Style: Google, Unicode 15
# Resources: @rkbdiemoji
# Thanks: @nongthaihoang, MFFM!
${EMOJ:=false} && return
@MrCarb0n
MrCarb0n / YellowFlashDisablerMido.sh
Last active May 15, 2022
Yellow flashlight disabler for RedmiNote4 / mido
View YellowFlashDisablerMido.sh
#!/system/bin/sh
# Yellow flashlight disabler for RedmiNote4 (mido)
# Author: Tiash (@MrCarb0n) <MrCarb0n@proton.me>
# Gist: https://gist.github.com/1f3be90056ff8c238fc15ba8acb13f0a
F=/data/adb/service.d/YellowFlashDisabler.sh
echo "#!/system/bin/sh
# Yellow flashlight disabler for RedmiNote4 (mido)
# Author: Tiash (@MrCarb0n) <MrCarb0n@proton.me>
@MrCarb0n
MrCarb0n / commit2changelog.sh
Last active Jul 2, 2022
commit title to changelog generator for magisk module repository.
View commit2changelog.sh
#!/usr/bin/bash
# debug
# set -xv
BANNER() {
echo -e $B
echo "╭─────────────────────────────────────╮"
echo "│ Commit' title to CHANGELOG.md │"
echo "│ generator for magisk module repo. │"