This file contains 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
#!/usr/bin/env python | |
# encoding: utf-8 | |
from __future__ import absolute_import, unicode_literals | |
import tornado.ioloop | |
import tornado.httpserver | |
from tornado.options import parse_command_line, define, options | |
import tornado.httpclient | |
import tornado.web | |
import tornado.gen |
This file contains 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
[General] | |
# warning, notify, info, verbose | |
loglevel = notify | |
[Proxy] | |
# http, https, socks5 | |
Proxy = custom, 1.2.3.4, 443, rc4-md5, password, http://server/custom.module | |
[Rule] | |
# Block privacy trackers |
This file contains 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 'pagination.html' as pagination %} | |
{% call(page) pagination.paginate(page, last_page) %} | |
{{url_for('manage.order_list')}}?page={{page}}&status={{status}} | |
{% endcall %} |
This file contains 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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDbUXMYs9OFkH+0wt2aTeIdfs3t3czRfe5RxyXEude9XF6/93A1zt7ejqoZMejw0Ucp1AkWvWmNAlDhwi4f5NHnRpKGtNzmtEL1VEz3eN3SLI7WT3EfzE/5s01Ahn9TmExCDfU/UlKEYYEgCoRVWQ2HbRT9RDq3rBQsr6RZpkinqQjk4pSHLQhdEF7hjQrqhtsyOYbUCr2aohJaFj6hGZMXEyKazXmORW0zTGt4v7wefDyhyunZ9Is/10Uh//Wrkr/z1UV1CaBtyyHzA3YpDSXuapoOg1KDuM4v/7fwP1dguYoORKgh8azKaJqkbmzPTZfOXZ5ZnsmXct5HqhdncQ0p app@Luffy |
This file contains 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
sudo apt-get update -y && sudo apt-get upgrade -y | |
sudo useradd -m -G sudo -s /bin/bash cloverstd |
This file contains 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
{ | |
"ENCRYPT_KEY": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", | |
"ENCRYPT_IV": "AAAAAAAAAAAAAAAA", | |
"WORKER_URL": "http://11.11.11.3:9998/worker", | |
"WORKER_WS_URI": "ws://11.11.11.3:9998/worker/", | |
"SUPERVISOR_PROCESS_NAME": "shadowsocks", | |
"SUPERVISOR_CTL_PORT": 4999, | |
"SUPERVISOR_CTL_HOST": "127.0.0.1", | |
"DEBUG": true | |
} |
This file contains 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
package main | |
import ( | |
"flag" | |
"os/user" | |
"fmt" | |
"net/http" | |
go_path "path" | |
) |
This file contains 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
// 多说评论数目 | |
$(function() { | |
var threads = []; // thread-key | |
$('.post-title a').each(function(){threads.push($(this).attr('href'))}); | |
if (threads.length > 0) { | |
var duoshuo_api = "https://api.duoshuo.com/threads/counts.jsonp"; | |
var params = { | |
short_name: "sub-domain", // sub-domain.duoshuo.com | |
threads: threads.join(',') | |
}; |
This file contains 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
# http://support.ghost.org/supported-node-versions/ | |
FROM node:4-slim | |
RUN groupadd user && useradd --create-home --home-dir /home/user -g user user | |
RUN apt-get update && apt-get install -y \ | |
ca-certificates \ | |
wget \ | |
--no-install-recommends && rm -rf /var/lib/apt/lists/* |
This file contains 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
yum install -y boost boost-devel | |
yum install -y make gcc gcc-c++ kernel-devel python-devel | |
wget https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_0_10/libtorrent-rasterbar-1.0.10.tar.gz | |
tar zxvf libtorrent-rasterbar-1.0.10.tar.gz | |
cd libtorrent-rasterbar-1.0.10.tar.gz | |
./configure --disable-debug --with-boost-libdir=/usr/lib64 --disable-encryption --enable-python-binding | |
make && make install | |
export LD_LIBRARY_PATH=/usr/local/lib/ | |
cd bindings/python | |
python setup.py build |