journalctl 清理日志
使用 journalctl 命令清理 systemd 等产品的日志。
根据时间清理旧的日志文件:
sudo journalctl --vacuum-time=1years
--vacuum-time
选项用于指定保留日志文件的时间跨度。
单位也可以是:1months
、3days
根据体积清理旧的日志文件:
使用 journalctl 命令清理 systemd 等产品的日志。
根据时间清理旧的日志文件:
sudo journalctl --vacuum-time=1years
--vacuum-time
选项用于指定保留日志文件的时间跨度。
单位也可以是:1months
、3days
根据体积清理旧的日志文件:
辅助编写 cron 表达式,测试和解析 cron 表达式,查看匹配的后续时间。
https://crontab.guru/
编辑和测试 cron 表达式。网页应用,免费。
https://cron.help/
同上。Crontab syntax for us humans
可使用 --cron
参数指定执行周期,但是如果仅使用该参数,例如
pm2 start task.js --cron "*/15 * * * *"
PM2 将启动您的 cron 作业,但它也会在作业程序完成后不断重新启动 cron 作业,无限循环。
清理日志:
pm2 flush
清空所有日志
pm2 flush 1
清空任务1的日志
Daemons and Services in macOS
launchctl
。 类似 Linux 中的 systemctl
/Library/LaunchDaemons/
,无论是否有任何用户登录系统,它们都应运行。 它们将以“root”权限启动。/Library/LaunchAgents
,任意用户登录后~/Library/LaunchAgents/
,某(当前)用户登录后
其中
~
是您的主目录。 这些任务将使用您的权限运行,就像您自己通过命令行或双击 Finder 中的文件启动它们一样。
收集整理的🆓免费可商用的英文字体资源。且多数均已开源。
IBM Plex
https://github.com/IBM/plex
Reddit Sans
https://github.com/reddit/redditsans
MiSans、Lato、Circular
可代替 Arial
EB Grarmond, Cardo
可代替 Times New Roman
Aileron, Lnter, Roboto
可代替 「Helvetica」
注意参数名:
在后端 rust 代码中,参数名必须是蛇形命名法,例如 tou_lan
。
而在前端通过 invoke
调用时,参数名必须使用驼峰式命名法,例如 touLan
实例:
传递 user name
📝 使用 ChatGPT 帮助我们对文本进行排版、批量替换、修正拼写错误等处理
▶ 修正错乱的排版和拼写错误
从 PDF 复制出来的文本(或者 OCR 出来的文本),有不必要的换行、错误的拼写、字母的识别问题、多或少的空格。让 ChatGPT 帮忙纠正。
——来源 @YiqinFu
▶ 想个文章标题
Give 20 video title ideas for blender tutorials that will get millions of views
(from @andrewpprice)