替换上你的 API Token,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。
获得 domain_id 可以用 curl
curl -k https://dnsapi.cn/Domain.List -d "login_token=TOKEN"`替换上你的 API Token,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。
获得 domain_id 可以用 curl
curl -k https://dnsapi.cn/Domain.List -d "login_token=TOKEN"`| #!/bin/sh | |
| # Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
| # CREATE block and create them in separate commands _after_ all the INSERTs. | |
| # Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
| # The mysqldump file is traversed only once. | |
| # Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
| # Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
| /*jslint plusplus: true, vars: true, indent: 2 */ | |
| /* | |
| convertPointFromPageToNode(element, event.pageX, event.pageY) -> {x, y} | |
| returns coordinate in element's local coordinate system (works properly with css transforms without perspective projection) | |
| convertPointFromNodeToPage(element, offsetX, offsetY) -> {x, y} | |
| returns coordinate in window's coordinate system (works properly with css transforms without perspective projection) | |
| */ |
| /* ---------------------------------------------------------- */ | |
| /* */ | |
| /* A media query that captures: */ | |
| /* */ | |
| /* - Retina iOS devices */ | |
| /* - Retina Macs running Safari */ | |
| /* - High DPI Windows PCs running IE 8 and above */ | |
| /* - Low DPI Windows PCs running IE, zoomed in */ | |
| /* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
| /* - Android hdpi devices and above */ |
| #!/bin/bash | |
| ########################################################################### | |
| # Choose your ffmpeg version and your currently-installed iOS SDK version: | |
| # | |
| VERSION="2.0.2" | |
| SDKVERSION="7.0" | |
| ARCHS="armv7 armv7s i386" | |
| # | |
| # |
| private BadgeView mBadgeView; | |
| @Override | |
| public boolean onCreateOptionsMenu(Menu menu) { | |
| getSupportMenuInflater().inflate(R.menu.badge_demo, menu); | |
| MenuItem menuItem = menu.findItem(R.id.item_id); | |
| ImageButton iconView = new ImageButton(this, null, | |
| com.actionbarsherlock.R.style.Widget_Sherlock_ActionButton); | |
| iconView.setImageDrawable(menuItem.getIcon()); |
| # bash/zsh git prompt support | |
| # | |
| # Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
| # Distributed under the GNU General Public License, version 2.0. | |
| # | |
| # This script allows you to see repository status in your prompt. | |
| # | |
| # To enable: | |
| # | |
| # 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh). |
| var readline = require('readline'), | |
| fs = require('fs'); | |
| var LinkMap = function(filePath) { | |
| this.files = [] | |
| this.filePath = filePath | |
| } | |
| LinkMap.prototype = { | |
| start: function(cb) { |
| import android.util.Log; | |
| import com.squareup.leakcanary.AnalysisResult; | |
| import com.squareup.leakcanary.DisplayLeakService; | |
| import com.squareup.leakcanary.HeapDump; | |
| import retrofit.RestAdapter; | |
| import retrofit.RetrofitError; | |
| import retrofit.http.Multipart; | |
| import retrofit.http.POST; | |
| import retrofit.http.Part; | |
| import retrofit.mime.TypedFile; |
| # Copy and self modified from ys.zsh-theme, the one of default themes in master repository | |
| # Clean, simple, compatible and meaningful. | |
| # Tested on Linux, Unix and Windows under ANSI colors. | |
| # It is recommended to use with a dark background and the font Inconsolata. | |
| # Colors: black, red, green, yellow, *blue, magenta, cyan, and white. | |
| # http://xiaofan.at | |
| # 2 Jul 2015 - Xiaofan | |
| # Machine name. | |
| function box_name { |