替换上你的 API Token,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。
获得 domain_id 可以用 curl
curl -k https://dnsapi.cn/Domain.List -d "login_token=TOKEN"`| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: supervisord | |
| # Required-Start: $remote_fs | |
| # Required-Stop: $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Example initscript | |
| # Description: This file should be used to construct scripts to be | |
| # placed in /etc/init.d. |
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: FastCGI servers for Django | |
| # Required-Start: networking | |
| # Required-Stop: networking | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: S 0 1 6 | |
| # Short-Description: Start FastCGI servers with Django. | |
| # Description: Django, in order to operate with FastCGI, must be started | |
| # in a very specific way with manage.py. This must be done |
替换上你的 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 | |
| # -*- coding: utf-8 -*- | |
| """Simple async crawler/callback queue based on gevent.""" | |
| import traceback | |
| import logging | |
| import httplib2 | |
| import gevent |
| class StreamHandler(tornado.web.RequestHandler): | |
| @tornado.web.asynchronous | |
| def get(self): | |
| self.post() | |
| @tornado.web.asynchronous | |
| def post(self): | |
| self.ioloop = tornado.ioloop.IOLoop.instance() | |
| self.pipe = self.get_pipe() | |
| self.ioloop.add_handler( |
| #!/usr/bin/python | |
| """ | |
| A simple threaded caching HTTP proxy. | |
| Hereward Cooper <[email protected]> | |
| v0.1 | |
| """ | |
| LISTENPORT = 8000 | |
| LISTENINT = '127.0.0.1' |
| # Copyright 2009-2010 Joshua Roesslein | |
| # See LICENSE for details. | |
| import httplib | |
| import urllib | |
| import time | |
| import re | |
| from weibopy.error import WeibopError | |
| from weibopy.utils import convert_to_utf8_str |
| # !/bin/bash | |
| # Copyright (c) 2011 Float Mobile Learning | |
| # http://www.floatlearning.com/ | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining | |
| # a copy of this software and associated documentation files (the "Software"), | |
| # to deal in the Software without restriction, including without limitation | |
| # the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
| # and/or sell copies of the Software, and to permit persons to whom the |
| for f in $(find $1 -iname "*.wsp"); do | |
| if [ -a $f ]; | |
| then /opt/graphite/bin/whisper-set-aggregation-method.py $f max; | |
| fi; | |
| done |
| #!/usr/bin/env python | |
| import gevent.monkey | |
| gevent.monkey.patch_all() | |
| import boto | |
| import config | |
| import gevent | |
| import gevent.pool | |
| import os |