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
@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. |
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 | |
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | |
# Android App Permissions Batch Fixer | |
# Repository: gist.github.com/MrCarb0n | |
# Author: @MrCarb0n | |
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | |
set -eu | |
# Colors | |
GRN="\033[1;32m" | |
BLU="\033[1;34m" |
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 | |
ALIASES="" | |
PASS="" | |
VALIDITY=36500 | |
ISSUED_DATE="yyyy/mm/dd hh:mm:ss" | |
CommonName="" | |
OrganizationalUnit="" | |
Organization="" |
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
#!/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 |
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
#!/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)" |
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
# 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" |
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
# 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 |
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
#!/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]> |
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/bash | |
# debug | |
# set -xv | |
BANNER() { | |
echo -e $B | |
echo "โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ" | |
echo "โ Commit' title to CHANGELOG.md โ" | |
echo "โ generator for magisk module repo. โ" |