Skip to content

Instantly share code, notes, and snippets.

@pir2
pir2 / 11-seven.md
Last active April 30, 2021 20:26 — forked from alwynpan/11-seven.md
Mock location on LineageOS 16/17 with GPS Joystick

Mock location on LineageOS 16/17 with GPS Joystick

Prerequisite

  • A computer (tested on Windows 10, but I don't see any reason it won't work with macOS or Linux).

  • A LineageOS 16/17 compatible phone (LineageOS 16 is recommended, some users reported random crash on LineageOS 17).

  • Download the minimal ADB from XDA Developers Forum and unzip it.

@pir2
pir2 / proxy.py
Created September 7, 2016 15:23 — forked from scturtle/proxy.py
use opera's built-in VPN as proxy
#!/usr/bin/env python3
import asyncio
from vpn import get_proxy
proxy = port = auth = None
pool = asyncio.Queue(5)
psize = 0
async def process_client(client_reader, client_writer, *, CHUNK=4096):
global psize
import cfscrape
import json
import sys
import argparse
import requests
import logging
from queue import Queue
from threading import Thread
@pir2
pir2 / openvpn-install.sh
Created September 14, 2012 15:37
OpenVPN Server on CentOS OpenVZ VPS v2
#!/bin/bash
#OpenVPN Installer for Centos 5 & 6
#Prequisites
#Known issues Centos 6 isnt currently working due to ca.crt error
#Written by Onessa credits to Keith from SaveSrv.net for tutorial I used as base Original Tutorial > https://safesrv.net/install-openvpn-on-centos/
if [ $USER != 'root' ]
then
echo "REQUIRES ROOT"
exit 0
fi
@pir2
pir2 / openvpn-install.sh
Created September 14, 2012 15:03 — forked from yasyf/openvpn-install.sh
OpenVPN Server on CentOS OpenVZ VPS
#!/bin/bash
#OpenVPN Server on CentOS OpenVZ VPS Script by Yasyf Mohamedali (http://blog.yasyf.com/2012/08/01/openvpn-server-on-a-centos-openvz-vps)
#Adapted from various scripts around the net, including http://www.openvz.ca/blog/2010/11/18/setup-tuntap-openvpn-server-openvz-5-minutes/
#https://gist.github.com/3230440
tunstate=`cat /dev/net/tun`
if [ "$tunstate" = "cat: /dev/net/tun: Permission denied" ]
then
clear
echo "Sorry, but it seems that TUN/TAP is not enabled on your VPS."
exit
@pir2
pir2 / test
Created September 13, 2012 17:45
#!/bin/bash
#OpenVPN Server on CentOS OpenVZ VPS Script by Yasyf Mohamedali (http://blog.yasyf.com/2012/08/01/openvpn-server-on-a-centos-openvz-vps)
#Adapted from various scripts around the net, including http://www.openvz.ca/blog/2010/11/18/setup-tuntap-openvpn-server-openvz-5-minutes/
#https://gist.github.com/3230440
tunstate=`cat /dev/net/tun`
if [ "$tunstate" = "cat: /dev/net/tun: Permission denied" ]
then
clear
echo "Sorry, but it seems that TUN/TAP is not enabled on your VPS."
exit