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 / 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 .
python2:
pip install pipreqs
@lexavey
lexavey / indosat.txt
Created September 16, 2022 04:44
Subdomain Operator
https://adfs2.indosatooredoo.com
http://adfs2.indosatooredoo.com
http://admin.incloud.indosatooredoo.com
https://admin.incloud.indosatooredoo.com
http://ads.indosatooredoo.com
https://ads.indosatooredoo.com
https://amqp.incloud.indosatooredoo.com
http://amqp.incloud.indosatooredoo.com
https://api-careers.indosatooredoo.com
http://api-careers.indosatooredoo.com
@lexavey
lexavey / check.py
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
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
@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 / 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