Bots run automatically
编辑 crontab 文件:
crontab -e添加定时任务: 在打开的编辑器中,添加一行来指定定时任务。
30 9 * * * /path/to/your/script.sh 2>&1验证 crontab 文件: 你可以通过以下命令查看当前用户的 cron 任务列表,确认你的任务是否已经添加成功:
crontab -l确保你的脚本有可执行权限,可以通过以下命令添加权限:
chmod +x /path/to/your/script.shOperation not permitted: you have to add cron as "parent" app to the user's Security & Privacy > Privacy > Full Disk Access apps/execs.
- click the
+button - hit
⌘⇧G - enter
/usr/sbin - double click the
cronfile.
科学上网,对ssh设置代理,在ssh配置文件(~/.ssh/config)中添加以下内容:
Host github.com
HostName ssh.github.com
Port 443
User git
ProxyCommand nc -v -x 127.0.0.1:1080 %h %p修改 vim 的配色方案,在 ~/.vimrc 文件中添加以下内容:
syntax on
set nu!
set autoindent