Skip to content

Instantly share code, notes, and snippets.

@crhan
crhan / install-setup.txt
Last active October 9, 2018 06:16 — forked from dropwhile/install-setup.txt
python serialization speed comparison
virtualenv --no-site-packages hodor
hodor/bin/pip install simplejson ujson cbor tnetstring msgpack-python
curl -s 'http://www.json-generator.com/api/json/get/cvfsLVmKiG?indent=2' > test.json
hodor/bin/python shootout.py
@crhan
crhan / README.md
Last active April 12, 2017 22:56 — forked from chuangbo/README.md
Python dynamic DNSPod DNS Script

替换上你的 Token,域名ID,记录ID等参数,就可以运行了。 跟原代码不同的是,该版本每次执行就运行一次,方便使用调度系统来进行调度

获得domain_id可以用curl curl -k https://dnsapi.cn/Domain.List -d "login_token=xxx"

获得record_id类似 curl -k https://dnsapi.cn/Record.List -d "login_token=xxx&domain_id=xxx"

PREFIX="/usr/local"
RBENV_PREFIX="$PREFIX/rbenv"
BIN_PATH="$PREFIX/bin"
RBENV_GROUP="rbenv"
umask 002
## Install rbenv, ruby-build and rbenv-gem-rehash
git clone git://github.com/sstephenson/rbenv.git $RBENV_PREFIX