Skip to content

Instantly share code, notes, and snippets.

View veez21's full-sized avatar

Val Mandantes veez21

  • Somewhere in the Philippines
View GitHub Profile
echo "Installing FreeMem (drop_caches) by veez21 for Termux"
dir=/data/data/com.termux/files
dir2=$dir/home/.freemem
[ -d "$dir" ] || { echo "Termux not installed!"; exit 1; }
mkdir -p $dir2
cd $dir2
curl -s -o "freemem.sh" https://gist.githubusercontent.com/veez21/a7a8483b88fced8af7b8ce59d50f0663/raw/freemem
chmod a+x freemem.sh
if ! grep fmem $dir/home/.bashrc;
then
@veez21
veez21 / freemem
Last active February 3, 2021 08:23
bfree=$(free -m | grep Mem | awk '{print $4}')
echo 3 > /proc/sys/vm/drop_caches
afree=$(free -m | grep Mem | awk '{print $4}')
echo "Freed $((afree-bfree)) MB!"
@veez21
veez21 / rsite
Last active April 2, 2019 11:29
sites
https://www2.gogoanime.io
@veez21
veez21 / wpass
Last active October 11, 2023 15:18
Wifi Password Viewer installer
echo "Installing Wifi Password Viewer for Termux"
dir=/data/data/com.termux/files
[ -d "$dir" ] || { echo "Termux not installed!"; exit 1; }
if [ $(getprop ro.build.version.sdk) -lt 26 ]; then
echo "! This script only supports Android 8.0+"
else
mkdir -p $dir/home/.wpass
cd .wpass
curl -s -o "wpd.sh" https://gist.githubusercontent.com/veez21/4f2541d271809864411e3ffbbe8e3df9/raw/wpd
chmod a+x wpd.sh
@veez21
veez21 / anime-notify.sh
Last active May 20, 2018 11:49
Get notified with your favorite animes through emails ;_;. Use with cron for maximum laziness
#!/bin/bash
# by veez21
# example: https://gist.githubusercontent.com/veez21/46513d21a677315917556d1d47482e95/raw/anime.list (this is mine, follow the format which should be easy af). Tt must be a permalink of a raw gist, google it.
ODB=https://gist.githubusercontent.com/veez21/46513d21a677315917556d1d47482e95/raw/anime.list
# This one is complete and always up to date
rsite="https://www2.gogoanime.se"
site="https://www2.gogoanime.se/category"
site_name=$(curl -s $rsite | grep site_name | sed 's/.*content=//;s/\/.*//' | tr -d '"')
# Your email address that will send the emails, edit this
@veez21
veez21 / xda.sh
Last active June 6, 2018 13:05
xda status
#!/bin/bash
# veez21 @ xda-developers
# Colors
G='\e[01;32m' # GREEN
R='\e[01;31m' # RED
Y='\e[01;33m' # YELLOW
B='\e[01;34m' # BLUE
V='\e[01;35m' # VIOLET
Bl='\e[01;30m' # BLACK
@veez21
veez21 / chkfw
Created May 2, 2018 07:10
Check MIUI Firmware (Global Stable) updates for Redmi Note 4X (Snapdragon)
#!/system/bin/sh
# veez21 @ xda-developers
echo -n "Testing internet connection "
ping -q -c 1 -W 1 en.miui.com 2>/dev/null >/dev/null && echo "- OK" || { echo "- Error"; exit 1; }
curdev=$(getprop ro.product.device)
[ -n "$1" -a "$1" != "-u" ] && curdev=$1
DB=/cache/devices.list
@veez21
veez21 / wpd
Last active October 11, 2023 15:19
View wifi passwords through Termux for Android Oreo+ (Root)
#!/system/bin/sh
[ "$(whoami)" != "root" ] && { echo "root required"; exit 1; }
configs=( /data/misc/wifi/WifiConfigStore.xml /data/misc/apexdata/com.android.wifi/WifiConfigStore.xml )
for z in ${configs[@]}; do
if [ -f $z ]; then
config=$z
break
fi
done
@veez21
veez21 / anime.list
Last active April 10, 2019 11:43
animes that i watch :P (notifies me when updated)
Black_Clover_(TV)^=black-clover-tv
Boruto:_Naruto_Next_Generations^=boruto-naruto-next-generations
Dragon_Ball_Heroes^=dragon-ball-heroes
Sword_Art_Online:_Alicization^=sword-art-online-alicization
One_Punch_Man_2nd_Season^=one-punch-man-2nd-season
Fairy_Tail:_Final_Series^=fairy-tail-final-series
The_Rising_of_the_Shield_Hero^=tate-no-yuusha-no-nariagari
Dororo^=dororo
Kakegurui_XX^=kakegurui-xx
Isekai_Quartet^=isekai-quartet