Skip to content

Instantly share code, notes, and snippets.

View Bonveio's full-sized avatar
Inactive

Bonveio Abitona Bonveio

Inactive
View GitHub Profile
@Bonveio
Bonveio / config.json
Last active January 26, 2024 00:07
Sample v2ray vmess + ws + tls setup
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"inbounds": [{
"port": 10035,
"listen": "127.0.0.1",
"protocol": "vmess",
@Bonveio
Bonveio / ocspanel-inject-registration.bash
Last active November 2, 2020 01:51
OCS Panel guest user registration
# Copyright (c) BonvScripts
# Author: Bonveio Abitona
RouteConf='/home/panel/html/config/route.php'
RegisterPHP='/home/panel/html/controller/register.php'
RegisterHTML='/home/panel/html/view/register.html'
if [[ "$(grep -c 'register' ${RouteConf})" -gt 1 ]]; then
sed -i "/^.*\/register.*$/d" "${RouteConf}"
fi
@Bonveio
Bonveio / tutorial.bash
Created November 29, 2019 15:16
Creating Downloadable OpenVPN config using apache2
#!/bin/bash
# How to create downloadable OpenVPN configs using apache
# Dedicated for Angristan's OpenVPN Installer users
# Angristan's script can be found here: https://github.com/Angristan/openvpn-install
# ©BonvScripts
# For Debian 9/10, Ubuntu 16/18 and CentOS 7
# This is surely working for Apache 2.4
# Tested on my Debian 9.11 Singapore VPS
# Textes that starts without # or comments are commands to be run at your terminal
# You must be installed with angristan's script or any script/s that can reproduce .ovpn config in /root directory