一、alfred
1.1、Features/Web Search
- 添加自定义索引。之后可以用t+待翻译原文快速进行翻译, g+关键字,使用g.cn只搜索近1年检索结果
# 1、搜索url
https://translate.google.cn/?sl=auto&tl=zh-CN&text={query}&op=translate
标题/keyword:t;关键字 翻译
# 2、搜索url
https://www.google.com.hk/search?q={query}&hl=zh-CN&source=lnt&tbs=qdr:y&sa=X&ved=2ahUKEwiBj6ClppX0AhXwklYBHWRZCfIQpwV6BAgCECs&biw=1920&bih=862&dpr=1
标题/keyword:g;关键字 g.cn 搜索近1年
# 3、阿里云主机搜索
https://ecs.console.aliyun.com/overview/search?filter={%22keyword%22:%22{query}%22}#/home
标题/keyword:a
# 4 百度搜索
https://www.baidu.com/s?wd={query}&rsv_spt=1&rsv_iqid=0xa8ac2b96000584ef&issp=1&f=8&rsv_bp=1&rsv_idx=2&ie=utf-8&rqlang=cn&tn=baiduhome_pg&rsv_dl=tb&rsv_btype=i&inputT=861&rsv_enter=1&rsv_t=c87dWCBFfe88RDKNt9nKv%2BaGUKYM7fz97NKdK8P97GgC9nFEpI7yS9jwCW6rlg7soJj5&rsv_sug3=8&rsv_sug1=2&rsv_sug7=100&gpc=stf%3D1643443536%2C1674979536%7Cstftype%3D1&tfflag=1
标题/keyword:b;关键字 b 搜索近1年
# 5 github
https://github.com/search?q={query}
标题/keyword:gh;关键字 gh
- 其他
zp www.zhipin.com/web/geek/ch…
qm mail.qq.com/
zp www.zhipin.com/web/geek/ch…
b www.baidu.com/s?wd={query…
gh github.com/search?q={q… ;github搜索
1.2、Features/Snippets
- 效果:输入s 进入snippets,输入图例中k或者l,直接填充 片段 至当前输入框内
# 添加集合
# 添加 关键字以及片段
- 具体
d {date:MM/dd/YYYY HH:mm:ss}
139 ...
189 ...
k ... ;k 英文id填充
l ... ;LDAP密码填充
p export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087; up unset http_proxy https_proxy
1.3、workflows
alfred 生成密码
安装插件,并双击导入。
pwgen,生成随机密码,回车拷贝
pwlen 8,生成随机密码 长度8个字符串,回车拷贝
汇率查询
cy-base CNY;设置当前为人民币,cy-base hkd 设置为港币
cy不带参为1,当前币种的汇率,cy 1000为1000当前币种的换算
fi/if 快速进入当前窗口目录/命令行
指令 fi /if,fi 当前finder目录快速进入iterm2目录所在;if 反之
kill 杀进程
指令 kill qqmusic
tz 当前各时区时间
tz 显示各时区
添加上海 timezone add shanghai 然后command+enter
timezone edit 修改返回时区列表
wifi on/off 快速关闭打开wifi(不是禁用)
wifi on
wifi off
二、iTerm2
- 复制profile,并配置为默认
字体,调整为16
- 不建议发心跳
➜ ~ sudo vim /etc/ssh/ssh_config
#增加
ServerAliveInterval 60
rz/sz
三、Karabiner
三、Chrome
四、效率神器
fd 快速检索神器
➜ WeDrive brew install fd
➜ ~ fd 成本
neofetch,显示系统信息
➜ ~ brew install neofetch
➜ ~ neofetch
mcfly,ctrl+r 上翻命令时,更加智能
➜ ~ brew tap cantino/mcfly
brew install mcfly
➜ ~ eval "$(mcfly init zsh)"
McFly: Importing shell history for the first time. This may take a minute or two...done.
m-cli,为mac 上增加的命令行集合
➜ ~ brew install m-cli
m
bat,语法高亮
➜ ~ brew install bat
➜ ~ bat main.go
fzf,检索
➜ ~ brew install fzf
fzf
五、tips
快捷键
记录快捷键 command+p ,v2rayU 切换代理模式
速查指令
关闭网卡
sudo ifconfig en0 down
打开网卡
sudo ifconfig en0 up
刷新dns
sudo killall -HUP mDNSResponder
判断当前 ssid
http://cn.voidcc.com/question/p-cvsnkufe-rp.html
system_profiler SPAirPortDataType | awk -F':' '/Current Network Information:/ {
getline
sub(/^ */, "")
sub(/:$/, "")
print
}'
finder显示路径
defaults write com.apple.finder _FXShowPosixPathInTitle -bool TRUE;killall Finder
取消显示路径
defaults delete com.apple.finder _FXShowPosixPathInTitle;killall Finder
5.1、微信双开
➜ ~ open -n /Applications/WeChat.app/Contents/MacOS/WeChat