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/bash | |
pnam=$(basename "$0") | |
usage="$pnam [-b] [-n] [-v] KeySequence | |
$pnam {-h|--help} | |
" | |
adb_shell_input_keyevent() { | |
$verbose && echo "adb shell input keyevent $1" | |
$dryrun || adb shell -n input keyevent $1 | |
} |
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/bash | |
adb shell svc power shutdown | |
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 | |
ip=$( adb shell ifconfig wlan0 | cut -f 3 -d ' ' ) | |
port=5555 | |
adb tcpip $port | |
adb connect $ip:$port |
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
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
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/bash | |
adb backup -apk -shared -all -f $1 | |
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/bash | |
MAC=`(date; cat /proc/interrupts) | \ | |
md5sum | sed -r 's/^(.{10}).*$/\1/; s/([0-9a-f]{2})/\1:/g; s/:$//;'` | |
echo "$MAC" |
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/bash | |
wget \ | |
--mirror \ | |
--convert-links \ | |
--adjust-extension \ | |
--page-requisites \ | |
-e robots=off \ | |
--html-extension \ | |
-U Mozilla \ |
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/bash | |
find $1 -name "*.apk" -type f -print0 | \ | |
while read -d $'\0' f | |
do mv -v "$f" "${f// /-}" | |
done |
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
alias x="chmod +x" | |
alias install="sudo apt-get update; sudo apt install -y " | |
alias update="sudo apt-get update" | |
alias search="apt search" | |
alias rm="rm -rf" | |
alias nano="nano -m" | |
alias wc="wc -l" | |
alias lll="ls -R **" | |
alias du="du -sh" |
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/bash | |
while getopts "r:p:o:" flag; do | |
case "$flag" in | |
# Where to stert searching. | |
r) ROOT=$OPTARG;; | |
# The pattern. | |
p) NAME=$OPTARG;; | |
# where to store the findings. |
NewerOlder