Skip to content

Instantly share code, notes, and snippets.

View bowencool's full-sized avatar
🏢
Looking for a job

Bowen bowencool

🏢
Looking for a job
View GitHub Profile
@bowencool
bowencool / certbot-renew-hook.ts
Created August 19, 2023 15:34
阿里云 aliyun certbot-renew-hook
import { DescribeDomainRecordsRequest, DescribeDomainRecordsResponseBodyDomainRecordsRecord, UpdateDomainRecordRequest } from '@alicloud/alidns20150109';
import client from './client'
const { CERTBOT_VALIDATION, CERTBOT_REMAINING_CHALLENGES, CERTBOT_DOMAIN, CERTBOT_ALL_DOMAINS } = process.env
console.log({ CERTBOT_VALIDATION, CERTBOT_REMAINING_CHALLENGES, CERTBOT_DOMAIN })
async function getConfiguredTXTRecord() {
const describeDomainRecordsRequest = new DescribeDomainRecordsRequest({});
describeDomainRecordsRequest.domainName = CERTBOT_DOMAIN;
describeDomainRecordsRequest.type = "TXT";
@bowencool
bowencool / dida365.oauth.js
Last active January 23, 2024 13:32
dida365 oauth 滴答清单
// https://blog.bowen.cool/posts/how-to-forward-sms-to-your-todo-list
const Koa = require("koa");
const Router = require("@koa/router");
const { PORT = 4001 } = process.env;
const client_id = "xxx";
const client_secret = "xxx";
const scope = "tasks:write";
const redirect_uri = `http://localhost:${PORT}/redirect`;
@linjieFE
linjieFE / default.custom.yaml
Created April 7, 2023 03:32 — forked from lewangdev/default.custom.yaml
MacOS-like & Wechat-like Dark/Light Color Scheme For Rime
patch:
# 菜单
menu:
page_size: 8 # 候选词个数
# alternative_select_labels: [ ①, ②, ③, ④, ⑤, ⑥, ⑦, ⑧, ⑨, ⑩ ] # 修改候选项标签
# alternative_select_keys: ASDFGHJKL # 如编码字符占用数字键,则需另设选字键
# ascii_mode、inline、no_inline、vim_mode 等等设定,可参考 /Library/Input Methods/Squirrel.app/Contents/SharedSupport/squirrel.yaml
# 中西文切换
#
# 【good_old_caps_lock】 CapsLock 切换到大写或切换中英。