-
Install Termux, an Android terminal emulator that provides a Linux execution environment and various tools.
-
Update system packages in Termux:
$ pkg update -y
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
# port: 7890 | |
# socks-port: 7891 | |
# mixed-port: 7890 | |
redir-port: 9797 | |
tproxy-port: 9898 | |
# rule 规则匹配 | |
# global 全局代理(需要在GLOBAL策略组选择代理/策略) | |
# direct 全局直连 | |
# 此项拥有默认值,默认为规则模式 |
This guide will walk you through the steps to install Visual Studio Code (code-server) on your Android device using Termux.
- Install Termux from the GitHub repository or termux.com.
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
<?php | |
/* | |
* @author Ammar Faizi <ammarfaizi2@gnuweeb.org> | |
* | |
* A simple HTTP Server. I make this program just to do a challenge | |
* from @codenoid. | |
* | |
* Link: https://t.me/GNUWeebTDD/7822 | |
* Link: https://twitter.com/imrenagi/status/1591659569637634048 | |
*/ |
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
## First, download newest curl package from here https://curl.haxx.se/download.html | |
apt remove curl | |
apt autoremove | |
apt-get install gcc make -y | |
wget https://curl.se/download/curl-7.85.0.tar.gz | |
tar xzvf curl-7.85.0.tar.gz | |
cd curl-7.85.0 | |
./configure | |
## if you facing error, try configure with openssl |
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
var obj = Object.entries(document.getElementsByTagName('iframe')[0].contentWindow.H5PIntegration.contents) | |
var obj = obj[0][1]['jsonContent'] | |
parsejson = JSON.parse(obj) | |
for (var k in parsejson['questions']) { | |
console.log("=====================================================================") | |
console.log("SOAL : " + parsejson['questions'][k]['params']['question']) | |
for (var a in parsejson['questions'][k]['params']['answers']) { | |
if (parsejson['questions'][k]['params']['answers'][a]['correct']) { | |
console.log("JAWABAN : " + parsejson['questions'][k]['params']['answers'][a]['text']) | |
} |
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
## first install open ssh | |
apt install openssh | |
## start ssh | |
sshd | |
## in pc | |
adb forward tcp:8022 tcp:8022 | |
## then | |
ssh -p 8022 root@localhost |
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/xbin/bash | |
#Based on https://github.com/termux/termux-app/issues/77 | |
export PREFIX='/data/data/com.termux/files/usr' | |
export HOME='/data/data/com.termux/files/home' | |
export LD_LIBRARY_PATH='/data/data/com.termux/files/usr/lib' | |
export PATH="/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:$PATH" | |
export LANG='en_US.UTF-8' | |
export SHELL='/data/data/com.termux/files/usr/bin/bash' | |
export BIN='/data/data/com.termux/files/usr/bin' | |
export TERM=vt220 |
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
down_par(){ | |
while ! command -v ./parallel &> /dev/null | |
do | |
# printf "\rDownloading Parallel" | |
wget -q http://git.savannah.gnu.org/cgit/parallel.git/plain/src/parallel -O parallel | |
chmod 755 parallel | |
printf "will cite" | ./parallel --citation &> /dev/null | |
done | |
} | |
fast_search(){ |
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
directory="./" | |
save_dir="./SAVED" | |
##Scan and merge | |
find "$directory" -type f -name "*.tmp" -print0 | while read -d $'\0' file | |
do | |
named="SortYearMonthDate" | |
filename=$(basename "$file") | |
year=$(echo "$filename"|cut -d "-" -f 1) | |
month=$(echo "$filename"|cut -d "-" -f 2) |
NewerOlder