Skip to content

Instantly share code, notes, and snippets.

[custom]
enable_rule_generator=true
overwrite_original_rules=true
custom_proxy_group=Fallback`fallback`.*`http://www.gstatic.com/generate_204`300
custom_proxy_group=AutoTest`url-test`.*`http://www.gstatic.com/generate_204`300
custom_proxy_group=HK`url-test`(HK|香港)`http://www.gstatic.com/generate_204`300
custom_proxy_group=TW`url-test`(TW|台湾)`http://www.gstatic.com/generate_204`300
custom_proxy_group=SG`url-test`(SG|新加坡)`http://www.gstatic.com/generate_204`300
custom_proxy_group=JP`url-test`(JP|日本)`http://www.gstatic.com/generate_204`300
@harv
harv / cross_and_static_compile_shadowsocks-libev.sh
Last active February 18, 2024 12:05
cross & static compile shadowsocks-libev
#!/bin/sh
# cross & static compile shadowsocks-libev
PCRE_VER=8.41
PCRE_FILE="http://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$PCRE_VER.tar.gz"
MBEDTLS_VER=2.6.0
MBEDTLS_FILE="https://tls.mbed.org/download/mbedtls-$MBEDTLS_VER-gpl.tgz"
@harv
harv / glibc-2.17_centos6.sh
Last active March 1, 2024 08:42
update glibc to 2.17 for CentOS 6
#! /bin/sh
# update glibc to 2.17 for CentOS 6
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-2.17-55.el6.x86_64.rpm
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-common-2.17-55.el6.x86_64.rpm
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-devel-2.17-55.el6.x86_64.rpm
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-headers-2.17-55.el6.x86_64.rpm
sudo rpm -Uvh glibc-2.17-55.el6.x86_64.rpm \
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Harv.c</author>
<sampleQuery>select * from {table} where url="http://www.tudou.com/v/CTBL4A12JGc/v.swf" and referer="http://e.weibo.com/tudoupebble"</sampleQuery>
</meta>
<bindings>
<select itemPath="" produces="json">
<inputs>
<key id="url" type="xs:string" paramType="variable" required="true" />