Skip to content

Instantly share code, notes, and snippets.

View kevin01523's full-sized avatar

Kevin kevin01523

View GitHub Profile
@kevin01523
kevin01523 / build_lineage_for_davinci.md
Created February 7, 2024 20:46 — forked from cheriimoya/build_lineage_for_davinci.md
This will hopefully help you to build LineageOS 17.1 for the Xiaomi davinci.

LineageOS build guide for n00bs like me

Soo you want to build LineageOS (los) for your xiaomi davinci?

This guide will show you how! In this guide i'll lead you through the process of compiling los 17.1 for xiaomis MI 9T, optionally with spoofing support for microG.

I am not responsible for any damage you do to your phone and this guide does

@kevin01523
kevin01523 / ep.tampermonkey.js
Created July 23, 2020 10:34
[Tampermonkey] EP links' fix.
// ==UserScript==
// @name emuparadise.me
// @match https://www.emuparadise.me/*/*/*
// ==/UserScript==
var _el = document.querySelectorAll('.download-link a[href*="-download"]'), _url = document.URL.split('/');
if(_url[3] == 'Sega_Dreamcast_ISOs') {
for(var _i = 0; _i < _el.length; _i++) {
_el[_i].href = 'http://50.7.92.186/happyxhJ1ACmlTrxJQpol71nBc/Dreamcast/' + _el[_i].title.split('Download ').pop().split(' ISO for Sega Dreamcast')[0];
}
@kevin01523
kevin01523 / pldt-home-fibr-an5506-04-fa-rp2627-advanced-settings.md
Created November 3, 2019 03:36 — forked from kleo/backspace.md
PLDT HOME FIBR AN5506-04-FA RP2627 Advanced Settings

PLDT HOME FIBR AN5506-04-FA RP2627 Advanced Settings


[Notice]

Project moved to https://gitlab.com/kbeflo/fiberhomesuperadmin due to excessive amount of unicorns.
Gist here will not be updated anymore
Discussion here on Gist is still allowed but I strongly recommend going over to Gitlab or Discord chat

@kevin01523
kevin01523 / pldt-home-fibr-an5506-04-fa-rp2627-advanced-settings.md
Created November 3, 2019 03:36 — forked from kleo/backspace.md
PLDT HOME FIBR AN5506-04-FA RP2627 Advanced Settings

PLDT HOME FIBR AN5506-04-FA RP2627 Advanced Settings


[Notice]

Project moved to https://gitlab.com/kbeflo/fiberhomesuperadmin due to excessive amount of unicorns.
Gist here will not be updated anymore
Discussion here on Gist is still allowed but I strongly recommend going over to Gitlab or Discord chat

# Обновление системы и пакетов
apt-get update
apt-get upgrade -y
cd ~/
# Установка пакетов для сборки softether
apt-get install build-essential libreadline-dev libssl-dev libncurses-dev zlib1g-dev git
# Скачивание репозитория Stable версии
git clone https://github.com/SoftEtherVPN/SoftEtherVPN_Stable.git
cd /opt/vpnserver/
# Проверка сервера
./vpncmd /TOOLS /CMD Check
# Отключение Keep Alive Internet Connection
./vpncmd localhost:5555 /SERVER /CMD KeepDisable
# Выбор более устойчивого алгоримта шифрования чем установлен по умолчанию
./vpncmd localhost:5555 /SERVER /CMD ServerCipherSet AES256-SHA
cd /opt/vpnserver/
# Включение SecureNat
./vpncmd localhost:5555 /SERVER /HUB:VPN /CMD SecureNatEnable
# Установка mac адреса, ip адреса и маски хаба, где:
# /IP - ip-адрес вируального роутера хаба
# /MASK - его маска
# /MAC - MAC-адрес
./vpncmd localhost:5555 /SERVER /HUB:VPN /CMD SecureNatHostSet /MAC:00-11-22-33-44-55 /IP:192.168.234.1 /MASK:255.255.255.0
cd /opt/vpnserver
# Создаем новый tap-интерфейс, где:
# VPN - название созданного хаба,
# /DEVICE - часть названия tap-интерфейса, которое будет добсавлено к "tap_"
./vpncmd localhost:5555 /SERVER /CMD BridgeСreate VPN /DEVICE:vpn /TAP:yes
# Проверяем ново-созданный интерфейс
# Status должен быть "Operating"
./vpncmd localhost:5555 /SERVER /CMD BridgeList
[Unit]
Description=SoftEther VPN Server
After=network.target auditd.service
ConditionPathExists=!/opt/vpnserver/do_not_run
[Service]
Type=forking
EnvironmentFile=-/opt/vpnserver
ExecStart=/opt/vpnserver/vpnserver start
ExecStartPost=/bin/sleep 3s
@kevin01523
kevin01523 / README.md
Created June 25, 2018 09:15 — forked from AyushSachdev/README.md
A shell script to install VPN using SoftEther and Transmission CLI Torrent Client on Ubuntu 14.04 for use on Digital Ocean

Readme

A shell script to install VPN using SoftEther and Transmission CLI Torrent Client on Ubuntu 14.04 for use on Digital Ocean

Execution

  • Execution for installation and setup
sudo su