Skip to content

Instantly share code, notes, and snippets.

View amanjuman's full-sized avatar
😉
Ill

Aman Juman amanjuman

😉
Ill
View GitHub Profile
@amanjuman
amanjuman / SoftEther VPN for Ubuntu 16.04 & 18.04
Last active March 6, 2025 01:43
SoftEther VPN for Ubuntu Server
sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y
sudo apt -y install build-essential wget curl gcc make wget tzdata git libreadline-dev libncurses-dev libssl-dev zlib1g-dev
sudo wget https://www.softether-download.com/files/softether/v4.41-9787-rtm-2023.03.14-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.41-9787-rtm-2023.03.14-linux-x64-64bit.tar.gz
tar xzf softether-vpnserver-v4.41-9787-rtm-2023.03.14-linux-x64-64bit.tar.gz && rm softether-vpnserver-v4.41-9787-rtm-2023.03.14-linux-x64-64bit.tar.gz
cd vpnserver && sudo make
cd ..
sudo mv vpnserver /usr/local && cd /usr/local/vpnserver/
sudo chmod 600 *
@amanjuman
amanjuman / Shadowsocks Server Setup and Files
Last active September 27, 2019 14:59
Shadowsocks Server Setup and Files
sudo apt-get update && sudo apt-get upgrade -y
wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocksR.sh && chmod +x shadowsocksR.sh
./shadowsocksR.sh 2>&1 | tee shadowsocksR.log
nano /etc/shadowsocks.json
{
"server":"0.0.0.0",
"server_ipv6":"[::]",
"port_password": {
"1001": "user1",
@amanjuman
amanjuman / WordPress Nginx Config
Last active February 16, 2021 16:55
WordPress Nginx Config
server
{
# Listen
listen 80;
listen [::]:80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
# Server Name and Alias
server_name example.com www.example.com;
@amanjuman
amanjuman / CloudFlare DNS Over HTTPS Ubuntu 18.04 x64
Last active September 7, 2021 16:02
CloudFlare DNS Over HTTPS Ubuntu 18.04 x64
sudo wget -q https://bin.equinox.io/c/VdrWdbjqyF/cloudflared-stable-linux-amd64.deb
sudo dpkg -i cloudflared-stable-linux-amd64.deb
cloudflared -v
mkdir -p /usr/local/etc/cloudflared
cloudflared login
cp /root/.cloudflared/cert.pem /usr/local/etc/cloudflared/cert.pem
@amanjuman
amanjuman / OpenVZ VPS Resolve Config Persistent
Created January 21, 2019 17:16
OpenVZ VPS Resolve Config Persistent
sudo apt-get install e2fsprogs -y
;Unlock auto reset on boot
sudo chattr -i /etc/resolv.conf
;Lock on auto reset on boot
sudo chattr +i /etc/resolv.conf
;OR create script
@amanjuman
amanjuman / Ring of Elysium Referral Code - 26 January (Working)
Last active February 4, 2019 04:40
Ring of Elysium Referral Code - 26 January (Working)
Ring of Elysium Referral Code: GFJ7N9QGNF5
Ring of Elysium Referral Code 2019
@amanjuman
amanjuman / nginx.conf
Last active March 1, 2025 21:28
Nginx Config For A+ Security
## Once Click Setup
## sudo openssl dhparam -dsaparam -out /etc/ssl/dhparam.pem 2048
## wget -q https://gist.githubusercontent.com/amanjuman/8ee772b38bc1a14cecf30546d0e53b73/raw/6be4bf4547398580224cf30099c4ce844ccc7dce/nginx.conf -O /etc/nginx/nginx.conf
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events
@amanjuman
amanjuman / Raspberry Pi SoftEtherVPN Client as VPN Wifi Router
Last active August 23, 2020 20:57
Raspberry Pi SoftEtherVPN Client as VPN Wifi Router
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove -y
apt-get -y install build-essential wget curl gcc make wget tzdata git libreadline-dev libncurses-dev libssl-dev zlib1g-dev
wget https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.30-9696-beta/softether-vpnclient-v4.30-9696-beta-2019.07.08-linux-arm_eabi-32bit.tar.gz
tar xzf softether-vpnclient-v4.30-9696-beta-2019.07.08-linux-arm_eabi-32bit.tar.gz && rm softether-vpnclient-v4.30-9696-beta-2019.07.08-linux-arm_eabi-32bit.tar.gz
echo net.ipv4.ip_forward = 1 | ${SUDO} tee -a /etc/sysctl.conf
echo net.ipv6.ip_forward = 1 | ${SUDO} tee -a /etc/sysctl.conf
cd vpnclient
@amanjuman
amanjuman / Nginx PHPmyAdmin Subdomain
Last active December 30, 2024 13:42
Nginx PHPmyAdmin Subdomain
sudo nano /usr/share/phpmyadmin/libraries/sql.lib.php
## Search Clt + W
(count($analyzed_sql_results['select_expr'] == 1)
## Replace
((count($analyzed_sql_results['select_expr']) == 1)
## Add Bottom
$cfg['SendErrorReports'] = 'never';
## Change this
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root-password';
@amanjuman
amanjuman / SoftEther VPN Server on CentOS
Last active February 20, 2023 08:34
SoftEther VPN Server on CentOS
yum update -y && yum upgrade -y && yum install gcc nano wget curl -y
yum groupinstall "Development Tools" -y
wget https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.29-9680-rtm/softether-vpnserver-v4.29-9680-rtm-2019.02.28-linux-x64-64bit.tar.gz
tar xzvf softether-vpnserver-v4.29-9680-rtm-2019.02.28-linux-x64-64bit.tar.gz && rm -rf softether-vpnserver-v4.29-9680-rtm-2019.02.28-linux-x64-64bit.tar.gz
cd vpnserver && make
cd .. && sudo mv vpnserver /usr/local && cd /usr/local/vpnserver
sudo chmod 600 *
sudo chmod 700 vpncmd vpnserver