Skip to content

Instantly share code, notes, and snippets.

View itsuwari's full-sized avatar

Lyndon Wu itsuwari

View GitHub Profile
@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
@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
#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
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
user daemon
# PID file
pidfile /var/run/sniproxy.pid
resolver {
nameserver 114.114.114.114
mode ipv4_first
}
{
"file": 1,
"format": 1
}{
"trackers": [
{
"url": "http://tracker.tfile.me:80/announce"
},
{
"url": "http://share.camoe.cn:8080/announce"
<link rel="stylesheet" href="https://comment.back.re/dist/iDisqus.min.css" />
<script src="https://comment.back.re/dist/iDisqus.min.js"></script>
<div id="comment"></div>
var disq = new iDisqus('comment', {
forum: 'hampus-blog',
api: 'https://comment.back.re/api',
site: 'https://back.re',
mode: 1,
timeout: 3000,
init: true
@itsuwari
itsuwari / x.s
Last active November 16, 2017 15:08
TITLE integer summation Program
;
;
;
;
INCLUDE Irvine32.inc
INTERGER_COUNT = 3
.data
str1 byte "enter a signe integer:",0
@itsuwari
itsuwari / login.py
Last active September 11, 2019 04:37
import urllib2
import urllib
from time import sleep
def login(username, passwd, v6):
post_t = {
'0MKKey': '123456789',
'v6ip': v6,
'DDDDD': username,
'upass': passwd

Keybase proof

I hereby claim:

  • I am itsuwari on github.
  • I am rikawu (https://keybase.io/rikawu) on keybase.
  • I have a public key whose fingerprint is AF98 B9E3 4B86 6057 2F09 CF03 FF83 57D7 2976 23D6

To claim this, I am signing this object: