Manage the all kinds of proxies.
Proxy
- 控制/查看 curl 相关的工具代理
- 控制/查看 git 的代理环境
- 控制/查看 npm 的代理环境
- 控制/查看 macOS 系统代理设置
这个 function 一直同步更新到了这里。
function proxy() { while [[ $# -gt 0 ]];
Generate qrcode in CLI
Show me the [qr]code.
QRCode
有时候我需要把一个 URL 链接在手机上打开,当 iCloud 跨设备剪贴板共享并不能满足我的需求的时候,我就会用到它:
# Generate & show qrcode based on current clipboard. qrcode: #!/usr/bin/env bash set -euo pipefail content=$(pbpaste) if [[ -z $content
Drink water reminder
Time to drink some water…
Drink reminder
这种功能的 app 就有很多了,但是在办公室如果是在手机上发出来的提醒会比较弱,我甚至会觉得是一种干扰,所以索性也移到了 mac 里。
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>willhan.drink.reminder</string> <key>ProgramArguments</key> <array>