Skip to content

Instantly share code, notes, and snippets.

View gist:51b1896d43edde32b7b06e99e2658135
<xml><appid><![CDATA[wxfaa6b06040717d79]]></appid>\n<bank_type><![CDATA[CFT]]></bank_type>\n<cash_fee><![CDATA[17800]]></cash_fee>\n<cash_fee_type><![CDATA[CNY]]></cash_fee_type>\n<fee_type><![CDATA[CNY]]></fee_type>\n<is_subscribe><![CDATA[N]]></is_subscribe>\n<mch_id><![CDATA[1235619002]]></mch_id>\n<nonce_str><![CDATA[yxszb1q5mxftoyvmq8l424jgntyd4y6d]]></nonce_str>\n<openid><![CDATA[oQ-MDs_JyAQmC6XMNUHVF4WBD-P0]]></openid>\n<out_trade_no><![CDATA[1000001780019589704926171]]></out_trade_no>\n<result_code><![CDATA[SUCCESS]]></result_code>\n<return_code><![CDATA[SUCCESS]]></return_code>\n<sign><![CDATA[13783C9B1B41AA605689AB1D00FB4C20]]></sign>\n<time_end><![CDATA[20170118173349]]></time_end>\n<total_fee>17800</total_fee>\n<trade_type><![CDATA[JSAPI]]></trade_type>\n<transaction_id><![CDATA[4007762001201701186753102590]]></transaction_id>\n</xml>
ED384D931642C0501F2FABF4C08369AA
13783C9B1B41AA605689AB1D00FB4C20
false
<xml><appid><![CDATA[wxfaa6b06040717d79]]></appid>\n<bank_type><![CDATA[CFT]]></bank_type>\n<
@reilost
reilost / GFW_ADBlock.conf
Created Feb 23, 2016 — forked from bao3/GFW_ADBlock.conf
由于 Surge for ios 的条目数量不能过大,导致手机内存不足,所以将 GFW 和 广告过滤集中后进行了人工挑选,压缩在 1万条左右,你仍然可以自己添加大约 900条规则,理论上足够你长久使用了,配置文件默认是直连,方便普通国内用户使用。配置文件中,我自己调整过的、有可能有误伤的条目我都放在了前面,方便你自己修改,不过运行自 2016/01 ~ 2016/02 我自己日常没有遇到问题。有误伤不要怕,打开软件可以自己调试添加。
View GFW_ADBlock.conf
[General]
#我的注释都是 # 开头,所以如果你用 vim,直接 :g/^#/d 就可以一次性清除所有注释
#开头这段skip包含以下几个目的:1,私网IP跳过,提高内网性能;2,苹果的一些服务跳过,比如公共热点wifi要先测试captive.apple.com。可解决很多内网的 TCP毛病,例如 kodi remote软件无法遥控
skip-proxy = 10.0.0.0/8,169.254/16,172.16.0.0/12,192.168.0.0/16,224.0.0.0/4, localhost, *.local,api.smoot.apple.com,configuration.apple.com,xp.apple.com,smp-device-content.apple.com,guzzoni.apple.com,captive.apple.com,*.ess.apple.com,*.push.apple.com,*.push-apple.com.akadns.net
#下面这一段则是完全跳过 Surge,最重要的一个是让 UDP包可以传输,解决很多内网毛病,例如DLNA,NFS或者btsync等组播类/UDP类应用
bypass-tun = 10.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.168.0.0/16, 224.0.0.0/4, 0.0.0.0/8, 1.0.0.0/9, 1.160.0.0/11, 1.192.0.0/11, 10.0.0.0/8, 14.0.0.0/11, 14.96.0.0/11, 14.128.0.0/11, 14.192.0.0/11, 27.0.0.0/10, 27.96.0.0/11, 27.128.0.0/9, 36.0.0.0/10, 36.96.0.0/11, 36.128.0.0/9, 39.0.0.0/11, 39.64.0.0/10, 39.128.0.0/10, 42.0.0.0/8, 43.224.0.0/11, 45.64.0.0/10, 47.64.0.0/10, 49.0.0.0/9, 49.128.0.0/11, 49.192.0.0/10, 54.192.0.0/11, 58.0.0.0/9, 58.128.0.0/11, 58.192.0.0/10, 59.32.0.0/11, 5
@reilost
reilost / build.gradle
Created Oct 7, 2015 — forked from Arakade/build.gradle
Updated 2014/07/05 for newer repositories syntax and missing Xalan dependency (needed on Windows)
View build.gradle
import com.petebevin.markdown.MarkdownProcessor
import org.xhtmlrenderer.pdf.ITextRenderer
import org.ccil.cowan.tagsoup.Parser
import org.apache.xalan.xsltc.trax.SAX2DOM
import org.xml.sax.InputSource
buildscript{
repositories {
mavenCentral() // i.e. http://repo1.maven.org/maven2
maven { url "https://oss.sonatype.org/content/groups/scala-tools" }
@reilost
reilost / UIImage+fixOrientation.h
Created Feb 7, 2012 — forked from alex-cellcity/UIImage+fixOrientation.h
UIImagePickerController Fix Orientation
View UIImage+fixOrientation.h
@interface UIImage (fixOrientation)
- (UIImage *)fixOrientation;
@end