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 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

@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 / install.sh
Last active December 18, 2022 19:52
Install phpmyadmin and apache2 in WSL
#!/bin/bash
sudo apt update && sudo apt upgrade
sudo apt install mysql-server
sudo service mysql start
#Reset root password
sudo mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'jancok123';flush privileges;"
sudo apt install apache2
sudo apt install phpmyadmin
<?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 / 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 / fixexec.py
Created September 10, 2022 17:35 — forked from the-moog/fixexec.py
Python script to fix the "exec format error" seen with tools like gzip in WSL with Ubuntu 22.04 in Q1/Q2 2022
#!/usr/bin/env python
r"""
This script can be used to fix the "exec format error" seen with tools like gzip in
WSL with Ubuntu 22.04 in Q1/Q2 2022
A hacky fix for broken executables in WSL/Ubuntu 22.0
see https://github.com/microsoft/WSL/issues/8219
@lexavey
lexavey / c9.sh
Last active November 14, 2022 10:01
Install and configure Cloud9IDE in Ubuntu Server
## update and install all depencies
sudo apt-get update && sudo apt-get -y install curl git build-essential && sudo dpkg --configure -a
## if something error happen, try upgrade (sudo apt upgrade)
## Install Python2.7
sudo apt install python2.7 -y
## add c9 users and skip password
adduser --disabled-password --gecos "" c9user
@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 / 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