Skip to content

Instantly share code, notes, and snippets.

View Handsome1080P's full-sized avatar
🌴
On vacation

JohnConnor Handsome1080P

🌴
On vacation
  • CMD
  • TaiPei
View GitHub Profile
# Обновление системы и пакетов
apt-get update
apt-get upgrade -y
# Установка пакетов для сборки 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
@Handsome1080P
Handsome1080P / pppoe.service
Created April 23, 2024 08:38 — forked from cftang0827/pppoe.service
systemd for pppoe pon network connection
[Unit]
Description=pppoe
[Service]
Type=simple
WorkingDirectory=/usr/bin/
ExecStart=/usr/bin/pon dsl-provider
Restart=always
[Install]
import magic
import r2pipe
import hashlib
import argparse
import subprocess
from unicorn import *
from unicorn.x86_const import *
# from udbserver import * # uncomment this line if you want to debug
def pad_size(size):
@Handsome1080P
Handsome1080P / certificate-update.py
Created March 21, 2024 06:46 — forked from aman207/certificate-update.py
Fortigate wildcard certificate update
from fortigate_api import Fortigate
import base64
from datetime import datetime
import inotify.adapters
import inotify.constants
import requests
#Wildcard cert file location
CERT_FILE = ""
#Key file location
@Handsome1080P
Handsome1080P / vpnserver.service
Created August 13, 2023 02:58 — forked from hkato/vpnserver.service
Systemd Unit configuration for SoftEther VPN Server
[Unit]
Description=SoftEther VPN Server
After=network.target
[Service]
Type=forking
ExecStart=/usr/local/vpnserver/vpnserver start
ExecStop=/usr/local/vpnserver/vpnserver stop
ExecStartPost=/bin/sleep 5
ExecStartPost=/bin/bash -c "/bin/systemctl set-environment dev=$(ip addr | grep tap_ | sed 's/^.*: \(tap_.*\):.*$/\1/g')"
@Handsome1080P
Handsome1080P / interfaces
Created June 4, 2023 11:14 — forked from DazWorrall/interfaces
Interfaces file with vlans and vxlans
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
@Handsome1080P
Handsome1080P / mkinitcpio_nvidia.md
Created January 22, 2023 13:53 — forked from KavenTheriault/mkinitcpio_nvidia.md
Nvidia driver and mkinitcpio

Nvidia driver and mkinitcpio

First, install nvidia drivers

sudo pacman -S nvidia

Edit the following line of /etc/mkinitcpio.conf

MODULES=(i915? nouveau? vboxvideo? vmwgfx?)