OS _ MacBookPro16 - dwisianto/dwisianto GitHub Wiki

Mac OS X setup

ToDo

  • KeePassXC
    • chromium plugin
  • Miniforge
  • CloudApp
    • mas install 417602904
  • Slack
    • brew install slack
  • Miro
    • brew install miro

Core

Utilities

  • Amphetamine
    • mas install 937984704
  • alfred - Efficiency booster
    • brew install alfred
    • Shortcut: Option Space
  • Bartender
    • brew install bartender
  • Magnet
    • mas install 441258766
  • iterm2
    • Shortcut
  • Time Machine
  • KeePassX
    • brew install --cask keepassx
    • Keychain
  • zoom, webex
    • brew install --cask zoom
    • brew install --cask webex

Browsers

brew install --cask surfshark
firefox
google-chrome
chromium
brave

Notes

mas install 1091189122 #Bear
brew install evernote
brew install notion
brew install obsidian
brew install skitch
brew install typora

Cloud

Sharing

ssh https://superuser.com/questions/104929/how-do-you-run-a-ssh-server-on-mac-os-x
x-windows

Synology Drive

Google Drive

Amazon Photos

S3 Bucket

Python

PyCharm

  • brew install pycharm-ce
  • brew info pycharm-ce

Conda and PyCharm

  • brew install miniforge
  • brew install miniforge
  • conda init zsh
  • echo $PATH
  • /opt/homebrew/Caskroom/miniforge/base/condabin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Jupyter

  • conda create --name jupy39 --clone base
  • conda install jupyter
  • conda install jupyterlab
    • jupyter kernelspec list
    • import json
      • json.path
      • /opt/homebrew/Caskroom/miniforge/base/envs/jupy39/lib/python3.9/json
  • jupyter-lab-passwor
    • alias runjupyter="jupyter lab --NotebookApp.token='' --port 6006 --no-browser --ip="0.0.0.0" --allow-root --NotebookApp.iopub_msg_rate_limit=1000000.0 --NotebookApp.iopub_data_rate_limit=100000000.0 --NotebookApp.notebook_dir=/"

TensorFlow

PyTorch

pycharm brew install --cask pycharm-ce
conda. .
jupyter .
tensorflow .
pytorch .

Java

brew update
brew info java11
brew install java11

Database

  • brew install --cask dbeaver-community
  • emacs -nw

Postgres

brew install postgress
emacs -nw ~/.zshrc
export PATH="/opt/homebrew/opt/postgres/bin:$PATH"

slack

$ brew update                           # Fetch the latest version of homebrew and formula.
$ brew tap homebrew/cask                # Tap the Homebrew/Cask repository from Github using HTTPS.
$ brew search slack                     # Searches all known Casks for a partial or exact match.
$ brew info --cask slack                # Displays information about the given Cask
$ brew install --cask slack             # Install the given cask.
$ brew cleanup    

mas

  • mas
  • mas upgrade

xcode

The executables from Apple are installed two separate ways. Each has a separate install procedure. Imagine a Venn diagram of overlapping circles:

Xcode is Apple’s free IDE developers use to create custom programs for all Apple devices (macOS, iPhone, iPad, Apple Watch). Increasingly, Machine Learning developers are using the Swift language.

Because XCode.app is very large (several Gigabytes), developers who do not create Apple programs can save disk space by not installing it. Instead, they install just the CommandLineTools needed by Homebrew and others.

xcode1

  • wilsonmar.github.io
    • To verify XCode CLI install:
      • /usr/bin/xcodebuild -version
      • xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
    • xcode-select --install
      • xcode-select -p
  • softwareupdate --list

xcode2

# Install Command-line tools as dependency for Homebrew
xcode-select --install # Sets the development directory path to /Library/Developer/CommandLineTools

# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install Mas (command-line interface for Mac App Store)
brew install mas

# Search for Xcode showing only the first 5 results
mas search xcode | head -5
# Install Xcode using App ID
mas install 497799835 # The appid for Xcode shown when doing search

sudo xcode-select -r  # Reset the development directory path to put to Xcode /Applications/Xcode.app/Contents/Developer

#sudo xcodebuild -license

# Updaate all Apple software and auto agree to any licenses and restart if necessary
sudo softwareupdate --install --agree-to-license -aR

Java

Jdk11

Maven

Neo

PDF

Combine Multiple PDFs

Install Ghostscript with brew:

brew install gs

Combine the PDF’s with GhostScript:

gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=out_joined.pdf file1.pdf file2.pdf