Skip to content

Instantly share code, notes, and snippets.

@woq
Last active May 12, 2021 12:21
Show Gist options
  • Save woq/2fec71147b0d4f97d00a5ce6a60d2fca to your computer and use it in GitHub Desktop.
Save woq/2fec71147b0d4f97d00a5ce6a60d2fca to your computer and use it in GitHub Desktop.
brew.sh with macos
  • stand
    • neofetch zsh youtube-dl
    • node Front-end
  • cask
    • v2rayu google-chrome iterm2 termius basic
    • opencore-configurator hackintoolhackintosh
    • typora obsidian nutstorenote,wrting
    • visual-studio-code dbeaver-communitycode-basic
    • docker github obs iina transmissionothers
    • sogou input mac,manual install

v2rayu setup. https://github.com/Loyalsoldier/v2ray-rules-dat. display packge content. geosite:geolocation-!cn. geoip:cn, geosite:cn, geosite:private. geosite:category-ads-all.


macOS setup

// 120 分钟后进入休眠,延长清醒时间
sudo pmset -c sleep 120
// 显示器休眠时间:30 分钟
sudo pmset -c displaysleep 30
// 硬盘休眠时间:60 分钟
sudo pmset -c disksleep 60
// 内存供电,内存镜像不写入硬盘
sudo pmset -c hibernatemode 0
// 关闭 standby 模式
sudo pmset -c standby 0
// 关闭 autopoweroff
sudo pmset -c autopoweroff 0
// 休眠时持续联网
sudo pmset -c tcpkeepalive 1

https://sspai.com/post/61379

  • disable the Spotlight indexes sudo mdutil -a -i off

  • change host name sudo scutil --set HostName mini sudo scutil --set ComputerName mini sudo scutil --set LocalHostName mini

sudo spctl --master-disable

Proxy.

git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
npm config set registry https://registry.npm.taobao.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment