This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /Users/zzw/GitHub/rime-fast-xhup || { echo "目录不存在"; exit 1; } | |
echo "从远程仓库更新... " | |
git pull | |
echo "覆盖旧词典... " | |
# cp cn_dicts/flypy_sogou.dict.yaml /Users/zzw/Library/Rime/cn_dicts/flypy_sogou.dict.yaml || { echo "覆盖失败"; exit 1; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# scheduled_speedtest.sh | |
# | |
# 定时网速监测 | |
# - 使用ookia的speedtest服务进行网速测试 | |
# - 如果大于设置的速度合格阈值,则直接退出 | |
# - 如果未达到测速阈值,调用飞书Webhook发送警告,并进行3次补测,再将补测结果一并推送到飞书 | |
# - 如果Webhook调用失败,会将待发送信息先保存在本地,每次运行时都会检查并尝试发送之前未成功发送的信息 | |
# - 使用crontab等程序定时运行此脚本即可实现定时监测,如: |