Skip to content

Instantly share code, notes, and snippets.

View lexavey's full-sized avatar
⚠️
This account is no longer maintained

Lexa Vey lexavey

⚠️
This account is no longer maintained
  • Free
  • Zimbabwe
View GitHub Profile
@lexavey
lexavey / README.md
Created October 10, 2023 04:03 — forked from ppoffice/README.md
Install Visual Studio Code (actually code-server) on Android
  1. Install Termux, an Android terminal emulator that provides a Linux execution environment and various tools.

  2. Update system packages in Termux:

    $ pkg update -y
@lexavey
lexavey / README.md
Created August 7, 2023 06:11
Installing Visual Studio Code (code-server) on Android Devices (Termux)

Installing Visual Studio Code (code-server) on Android Devices (Termux)

This guide will walk you through the steps to install Visual Studio Code (code-server) on your Android device using Termux.

Prerequisites

  1. Install Termux from the GitHub repository or termux.com.

Instructions

<?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
*/
@lexavey
lexavey / install.sh
Created October 18, 2022 04:09
Install latest cURL in linux
## 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
@lexavey
lexavey / quiz.js
Created October 16, 2022 14:37
ngecheat xixixi
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'])
}
@lexavey
lexavey / gist:d247e92f7cf4f24308685f2cadda00a7
Created September 30, 2022 15:12
Access termux from PC
## first install open ssh
apt install openssh
## start ssh
sshd
## in pc
adb forward tcp:8022 tcp:8022
## then
ssh -p 8022 root@localhost
@lexavey
lexavey / termux
Created September 30, 2022 14:43 — forked from rewida17/termux
Run termux env via eg adb shell
#!/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
@lexavey
lexavey / scan.sh
Created September 26, 2022 08:41
Check HTTP Status
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(){
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)
https://archive.org/download/crimeflare/cloudflare_0.txt
https://archive.org/download/crimeflare/cloudflare_1.txt
https://archive.org/download/crimeflare/cloudflare_2.txt
https://archive.org/download/crimeflare/cloudflare_3.txt
https://archive.org/download/crimeflare/cloudflare_4.txt
https://archive.org/download/crimeflare/cloudflare_5.txt
https://archive.org/download/crimeflare/cloudflare_6.txt
https://archive.org/download/crimeflare/cloudflare_7.txt
https://archive.org/download/crimeflare/cloudflare_8.txt
https://archive.org/download/crimeflare/cloudflare_9.txt