替换上你的 API Token,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。
获得 domain_id 可以用 curl
curl -k https://dnsapi.cn/Domain.List -d "login_token=TOKEN"`| -- Reasonably efficient pagination without OFFSET | |
| -- SQLite version (Adapted from MS SQL syntax) | |
| -- Source: http://www.phpbuilder.com/board/showpost.php?p=10376515&postcount=6 | |
| SELECT foo, bar, baz, quux FROM table | |
| WHERE oid NOT IN ( SELECT oid FROM table | |
| ORDER BY title ASC LIMIT 50 ) | |
| ORDER BY title ASC LIMIT 10 |
| object IntepreterFix { | |
| import scala.tools.nsc._ | |
| import Interpreter._ | |
| def break(args: DebugParam[_]*): Unit = { | |
| val intLoop = new InterpreterLoop | |
| intLoop.settings = { | |
| val s = new Settings(Console.println) | |
| // need to pass this explicitly to the settings for Scalac. | |
| // See: http://old.nabble.com/-scala--recent-changes-in-2.8-nightly-classpath-management-td26233977.html |
替换上你的 API Token,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。
获得 domain_id 可以用 curl
curl -k https://dnsapi.cn/Domain.List -d "login_token=TOKEN"`| object StandardBuild { | |
| lazy val standardSettings: Seq[Project.Setting[_]] = | |
| Defaults.defaultSettings ++ compilerSettings | |
| lazy val scalacBaseOptions = SettingKey[Seq[String]]("scalac-base-options", "Options for the Scala Compiler in all modes") | |
| lazy val scalacSnapshotOptions = SettingKey[Seq[String]]("scalac-snapshot-options", "Options for the Scala Compiler in Development Mode") | |
| lazy val scalacReleaseOptions = SettingKey[Seq[String]]("scalac-release-options", "Options for the Scala Compiler in Release Build") | |
| lazy val compilerSettings: Seq[Project.Setting[_]] = Seq( | |
| scalacSnapshotOptions := Seq("-Xcheckinit"), |
| autoCompilerPlugins := true | |
| addCompilerPlugin("org.scala-lang.plugins" % "continuations" % "2.9.1") | |
| scalacOptions += "-P:continuations:enable" |
| package net.toutantic.jgit; | |
| import static org.junit.Assert.*; | |
| import java.io.File; | |
| import java.io.FileWriter; | |
| import java.io.IOException; | |
| import java.util.Collection; | |
| import java.util.Iterator; |
| import java.io.IOException; | |
| import java.lang.management.ManagementFactory; | |
| import java.util.Set; | |
| import javax.management.MBeanServer; | |
| import javax.management.ObjectName; | |
| /** | |
| * Print the Collector used in the program. | |
| * @author khotyn |
| import java.io.*; | |
| import java.util.*; | |
| import sun.jvm.hotspot.memory.*; | |
| import sun.jvm.hotspot.oops.*; | |
| import sun.jvm.hotspot.debugger.*; | |
| import sun.jvm.hotspot.runtime.*; | |
| import sun.jvm.hotspot.tools.*; | |
| import sun.jvm.hotspot.utilities.*; | |
| public class DirectMemorySize extends Tool { |
| if ($request_uri = /) { | |
| set $test A; | |
| } | |
| if ($host ~* teambox.com) { | |
| set $test "${test}B"; | |
| } | |
| if ($http_cookie !~* "auth_token") { | |
| set $test "${test}C"; |
| import javafx.application.Application; | |
| import javafx.event.ActionEvent; | |
| import javafx.event.EventHandler; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.Button; | |
| import javafx.scene.layout.HBox; | |
| import javafx.scene.paint.Color; | |
| import javafx.scene.shape.Circle; | |
| import javafx.stage.Popup; | |
| import javafx.stage.Stage; |