Skip to content

Instantly share code, notes, and snippets.

View cloverstd's full-sized avatar
🀄
Working for living

cloverstd cloverstd

🀄
Working for living
View GitHub Profile
@cloverstd
cloverstd / init.sh
Created March 20, 2016 07:14
VPS init
sudo apt-get update -y && sudo apt-get upgrade -y
sudo useradd -m -G sudo -s /bin/bash cloverstd
@cloverstd
cloverstd / gist:6fec37d89a946e090a10
Created March 1, 2016 11:18
APP@DigitalOcean-Luff Public Key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDbUXMYs9OFkH+0wt2aTeIdfs3t3czRfe5RxyXEude9XF6/93A1zt7ejqoZMejw0Ucp1AkWvWmNAlDhwi4f5NHnRpKGtNzmtEL1VEz3eN3SLI7WT3EfzE/5s01Ahn9TmExCDfU/UlKEYYEgCoRVWQ2HbRT9RDq3rBQsr6RZpkinqQjk4pSHLQhdEF7hjQrqhtsyOYbUCr2aohJaFj6hGZMXEyKazXmORW0zTGt4v7wefDyhyunZ9Is/10Uh//Wrkr/z1UV1CaBtyyHzA3YpDSXuapoOg1KDuM4v/7fwP1dguYoORKgh8azKaJqkbmzPTZfOXZ5ZnsmXct5HqhdncQ0p app@Luffy
@cloverstd
cloverstd / call.html
Created October 16, 2015 01:51
Flask macro gist
{% import 'pagination.html' as pagination %}
{% call(page) pagination.paginate(page, last_page) %}
{{url_for('manage.order_list')}}?page={{page}}&status={{status}}
{% endcall %}
@cloverstd
cloverstd / surge.conf
Created October 4, 2015 04:04 — forked from janlay/README.md
Yet another config for Surge.app
[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
@cloverstd
cloverstd / shanbay2rss.py
Last active October 3, 2015 15:03
扇贝打卡 RSS 源
#!/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
@cloverstd
cloverstd / jobs.py
Last active August 29, 2015 14:20
python-rq with tornado asynchronous
#!/usr/bin/env python
# encoding: utf-8
import time
def test(interval):
for i in xrange(int(interval)):
print i
time.sleep(1)
@cloverstd
cloverstd / public_key
Last active August 29, 2015 14:20
gench key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDolyzLgc+keal0kSgpG24smd8pk0c7jgzcebRMrWiTqYpcu8ber6KjUf8nBLKVvx8t2K40c+xIUA7ptMryXiAz6tCckFC2rTmp7S7gqdjpEk0HgGU+m/WliZDyV1X0cYqiG2y/KlizDxgR40uAYXhRgT3dfrcQi5GO9qg+dUDip9lBsF2f/lnOOmYOVJMEHu77NklyWOMa3DJF1BiTxe+CtFd4sU0P7oidemik099HqWSf3lgxYqu/rgqCumLIHWF/CI8714xlfe64lcsTwMJsd7xL0qgTYvDmLmynFKwQEsDgvcZcRNEEI5pkC9kZ9/rQBDr8yaobArRo7QGXM3KD cloverstd@gmail.com
@cloverstd
cloverstd / aliyun.sources.list
Last active August 31, 2016 05:03 — forked from taichunmin/aliyun.sources.list
阿里云 ubuntu 14.04 镜像
# deb http://mirrors.aliyun.com/ubuntu trusty main restricted
# deb http://mirrors.aliyuncs.com/ubuntu trusty main restricted
# deb http://mirrors.aliyun.com/ubuntu trusty-updates main restricted
# deb http://mirrors.aliyuncs.com/ubuntu trusty-updates main restricted
# deb http://security.ubuntu.com/ubuntu trusty-security main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirrors.aliyun.com/ubuntu trusty main restricted
@cloverstd
cloverstd / app.py
Last active November 4, 2019 21:33
微信二维码扫描登录
#!/usr/bin/env python
# encoding: utf-8
import tornado.ioloop
import tornado.httpclient
import tornado.web
import tornado.gen
import json
import tornado.websocket
import Queue
@cloverstd
cloverstd / main.py
Last active August 29, 2015 14:06
IFTTT webhook by Python with Tornado
#!/usr/bin/env python
# encoding: utf-8
from tornadorpc.xml import XMLRPCHandler
import tornado.ioloop
import tornado.httpserver
import tornado.web