Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@vell001
vell001 / sudoku.py
Created January 6, 2021 07:27
暴力解算数独
import time
import numpy as np
def get_ok(d):
return np.setdiff1d(np.array([1, 2, 3, 4, 5, 6, 7, 8, 9]), d)
def get_ok_col(data, col):
@vell001
vell001 / NetworkUtils.h
Created August 23, 2019 07:54
android获取网络ip信息工具
//
// Created by vellhe on 2019-08-23.
//
#pragma once
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>

替换上你的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&amp;login_password=xxx&amp;domain_id=xxx"

#!/bin/bash
##############################
# dnspodsh v0.3
# 基于dnspod api构架的bash ddns客户端
# 作者:zrong(zengrong.net)
# 详细介绍:http://zengrong.net/post/1524.htm
# 创建日期:2012-02-13
# 更新日期:2012-03-11
##############################