Skip to content

Instantly share code, notes, and snippets.

@undoZen
undoZen / README.md
Last active December 17, 2015 23:49 — forked from chuangbo/README.md
自动更新你的 dnspod.cn 托管的域名

替换上你的Email,密码,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。

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

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

updated by undoZen:

// non-blocking GitHub Gist embed code jQuery plugin
// usage:
// 1. <div data-gist=your_gist_id><a href="http://gist.github.com/your_gist_id">your_gist_filename on GitHub Gist</a></div> in html
// 2. $('<div/>').embedGist(your_gist_id).appendTo('article'); in javascript
;(function ($) {
$.fn.embedGist = (function () {
var gistWriteFunc = {},
gistWrited = {},
addGist = function (gistId, $el) {
if (!gistWriteFunc[gistId]) {