This file contains hidden or 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
| /* | |
| 12306 Auto Query => A javascript snippet to help you book tickets online. | |
| 12306 Booking Assistant | |
| Copyright (C) 2011 Hidden | |
| 12306 Auto Query => A javascript snippet to help you book tickets online. | |
| Copyright (C) 2011 Jingqin Lynn | |
| 12306 Auto Login => A javascript snippet to help you auto login 12306.com. | |
| Copyright (C) 2011 Kevintop |
This file contains hidden or 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
| 0x01F1bcFA0C2072e2Af744D92a2d35A9de6521025 |
This file contains hidden or 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
| #install deps | |
| apt-get update | |
| apt-get install -y gnutls-bin iptables libnl-route-3-200 libseccomp2 libwrap0 openssl curl --no-install-recommends | |
| buildDeps=" \ | |
| autoconf \ | |
| autogen \ | |
| ca-certificates \ | |
| gcc \ | |
| gperf \ | |
| libgnutls28-dev \ |
This file contains hidden or 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
| good, 你已经有了一个自己的shadowsocks代理了,现在想要把这个代理公布出去给所有人分享。 | |
| 但是没有两个小时,代理就没法使用了,为什么?因为你需要额外注意以下事项(以下步骤需要比较高的linux技能) | |
| 本文只关注于确保shadowsocks服务还“活着”,如果你希望让其跑得更快,请参考 | |
| https://github.com/clowwindy/shadowsocks/wiki/Optimizing-Shadowsocks | |
| 1、 shadowsocks的timeout设置 | |
| 超时时间越长,连接被保持得也就越长,导致并发的tcp的连接数也就越多。对于公共代理,这个值应该调整得小一些。推荐60秒。 | |
| 2、 检查操作系统的各种限制 | |
| 对于openvz的vps,特别需要检查一下 |
This file contains hidden or 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
| server { | |
| listen 80; | |
| server_name pic.example.com; | |
| root /path_to/images; | |
| location / { | |
| index index.html; | |
| } | |
This file contains hidden or 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
| /*=====日历控件=========*/ | |
| .calendar2{*width:536px;} | |
| .calendar1{*width:268px;} | |
| .calendar{ | |
| border: 1px solid #e1e1e1; | |
| background-color: #ffffff; | |
| border: 1px solid #ccc; | |
| border: 1px solid rgba(0, 0, 0, 0.2); | |
| -webkit-border-radius: 2px; | |
| -moz-border-radius: 2px; |
This file contains hidden or 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 socket | |
| real_create_conn = socket.create_connection | |
| def set_src_addr(*args): | |
| address, timeout = args[0], args[1] | |
| source_address = ('IP_ADDR_TO_BIND_TO', 0) | |
| return real_create_conn(address, timeout, source_address) | |
| socket.create_connection = set_src_addr |
This file contains hidden or 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
| <?php | |
| /** | |
| * 根据指定类生成SOAP WSDL文件 | |
| * | |
| * @version 0.2 | |
| * @author Jerry lxb429@foxmail.com | |
| * @example PhpWSDL::genWSDL("ClassName", "http://localhost/soap") | |
| */ |
This file contains hidden or 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/bash | |
| ### USAGE | |
| ### | |
| ### ./ElasticSearch.sh 1.7 will install Elasticsearch 1.7 | |
| ### ./ElasticSearch.sh will fail because no version was specified (exit code 1) | |
| ### | |
| ### CLI options Contributed by @janpieper | |
| ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch |
This file contains hidden or 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
| <?php | |
| error_reporting(7); | |
| ob_start(); | |
| $mtime = explode(' ', microtime()); | |
| $starttime = $mtime[1] + $mtime[0]; | |
| $admin['check'] = "1"; | |
| $retime = "yes"; |
NewerOlder