Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
// ==UserScript== | |
// @name BYR BBS ip2location | |
// @namespace http://bbs.byr.cn/ | |
// @description 使北邮人论坛用户发贴IP地址后附加物理地址信息 | |
// @include http://forum.byr.edu.cn/* | |
// @include http://forum.byr.cn/* | |
// @include http://bbs.byr.edu.cn/* | |
// @include http://bbs6.byr.edu.cn/* | |
// @include http://bbs.byr.cn/* | |
// @include http://bbs6.byr.cn/* |
// ==UserScript== | |
// @name Show bupt library in douban | |
// @namespace http://bbs.byr.cn/ | |
// @description 在豆瓣读书页面显示该图书在北邮图书馆的信息 | |
// @include http://book.douban.com/subject/* | |
// @version 1.1 | |
// @author joest([email protected]) | |
// @author John Wong([email protected]) | |
// ==/UserScript== |
#coding=utf-8 | |
import argparse | |
import re | |
import sys | |
import os | |
reload(sys) | |
sys.setdefaultencoding('utf8') |
#define HEXCOLORA(rgbValue, a) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16)) / 255.0 green:((float)((rgbValue & 0xFF00) >> 8)) / 255.0 blue:((float)(rgbValue & 0xFF)) / 255.0 alpha:a] | |
#define HEXCOLOR(rgbValue) HEXCOLORA(rgbValue, 1.0) | |
// HEXCOLOR(0xef0708) |
#!/bin/bash | |
XCODE_UUID=$(defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID) | |
PLUGIN_PATH="$HOME/Library/Application Support/Developer/Shared/Xcode/Plug-ins" | |
for plugin in "$PLUGIN_PATH"/*.xcplugin ; do | |
defaults write "${plugin}"/Contents/Info DVTPlugInCompatibilityUUIDs -array-add $XCODE_UUID | |
done |
#!/bin/bash | |
export THEOS=/opt/theos | |
# clone theos.git | |
cd /opt | |
git clone git://github.com/DHowett/theos.git | |
# clone iphoneheaders.git | |
cd $THEOS | |
mv include include.bak |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
@implementation XCDUUID | |
+ (void) load | |
{ | |
// query runtime if NSUUID class already exists, if so => done | |
if (objc_getClass("NSUUID")) | |
{ | |
return; | |
} | |
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Subscriptions - WHY</title> | |
</head> | |
<body> | |
<outline text="cool" title="cool"> | |
<outline htmlUrl="http://kedebug.com/" title="kedebug" xmlUrl="http://kedebug.com/atom.xml" type="rss" text="kedebug"/> | |
<outline htmlUrl="http://lucida.me/" title="Lucida" xmlUrl="http://lucida.me/atom.xml" type="rss" text="Lucida"/> | |
<outline htmlUrl="http://www.wbrecom.com" title="微博推荐" xmlUrl="http://www.wbrecom.com/?feed=rss2" type="rss" text="微博推荐"/> |
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>晓哲 subscriptions in feedly Cloud</title> | |
</head> | |
<body> | |
<outline text="前端" title="前端"> | |
<outline type="rss" text="掌心" title="掌心" xmlUrl="http://www.zhanxin.info/feed.xml" htmlUrl="http://www.zhanxin.info/feed.xml"/> | |
<outline type="rss" text="Blog of Wenli Zhang" title="Blog of Wenli Zhang" xmlUrl="http://zhangwenli.com/blog/feed.xml" htmlUrl="http://zhangwenli.com/blog"/> |