Skip to content

Instantly share code, notes, and snippets.

View MrCarb0n's full-sized avatar
🐳
What's happening?

Τ Ι Λ ϟ Η ; MrCarb0n

🐳
What's happening?
View GitHub Profile
@MrCarb0n
MrCarb0n / YellowFlashDisablerMido.sh
Last active May 15, 2022 15:20
Yellow flashlight disabler for RedmiNote4 / mido
#!/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 / dev_NotoEmojiPlus.sh
Last active May 24, 2022 11:24
NotoEmojiPlus extension dev script for OMF!
# 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 / commit2changelog.sh
Last active July 2, 2022 11:51
commit title to changelog generator for magisk module repository.
#!/usr/bin/bash
# debug
# set -xv
BANNER() {
echo -e $B
echo "╭─────────────────────────────────────╮"
echo "│ Commit' title to CHANGELOG.md │"
echo "│ generator for magisk module repo. │"
# 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"
#!/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)"
#!/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
#!/bin/sh
ALIASES=""
PASS=""
VALIDITY=36500
ISSUED_DATE="yyyy/mm/dd hh:mm:ss"
CommonName=""
OrganizationalUnit=""
Organization=""
@MrCarb0n
MrCarb0n / fixperm.sh
Last active August 8, 2023 13:02
Android app runtime permission fixer.
#!/usr/bin/sh
# ╭─────────────────────────────────────────╮
# │ Android App Permissions Batch Fixer │
# │ gist.github.com/MrCarb0n │
# ├─────────────────────────────────────────┤
# │ l a z i n e s s d r i v e s │
# │ i n n o v a t i o n │
# ├─────────────────────────────────────────┤
# │ Author: @MrCarb0n │