See here fffonion/PNAE
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
<html> | |
<head><title>vmstat</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"></head> | |
<body> | |
<?php | |
$simple = isset($_GET['simple'])?true:false; | |
function reasonable_size($s){ | |
if($s<1000) | |
return $s."B"; | |
else if($s<1024000) |
(empty)
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
import os | |
import re | |
import time | |
import httplib2 | |
from deluge_client import DelugeRPCClient | |
base_url = 'http://--CENSORED-BY-GFW--' | |
headers = { | |
'User-Agent':'Mozilla/5.0 xxxxx', | |
'Accept-Language':'zh-CN,zh;q=0.8', |
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
#coding=utf-8 | |
__version__=1.4 | |
#1.2 修正补全图片url时出现的bug | |
#1.3 htmlescape | |
#1.4 flash的BBCOD优化,调整大小;字体调整为雅黑,标题放大 | |
import urllib2,re,win32clipboard as clipboard,time,win32con,os,sys | |
import random | |
import httplib2 | |
import datetime | |
baseurl='http://www.dm123.cn' |
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
import math | |
class calc(): | |
WAKE_FAIRY,NORMAL_FAIRY=True,False | |
NORMAL_FAIRY_1,NORMAL_FAIRY_2,WAKE_FAIRY=0,1,2 | |
@classmethod | |
def item_get(cls,fairy_lv,is_wake=False,damage_hp=0): | |
''' | |
收集品获得量计算器 | |
''' |
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
import os | |
import re | |
from distutils.version import LooseVersion, StrictVersion | |
#def versiontuple(v): | |
# return tuple(map(int, (v.split(".")))) | |
dir='D:\\Dev\\Java\\eclipse.x86\\plugins' | |
del_dir=os.path.join(dir,'_delete') | |
plugin=os.listdir(dir) | |
plugin_dict={} | |
for p in plugin: |
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
#coding:utf-8 | |
import httplib2 | |
import hashlib | |
import random | |
import json | |
alphanum='0123456789abcdef' | |
verify=lambda x:hashlib.md5("J]KcRe(dxmk5cMS-%sJ]KcRe(dxmk5cMS-"%x).hexdigest() | |
mac_gen=lambda :':'.join([random.choice(alphanum)+random.choice(alphanum)*(j/j) for j in range(1,6) ]) | |
mac=mac_gen() | |
uri='mac=%sverify=%s'%(mac,verify(mac)) |
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
data segment | |
OBUF DB '$' | |
OBUF1 DB 0AH,0DH,'Please input N(0-255):$' | |
IBUF DB 3 DUP(?),'=$' | |
OUT_D DB 0AH,0DH,'N=$' | |
OUT_H DB 'H=$' | |
OUT_B DB 'B',0AH,0DH,'$' | |
data ends | |
code segment |
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/env python2 | |
# coding:utf-8 | |
# Tool for decoding ComidDown site files (.cdp) | |
# Contributor: | |
# fffonion <fffonion@gmail.com> | |
import json | |
import struct | |
import zlib | |
f=open(r'178.cdp','rb') | |
cnt,sign=struct.unpack('<Ix3s',f.read(8)) |