Think before you speak, read before you think.

Category: macOS

  • mac 查看端口占用

    by

    in

    docker: Error response from daemon: Ports are not available: listen tcp 0.0.0.0:8080: bind: address already in use. ERRO[0000] error waiting for container: context canceled lsof -n -i4TCP:8080 | grep LISTEN main 30863 jpuyy 14u IPv6 0xe7a300fd0dafc76f 0t0 TCP *:http-alt (LISTEN) jpuyy 30863 0.0 0.0 5014020 10856 s010 S+ 3:22PM 0:00.29 /var/folders/d7/s1_bmdw95gg8grv857tkvqmw0000gp/T/go-build454434651/b001/exe/main all

  • brew 切换 terraform 版本

    安装 0.12.x 最新版 brew install terraform@0.12

  • DELL U2720QM 匹配设置 macOS OR win11

    U2720QM 设置 Display -> Response Time -> Fast Smart HDR -> Desktop macOS 设置 System Preferences -> Displays 按住 Options 点 Scaled,选择 2304 x 1296(比较舒服)介于 2k 和 1080p 之间 此时 High dynamic Range (HDR)应该是勾选状态 在 System Information -> Hardware -> Graphics/Displays 显示 Radeon Pro 560X: Chipset Model: Radeon Pro 560X Type: GPU Bus: PCIe PCIe…

  • zsh .zprofile

    从 macOS Catalina 开始,zsh 成为了默认 shell https://support.apple.com/en-us/HT208050 .zprofile 相当于 .bash_profile .zshrc 相当于 .bashrc — fix error zsh compinit: insecure directories, run compaudit for list. Ignore insecure directories and continue [y] or abort compinit [n]? ccompinit: initialization aborted complete:13: command not found: compdef complete:13: command not found: compdef complete:13: command not found: compdef 检查$ compaudit There…

  • brew 切换 node 版本

    现在默认安装的 node 是 13 版本,因为要用 12 版本,进行如下操作 安装 12 版本 brew install node@12 查看所有 node 版本 brew ls –versions | grep node node 13.1.0 node@12 12.13.1 切换为 12 版本 brew unlink node rm -f ‘/usr/local/bin/npm’ rm -f ‘/usr/local/bin/npx’ rm -rf /usr/local/lib/node_modules brew link –force node@12

  • macOS 初始化及必装软件

    Langurage & Region-设置为英文 (Only) Dock 设置到左侧, Automatically hide and show the Dock remove unneed applications in Dock 取消勾选 Show recent applications in Dock minimize window using: Scale effect Keyboard -> input sources 五笔 Keyboard -> shortcuts -> switch select previous input source using command + space ( remove spotlight shortcuts ) Keyboard -> Key Repeat(Fast),…