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 / ToggleNetworkIP.bat
Last active August 20, 2024 09:42
Batch script to toggle a network adapter between static IP and DHCP for TP-Link router recovery mode access.
@echo off
REM ==========================================================
REM Title: Toggle Network Adapter IP Between Static and Automatic
REM Description:
REM This batch script toggles the IP configuration of a specified
REM network adapter between a static IP and automatic (DHCP)
REM configuration. It is designed for use with TP-Link router
REM recovery mode. The script assigns a static IP address when
REM DHCP is enabled, and reverts to automatic IP configuration
REM if a static IP is already set.
@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 │
#!/bin/sh
ALIASES=""
PASS=""
VALIDITY=36500
ISSUED_DATE="yyyy/mm/dd hh:mm:ss"
CommonName=""
OrganizationalUnit=""
Organization=""
#!/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
#!/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)"
# 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 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 / 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) <[email protected]>
# 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) <[email protected]>
@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. │"