Skip to content

Instantly share code, notes, and snippets.

@j796160836
Last active November 10, 2024 11:46
Show Gist options
  • Save j796160836/c70ac4d61e05ac71099c to your computer and use it in GitHub Desktop.
Save j796160836/c70ac4d61e05ac71099c to your computer and use it in GitHub Desktop.
我的環境安裝 (Mac)

Mac 環境安裝


brew install --cask iterm2
brew install --cask openinterminal-lite
brew install --cask openineditor-lite
brew install --cask macdown
brew install --cask browserosaurus
brew install --cask another-redis-desktop-manager
brew install dive
brew install --cask iterm2

Shell Command: Install 'code' command in PATH command (available through the Command Palette ⇧⌘P)

brew install --cask macdown
brew install --cask browserosaurus

Bash 環境調整

brew install git && brew install bash-completion
pip install speedtest-cli

Google Chrome 擴充功能

Firefox 插件

Android 環境

iOS 環境

Python 環境

  • pip for python2

    curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py ; sudo python get-pip.py
  • pip for python3

    curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py ; sudo python get-pip.py
  • iPython

    sudo pip install --ignore-installed six
    sudo pip install ipython
    alias ipython="python -m IPython"

NodeJS 環境

Sublime text 套件

Command + Shift + P (Mac OS X / Linux)
Ctrl + Shift + P (Windows)

搜尋 Package Control: Install Package

雜項

Presentions tools

brew install scrcpy
scrcpy -s <deviceSerial>
export VLC=/Applications/VLC.app/Contents/MacOS/VLC
./sndcpy <deviceSerial>

隱藏

defaults write com.apple.finder CreateDesktop -bool false; killall Finder

復原

defaults write com.apple.finder CreateDesktop -bool true; killall Finder
  • 顯示隱藏檔

顯示

defaults write com.apple.finder AppleShowAllFiles true; killall Finder

復原

defaults write com.apple.finder AppleShowAllFiles false; killall Finder

修正 App 無法開啟

How To Fix “App is Damaged Can’t Be Opened” Error Message (XXX can't be opened. You should move it to trash.)

# Method 1
sudo xattr -cr /Applications/[LockedApp].app

# Method 2
sudo xattr -rd com.apple.quarantine /Applications/[LockedApp].app

# Method 3
sudo spctl --master-disable

Homebrew

xcode-select --install
brew install gcc
brew cask install iina

System Preferences

  • Keyboard -> Text
    • Uncheck: Correct spelling automatically
    • Uncheck: Capitalize words automatically
    • Uncheck: Add period with double-space
    • Uncheck: Use smart quotes and dashes
  • Keyboard -> Shortcuts
    • Input Sources
      • Select the previous input source: Cmd - Space
    • Spotlight
      • Uncheck: Show Spotlight search
      • Uncheck: Show Finder search window
  • To remove the Eject Menu
    1. Press and hold the Apple/Command key.
    2. Click and drag the Eject menu icon off the menu bar.
    3. Once you start dragging the Eject icon, you can release the Apple/Command key.
    4. Release the mouse button when the Eject menu no longer appears in the menu bar.
    5. The Eject icon will disappear.

Docker

  • OrbStack

https://orbstack.dev/

  • Colima (docker runtime)
brew install colima
colima start --kubernetes

Apple silicon chip (M1)

Support list

[ ✅ native support ] [ ✳️ Rosetta support ]

  • ✅ Scroll Reverser
  • ✅ Homebrew
  • ✅ Docker
  • ✅ iTerm 2
  • ✅ OpenInTerminal
  • ✅ Intelij IDEA
  • ✅ Visual studio code
  • ✅ SourceTree
  • ✅ Sublime text 4
  • ✅ Color Maker
  • ✅ Choosy
  • ✅ Magnet
  • ✅ IINA
  • ✳️ MacDown (Markdown editor)
  • ✳️ Logitech Options
  • ✳️ LINE Messanger
  • ✳️ Facebook Messanger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment