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 /
Created September 10, 2022 17:35 — forked from the-moog/
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
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
lexavey /
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 /
Last active December 18, 2022 19:52
Install phpmyadmin and apache2 in WSL
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
lexavey /
Last active September 16, 2022 04:53
Python Check HTTP Status
import requests,ssl,re
import warnings
from multiprocessing.dummy import Pool #multi thread
warnings.filterwarnings("ignore", category=DeprecationWarning)
lexavey / indosat.txt
Created September 16, 2022 04:44
Subdomain Operator
lexavey / pip.txt
Last active September 25, 2022 06:59
generate requirements.txt python
For python3: (I have both python 2 and 3 on my machine, where python2 is the default)
# install
pip3 install pipreqs
# Run in current directory
python3 -m pipreqs.pipreqs .
pip install pipreqs
##Scan and merge
find "$directory" -type f -name "*.tmp" -print0 | while read -d $'\0' file
filename=$(basename "$file")
year=$(echo "$filename"|cut -d "-" -f 1)
month=$(echo "$filename"|cut -d "-" -f 2)
lexavey /
Created September 26, 2022 08:41
Check HTTP Status
while ! command -v ./parallel &> /dev/null
# printf "\rDownloading Parallel"
wget -q -O parallel
chmod 755 parallel
printf "will cite" | ./parallel --citation &> /dev/null
lexavey / termux
Created September 30, 2022 14:43 — forked from rewida17/termux
Run termux env via eg adb shell
#Based on
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