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 | |
# This script assumes you have an ssh server running on your rooted android. | |
# USAGE: | |
# ./android-man-install.sh binaryName | |
# Locate the man page you want. From a computer that already has it: | |
location=$(sudo find / * | grep -P "$1\\..*\\.gz") | |
# Now scp over the file you just found (from remote pc to android). | |
scp $location yourAndroidDevice:$location |
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 | |
# USAGE: | |
# ./remote-sudo.sh password hostname command | |
HOST=$2; | |
PASSWORD=$1; | |
COMMAND="${@:3}" | |
ssh -T $HOST "echo $PASSWORD | sudo -S su -c \"$COMMAND\"" |
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
true|0**0 === 1; // true | |
NaN|0**0 === 1; // true | |
false|0**0 === 1; // true | |
// ... |
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
add=(_=>n=>_+=n)(0) | |
add(5) // => 5 | |
add(10) // => 15 | |
add(7) // -> 22 |
NewerOlder