Skip to content

Instantly share code, notes, and snippets.

View xxr3376's full-sized avatar

Xinran Xu xxr3376

View GitHub Profile
@xxr3376
xxr3376 / backgrounder.go
Created September 20, 2017 01:24
Backgrounder
package main
import (
"flag"
"io"
"net"
"time"
"golang.org/x/net/proxy"
$ LD_PRELOAD=$PWD/sendmsg.so dig twitter.com @8.8.8.8
;; Warning: Message parser reports malformed message packet. <-- malformed 因为把压缩指针当作域名一部分了
;; Question section mismatch: got twitter.com/RESERVED0/CLASS256
; <<>> DiG 9.9.5-3-Ubuntu <<>> twitter.com @8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44722
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1
@xxr3376
xxr3376 / svm.py
Last active August 29, 2015 14:11 — forked from mblondel/svm.py
# Mathieu Blondel, September 2010
# License: BSD 3 clause
import numpy as np
from numpy import linalg
import cvxopt
import cvxopt.solvers
def linear_kernel(x1, x2):
return np.dot(x1, x2)
requests==2.4.3
rsa==3.1.4
#!/bin/sh
#
# /etc/rc.d/init.d/supervisord
#
# Supervisor is a client/server system that
# allows its users to monitor and control a
# number of processes on UNIX-like operating
# systems.
#
# chkconfig: - 64 36
@xxr3376
xxr3376 / error
Created August 31, 2013 07:23
error
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF" class="table_title_zi25">
<tbody><tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#E9CBF3">
<tbody><tr>
<td width="9%" height="25" class="copyright_zi_hui_b_shadow"></td>
<td width="13%" class="copyright_zi_hui_b_shadow"><div align="center">星期一</div></td>
<td width="13%" class="copyright_zi_hui_b_shadow"><div align="center">星期二 </div></td>
<td width="13%" class="copyright_zi_hui_b_shadow"><div align="center">星期三 </div></td>
<td width="13%" class="copyright_zi_hui_b_shadow"><div align="center">星期四 </div></td>
<td width="13%" class="copyright_zi_hui_b_shadow"><div align="center">星期五 </div></td>
npm WARN package.json dateformat@1.0.2-1.2.3 No repository field.
npm WARN package.json faye-websocket@0.4.4 'repositories' (plural) Not supported
.
npm WARN package.json Please pick one as the 'repository' field