Skip to content

Instantly share code, notes, and snippets.

View itsuwari's full-sized avatar

Lyndon Wu itsuwari

View GitHub Profile
user daemon
# PID file
pidfile /var/run/sniproxy.pid
resolver {
nameserver 114.114.114.114
mode ipv4_first
}
apt-get install -y git build-essential protobuf-compiler protobuf-c-compiler
autogen pkg-config\
libtalloc-dev libreadline-dev libpam0g-dev libhttp-parser-dev libpcl1-dev \
libgnutls28-dev libev-dev libprotobuf-c-dev libhttp-parser-dev libseccomp-dev gnutls-bin autoconf;
wget 'ftp://ftp.infradead.org/pub/ocserv/ocserv-0.11.8.tar.xz'
tar xvf ocserv*xz && rm oc*xz*
cd ocserv*
./configure --prefix=/usr --sysconfdir=/etc
make && make install
#For ASUS AC66u
#ID = ps | grep odhcp6c
odhcp6c -df -R -s /tmp/dhcp6c -N try -c 00030001708bcdcc8ec8 -FP 0:c8ec8 -r23 -r24 -r82 -r83 eth0
@itsuwari
itsuwari / topsis.py
Created March 15, 2020 18:46
Topsis in Python
import numpy as np
import warnings
class topsis:
a=None #Matrix
w=None #Weight matrix
r=None #Normalisation matrix
m=None #Number of rows
n=None #Number of columns
aw=[] #worst alternative
ab=[] #best alternative
@itsuwari
itsuwari / china-dnsmasq.conf
Created March 11, 2023 03:12
China dnsmasq.conf
This file has been truncated, but you can view the full file.
server=/0-100.com/114.114.114.114
server=/0-6.com/114.114.114.114
server=/00.net/114.114.114.114
server=/000.link/114.114.114.114
server=/00000.host/114.114.114.114
server=/00042.com/114.114.114.114
server=/00058.com/114.114.114.114
server=/0006266.com/114.114.114.114
server=/0007.net/114.114.114.114
server=/000714.xyz/114.114.114.114