Please see this for more detail.
The formated cert is here
| <? | |
| $mmc = memcache_init(); | |
| /** | |
| * 将分数转化为浮点数 | |
| **/ | |
| function Deci_Con($coordPart){ | |
| $parts = explode('/', $coordPart);// 将 "/" 的两边数据转化为数组 | |
| if (count($parts) <= 0) |
| # WP Super Cache rules. | |
| # Designed to be included from a 'wordpress-ms-...' configuration file. | |
| set $cache_uri $uri; | |
| # POST requests and urls with a query string should always go to PHP | |
| if ($request_method = POST) { | |
| set $cache_uri 'null cache'; | |
| } |
| <?php | |
| function tlo_comment_mail_notify($comment_id) { | |
| global $comment_author; | |
| $comment = get_comment($comment_id); | |
| $parent_id = $comment->comment_parent ? $comment->comment_parent : ''; | |
| $spam_confirmed = $comment->comment_approved; | |
| $from = $comment->comment_author_email; | |
| $to = get_comment($parent_id)->comment_author_email; | |
| if (($parent_id != '') && ($spam_confirmed != 'spam') && $from != $to && $to != get_bloginfo('admin_email') ) { | |
| $blog_name = get_option('blogname'); |
| jQuery.noConflict(); | |
| jQuery(document).ready(function($) { | |
| // ... | |
| $('#commentform').submit(function() { | |
| _paq.push(['trackGoal', '1']); // logs a conversion for goal 1 | |
| }); | |
| // ... | |
| }); |
| #!/bin/sh | |
| # A simple DDNS tool written in shell, support Rage4, Hurricane Electric DNS and Hurricane Electric Tunnel Broker. | |
| # @version 0.1.2 | |
| # Global Settings, set to ture to enable | |
| use_ipv4=false; | |
| use_ipv6=false; | |
| logfile="/var/log/ddns.log"; # Set it to "/dev/null" to disable log. | |
| get_ip_service="http://api.tlo.xyz:8081/myip/ip.php"; # Need to support IPv4 and IPv6 |
| addEventListener('fetch', event => { | |
| event.respondWith(fetchAndApply(event.request)) | |
| }) | |
| async function fetchAndApply(request) { | |
| if(request.url === 'https://api.tloxygen.com/ip' || request.url === 'http://api.tloxygen.com/ip') { | |
| const ip = request.headers.get('cf-connecting-ip') | |
| return new Response(ip) | |
| } else if (request.url === 'https://api.tloxygen.com/country' || request.url === 'http://api.tloxygen.com/country') { | |
| const ip = request.headers.get('cf-ipcountry') |
| #!/bin/bash | |
| # 北工大选课软件 | |
| export ALL_PROXY="" | |
| b="" | |
| # 需要改三个地方 | |
| # 1. 替换 URL | |
| url="http://gdjwgl.bjut.edu.cn/xf_xsqxxxk.aspx?xh=18080108&xm=%B9%F9%D4%F3%D3%EE&gnmkdm=N121113" | |
| # 2. 替换 POST 的数据 |
| #!/bin/bash | |
| for (( ; ; )); do | |
| mv new.json old.json 2> /dev/null | |
| curl 'https://www.ems.com.cn/apple/getMailNoRoutes' --data-raw 'mailNum=EZ690XXXXXXCN' -s > new.json | |
| DIFF_OUTPUT="$(diff new.json old.json)" | |
| if [ "0" != "${#DIFF_OUTPUT}" ]; then | |
| # Send notification here | |
| echo "CHANGED" | |
| fi |
| #!/bin/bash | |
| for (( ; ; )); do | |
| mv new.txt old.txt 2> /dev/null | |
| curl "https://www.apple.com.cn/xc/cn/vieworder/W123456789/[email protected]" -s -L | grep "currentStatus" | jq '.orderDetail.orderItems."orderItem-0000101".orderItemStatusTracker.d.currentStatus' > new.txt | |
| DIFF_OUTPUT="$(diff new.txt old.txt)" | |
| if [ "0" != "${#DIFF_OUTPUT}" ]; then | |
| // DO SOMETHING HERE | |
| fi | |
| sleep 300 |