avatar
wulu
Docker容器中的定时任务:使用Supercronic运行Python脚本
在上一篇文章中,我介绍了 eudic-maimemo-sync 项目——利用 Python 脚本调用欧路词典和墨墨背单词的开放API将生词本自动同步到墨墨背单词,并演示了如何用 Docker 将其部署到树莓派上,每天自动执行同步。 这篇文章,我想分享我在配置 Docker 容器实现定时任务时遇到的一个问题,以及我是如何解决它的:我最初在容器内使用标准的 Cron 服务来调度 Python 脚本。但我发现,即使把环境变量传入了容器…
avatar
busylog
Example Windows Sandbox conf (wsb)
<Configuration> <AudioInput>false</AudioInput> <VideoInput>false</VideoInput> <MemoryInMB>8192</MemoryInMB> <MappedFolders> <MappedFolder> <HostFolder>C:\Users\USER\Downloads</HostFolder> <SandboxFolder>C:\Users\WDAGUtilityAccount\Downloads</SandboxFolder> <ReadOnly>false</ReadOnly> </MappedFolder> </MappedFolders> <LogonCommand> <Command>netsh advfirewall firewall add rule name="SearchHost.exe" dir=out action=block program="C:\Windows\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\SearchHost.exe" enable=yes</Command> <Command>netsh advfirewall firewall add…
avatar
busylog
One liner powershell for ipv6-literal.net
Read-Host "Enter IPv6 address" | %{ ($_ -replace ':','-' -replace '%','s') + '.ipv6-literal.net' }
avatar
Rei
daisyUI - 我找到了理想中的 UI 库
我已经有几年时间没有使用 UI 库,近几年的项目我都是从头开始写 UI,小到按钮、对话框,大到响应式布局。原因是以前的 UI 库样式千篇一律,又难以定制,我宁愿从头开发。 重复了几次后,我感觉累了。UI 优化是没有尽头的,工作量已经影响到功能开发。有时我会觉得,如果自己没有 CSS 经验,就不会花那么多时间在 UI 上了。 最近开始一个新项目的时候,我决定放弃什么都自己做的想法,选一个过得去的…
avatar
busylog
iPhone Shortcuts tips
Generate QR Code (from Clipboard, Show in Quick Look) Great way to transfer short text/url between devices. Extract Text from Images (OCR, from Clipboard, Show in Quick Look) Automation: When NFC card is detected (set some Speak? action) Note that it is the most quick way to confirm NFC functionality is working, without 3rd party apps. check SEID in Settings. if it is available then the secure element is working. the antenna may not be connected correctly (NFC antenna is a loop, one connect to small antenna, and one connect to rare case). iPhone does NOT support reading / connecting…
avatar
Muspi Merol
为什么不用静态分析来实现 HMR
几个月前,我看到 How to build Hot Module Replacement in Python 这篇文章,讲的是用他们的 Tach 这个 Python 静态分析工具,可以获得一个依赖图,类似这样的键值格式: { "a.py": ["b.py", "c.py"], "b.py": ["d.py"], "d.py": ["e.py"], "c.py": ["f.py"] } 说起来,这个项目上个月开始 unmaintained 了 😅 一问才发现原来是开发者跑去 AI 创业了。我觉得网友说的挺好: I guess that's the issue with open source tools being backed by VCs. These tools will never…
没有更多内容。