const currentPage = dv.current().file;
const dailyPages = dv.pages('"0-Daily"').sort(k=>k.file.name, "asc");
const currentPageName = currentPage.name;
const index = dailyPages.findIndex((e) => {return e.file.name === currentPageName});
if (index < 1) {
dv.table(["File", "Created", "Size"],[]);
} else {
const lastIndex = index - 1;
const lastPage = dailyPages[lastIndex].file;
const allPages = dv.pages().values;
const searchPages = [];
const lastTime = dv.parse(lastPage.name);
const currentTime = dv.parse(currentPage.name);
for (let page of allPages) {
const pageFile = page.file;
if (pageFile.cday > lastTime && pageFile.cday <= currentTime) {
searchPages.push(pageFile);
}
}
dv.table(["File", "Created", "Size"], searchPages.sort((a, b) => a.ctime > b.ctime ? 1 : -1).map(b => [b.link, b.ctime, b.size]));
}
Linux 安装 mihomo (clash meta)
配置说明
Web UI
GitHub - MetaCubeX/metacubexd: Mihomo Dashboard, The Official One, XD
external-controller: 0.0.0.0:9090
external-ui: /etc/mihomo/ui
访问的地址 xxx:9090/ui
问题
启动 TUN 模式后,发现 ping 不通各种域名。
但是 curl 是可以的。
目前不清楚原因, 但是可以使用。
安装 homeassistant
Docker+HomeAssistant+HACS+设备接入教程 - idemor - 博客园
安装 Docker
Ubuntu 安装 Docker Engine - Undefined443 - 博客园
Mint | Ubuntu20安装docker 仓库没有 Release 文件_bookworm release” 没有 release 文件-CSDN博客
linux mint 安装 docker, 并且解决默认使用 Ubuntu 导致的 apt update
报错的问题