替换上你的 API Token,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。
获得 domain_id 可以用 curl
curl -k https://dnsapi.cn/Domain.List -d "login_token=TOKEN"`| // | |
| // Regular Expression for URL validation | |
| // | |
| // Author: Diego Perini | |
| // Created: 2010/12/05 | |
| // Updated: 2018/09/12 | |
| // License: MIT | |
| // | |
| // Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
| // |
替换上你的 API Token,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。
获得 domain_id 可以用 curl
curl -k https://dnsapi.cn/Domain.List -d "login_token=TOKEN"`| #!/usr/bin/env python | |
| import sys | |
| import time | |
| from flask import Flask | |
| from PyQt4 import QtCore, QtGui, QtWebKit | |
| import gevent.wsgi |
| #!/usr/bin/env python | |
| # coding: utf-8 | |
| class AttrDict(object): | |
| def __init__(self, init=None): | |
| if init is not None: | |
| self.__dict__.update(init) | |
| def __getitem__(self, key): | |
| return self.__dict__[key] |
| #! /usr/bin/env python | |
| #coding=utf-8 | |
| #----config part---- | |
| INIT_CMDS = ["iptables -F",#clean all | |
| "iptables -X", | |
| "iptables -t nat -F", | |
| "iptables -t nat -X", | |
| "iptables -P INPUT DROP",#forbid all | |
| "iptables -A INPUT -i lo -j ACCEPT"#accept all localhost |
This gist assumes:
| // Plain text URL to anchor tags Handlebars Helper | |
| (function(){ | |
| // defines markup enhancement regex | |
| var protocol = /(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim | |
| , scheme = /(^|[^\/])(www\.[\S]+(\b|$))/gim; | |
| /* | |
| * Registers a Helper method with handlebars which, given a string of | |
| * plain text or existing markup, provides enhancements of plain text |
This is a local copy of the commands from:
This guide serves as a reference of collected information necessary for strict management of PGP keys. This includes keeping a master key that always remains
| import sys | |
| from PyQt4 import QtGui | |
| from PyQt4 import QtCore | |
| from PyQt4.QtCore import Qt | |
| class DragFromWidget(QtGui.QDockWidget): | |
| def __init__(self, parent=None): | |
| super(DragFromWidget, self).__init__(parent=parent) |
#The Great Firewall (GFW) Contributors List
注:数据来源为 dblp 和 cndblp, 下面括号中的数字表示 dblp 中显示的跟方滨兴合作论文的数量
###Binxing Fang (方滨兴)
中国工程院院士,北京邮电大学教授,中国科学院计算技术研究所网络方向首席科学家
http://en.wikipedia.org/wiki/Fang_Binxing