Skip to content

Instantly share code, notes, and snippets.

View stattrak-dragonlore's full-sized avatar

patrick stattrak-dragonlore

View GitHub Profile
时间嘀嗒嘀嗒的走,抛弃了2009
有的人胖了有人更瘦,有人在欢喜有人忧愁.
抽风的电梯和食堂的油,消失的青春和蜂窝煤大楼
吸烟区不能对着门口,这一年我们没有出去旅游.
呼拉拉签下了魔兽,番薯急忙跳出来扮狗,
丫说不给我们营收,还要罚款让他们来喝酒
在这个放肆的时候,请跟我们一起大吼
(add-to-list 'load-path "~/.emacs.d")
(add-to-list 'load-path "~/.emacs.d/muse/lisp")
(add-to-list 'load-path "~/.emacs.d/vendor")
(progn (cd "~/.emacs.d/vendor")
(normal-top-level-add-subdirs-to-load-path))
(progn (cd "~"))
;; start emacs-server
(server-start)
Index: background.html
===================================================================
--- background.html (revision 15)
+++ background.html (working copy)
@@ -4,6 +4,7 @@
<head><title>Youdao Dictionary Extension</title></head>
<body>
<script type="text/javascript">
+ var disabled = false;
var dictCache = {};
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main(int argc, char *argv[])
{
// freopen("input", "r", stdin);
from cStringIO import StringIO
def gen_iptable_rules(rules):
"""
rules = [
(port, [allow_ip0, allow_ip1...]),
...
]
"""
iptables = StringIO()
@stattrak-dragonlore
stattrak-dragonlore / about.md
Created August 11, 2011 06:37 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
set showcmd
set nu
syntax on
set autoindent
set smartindent
color torte
set hlsearch
set ts=4
set expandtab
set shiftwidth=4
@stattrak-dragonlore
stattrak-dragonlore / w3g_format.txt
Created September 1, 2011 05:37
WarCraft III Replay file format description
*******************************************************************************
* WarCraft III Replay file format description *
* *
* document version: 1.18 *
* document date : 2007-06-26 *
* document authors: blue, nagger *
* *
* For more informtion about w3g file format, please visit: *
* http://w3g.deepnode.de *
* *
@stattrak-dragonlore
stattrak-dragonlore / meet-in-the-middle.py
Created January 4, 2012 12:41
demo of meet-in-the-middle attack (32bit)
# http://www.nruns.com/_downloads/advisory28122011.pdf
# http://bugs.python.org/issue13703
import sys
import string
import itertools
# hash function used by python string object
def hash(s):
slen = len(s)