This file contains 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 | |
# Author: luisadha | |
# Script to change system hostname, reboot to restore it. | |
# **Su binaries needed & busybox too** | |
local file="$0: $1: No such file or directory" | |
local usage="usage:\thostnamchanger FILE... " | |
[ $# -lt 1 ] && echo $usage && return 1 | |
[ ! -f $1 ] && echo $file && return 1 | |
local arg="$*"; |
This file contains 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
[ -z "$PS1" ] && return # bashcheck is only called via function | |
cu() | |
{ | |
local program="$1" | |
local help="$*"; | |
if [ -z "$program" ]; then echo "cu: Try \`cu --help' "; exit 1 | |
elif [ "$program" == "--help" ]; then coreutils --help; | |
elif [ "$program" == "--version" ]; then coreutils --version; | |
else eval cmd=--coreutils-prog=$1; coreutils $cmd $help; fi | |
} |
This file contains 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 | |
# Author: Luis Adha | |
# This code is released to the public domain. | |
# The author gave permission to use this code snippet in your script. | |
# Script name: playmusic.sh | |
# Version: v0.1 | |
# Build date: Teu Dec 21 13:59:21 WIB 2021 | |
GRAY='\e[1;30m' |
This file contains 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 | |
# | |
# FT stands for (force true) to use Disableprecmd in prompt | |
# MIT License, Copyleft (c) 2021 Luis Adha. | |
# This is asset of kalip.sh | |
# Usage: ft [command] | |
# or: ft ./file |
This file contains 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/bash | |
# heavily inspired by http://fitnr.com/showing-file-download-progress-using-wget.html | |
URL=$1 | |
wget --progress=dot "$URL" 2>&1 |\ | |
grep "%" |\ | |
sed -u -e "s,\.,,g" | awk '{print $2}' | sed -u -e "s,\%,,g" | dialog --gauge "Download $(basename $URL) " 10 100 | |
This file contains 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
# Copy pasta ke initial langsung | |
: ' exit | |
echo -e " | |
| Command line: $0 | |
| Terminal type: ${TERM} | |
| HOME folder: ${HOME} | |
| Initial command: | |
0\texit"; history | |
' |
This file contains 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 | |
# date Thu May 9 19:00:28 WIB 2019 | |
# Script untuk secara acak memilih gambar lalu mengaturnya menjadi wallpaper dari file dalam directory | |
# (28.05.2019)Teu | |
# Honeycoffe | |
# Requipment | |
# - Directory Containing Pictures | |
# - Busybox installed in your device |
This file contains 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
getprop ro.build.ab_update |
This file contains 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
local CHECK_GPU=$(su -c dumpsys SurfaceFlinger | awk '/GLES: / { print $3 $4}' ) | |
CHECK_GPU=${CHECK_GPU-'FAIL'} | |
local CHECK_CPU=$(if [ "$(getprop|grep ro.product.board)" != "$(cat /proc/cpuinfo|grep Hardware)" ]; then echo $(getprop ro.product.board); else echo $(cat /proc/cpuinfo|grep Hardware); fi) | |
local CHECK_MEM=$(echo "$(free -m | xargs | awk '{print "" $17 "/" $8 " MB"}') ") | |
echo "" | |
echo -e "${G} %=,_ _,=%${D}" | |
echo -e "${G} ,\*?&&&&&&&&&&?*/, \tTERM: $TERM" | |
echo -e "${G} &&&&&${R}*${G}&&&&&&&${R}*${G}&&&& ${D}\tSHELL: $SHELL" | |
echo -e "${G} &&&&&&&&&&&&&&&&&&&&${D} \tCPU: $CHECK_CPU " | |
echo -e "${G} &&&&&&&&&&&&&&&&&&&&${D} \tGPU: $CHECK_GPU " |
This file contains 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 "Clean up the file termux downloaded?" | |
echo $(pwd) | |
read REPLY | |
rm -rf $(pwd)/* |
OlderNewer