分类
mac

Mac OSX 初始化及必装软件

通用-语言-设置为英文

键盘设置,按键重复(快),重复前延迟(短)
Caps Lock 改为 Control
添加启动台快捷键 F4

鼠标设置,tracking speed 调到最快,双击以及滚动速度调到离最快两格

The Unarchiver
kindle
Hour – World Clock

默认使用 zsh
https://support.apple.com/en-us/HT208050?from=timeline&isappinstalled=0

brew

https://brew.sh/

brew install telnet
brew install wget
brew install jq
brew install yq
brew install python
brew install pip
brew install openssl
brew install mysql-client
brew install grep
brew install mtr # sudo /usr/local/sbin/mtr baidu.com
brew cask install go2shell
brew install oath-toolkit
brew install iperf
brew install fping
brew install tflint
brew install maven
brew install openjdk
brew install ansible
brew install nvm
brew install kubectx
brew install yarn
brew install gradle
brew install fzf # https://github.com/junegunn/fzf
brew install gnu-sed
brew install tree
brew install github/gh/gh
brew install terraform
brew install shellcheck
brew install hey
brew install coreutils
brew install brotli

https://keepassxc.org/
brew cask install keepassxc

https://ohmyz.sh/

开发组件
https://www.jetbrains.com/toolbox-app/ 下载 webstorm goland pycharm intelij, 登录账号, 设置自动更新,添加 shell scripts 命令到 /usr/local/bin
brew install vault
brew install terragrunt
brew install git-crypt
brew install aliyun-cli
brew install groovysdk
https://gpgtools.org/
https://istio.io/docs/setup/getting-started

kubectl 插件
https://krew.sigs.k8s.io/docs/user-guide/setup/install/

遇到

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

解决

xcode-select --install

brew cask install cisco-proximity

terminal 设置

Grass Courier 16 pt.
使用标准键盘的小键盘 偏好设置 – 高级 – uncheck 允许VT100应用程序 小键盘模式

分类
mac

挂载远程 sftp 目录至 mac OSX 本机目录

安装所需 osxfuse

brew cask install osxfuse
brew install sshfs

把远程目录 /data/v 挂载到 ~/v 目录下

sshfs -p 22 -o reconnect -o volname=v -o IdentityFile=~/.ssh/id_rsa jpuyy@remotehost.com:/path/to/wherever /Volumes/SomeNiceName

参考:
https://jonathansblog.co.uk/sshfs-mount-remote-drive-in-finder

分类
mac

brew 安装 mysql client

brew install mysql-client
分类
mac

reset mac usb

This is how to reset SMC on most modern Mac laptops, none of which have a removable battery:

Shutdown your MacBook Air / MacBook Pro
Connect the power adapter to the Mac
On the MacBook / Pro’s keyboard, hold down the Shift+Control+Option keys and the Power button at the same time
Release all keys and the power button at the same time – the little light on the MagSafe adapter may change colors briefly to indicate the SMC has reset
Boot your Mac as usual

http://osxdaily.com/2010/03/24/when-and-how-to-reset-your-mac-system-management-controller-smc/

https://support.apple.com/zh-cn/HT201295

分类
mac

reset chrome on mac

清理 mac 下的 chrome

rm -rf  ~/Library/Application\ Support/Google

rm -rf ~/Library/Caches/Google
rm -rf ~/Library/Caches/com.google.Chrome
rm -rf ~/Library/Caches/com.google.Keystone
rm -rf ~/Library/Caches/com.google.Keystone.Agent
rm -rf ~/Library/Caches/com.google.SoftwareUpdate

rm -rf ~/Library/Google/Google\ Chrome*