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]));
}
Akali-热点处理框架
Dromara社区新晋开源项目-Akali(阿卡丽),轻量化的热点&降级处理框架!
GitHub - bryan31/Akali: Local fallback and hotspot solutions in high traffic scenarios
Akali(阿卡丽)是一个轻量级本地化热点检测/降级框架,适用于大流量场景,可轻松解决业务中超高流量的并发查询等场景。并且接入和使用极其简单,10秒钟即可接入使用!
网络状况模拟工具
类似于 chrome devtools 里面的 throttle
clumsy, an utility for simulating broken network for Windows Vista / Windows 7 and above
Here’s a list of simlilar softwares aiming to solve the same problem, provided in case of looking for alternatives.
- Network Emulator for Windows Toolkit (Windows) - network emulator provided by Microsoft.
- ipfw or pfctl (FreeBSD/OSX) - low level packet filter.
- wipfw (Windows) - ipfw Windows port with only a subset of functions.
- netem (Linux) - Linux kernel supported network emulation.
- tc (Linux) - Configure traffic control in the Linux kernel.
- Throttle (Mac) - Simulate 3G network through shared wireless network.
- Network Link Conditioner (Mac) - XCode bundled network conditioner.