Backup

  • Download + Desktop Folder
  • dotfiles - Commit latest changes
  • Other dotfiles: .zshrc.private, .ssh, .aws, .aws-sam
  • cat /Applications + brew list
  • Work Project (Github)
    • Dump DB (optional)
  • Calibre email server

Applications

1Password 7.app            Keyboard Maestro.app       Safari.app
Alfred 5.app               LibreOffice.app            Send to Kindle
Amethyst.app               Logi Options.app           Skype.app
AppCleaner.app             MTMR.app                   Slack.app
Charles.app                MacDown.app                Spectacle.app
CheatSheet.app             Macs Fan Control.app       Spotify.app
Discord.app                Messenger.app              Telegram.app
Disk Inventory X.app       Min.app                    The Unarchiver.app
Dropbox.app                MySQLWorkbench.app         Tor Browser.app
Evernote.app               NordVPN.app                TriggerFn.app
Firefox.app                Notion.app                 Utilities
FortiClient.app            Numbers.app                VLC.app
FortiClientUninstaller.app Numi.app                   Visual Studio Code.app
Google Chrome.app          Obsidian.app               Wireshark.app
Grammarly Desktop.app      OmniDiskSweeper.app        XMind.app
Hide My Bar.app            OpenKey.app                calibre.app
Hyper.app                  OpenShot Video Editor.app  iTerm.app
Kap.app                    Pages.app                  uTorrent Web.app
Karabiner-Elements.app     Postman.app                zoom.us.app
Karabiner-EventViewer.app  Presentify.app
KeyCastr.app               Proxyman.app

brew list
==> Formulae
aom                             gdbm                            libgsf                          mono                            pyyaml
apr                             gdk-pixbuf                      libheif                         mozjpeg                         qt
apr-util                        gettext                         libidn                          mpdecimal                       qt@5
argon2                          gflags                          libidn2                         mpfr                            ragel
aribb24                         ghostscript                     libimagequant                   mpg123                          rav1e
aspell                          giflib                          libksba                         msgpack                         readline
assimp                          git                             liblqr                          [email protected]                       reattach-to-user-namespace
autoconf                        git-filter-repo                 libmatio                        ncdu                            redis
autojump                        glib                            libmng                          ncurses                         ripgrep
automake                        glog                            libmpc                          neovim                          rtmpdump
aws-sam-cli                     gmp                             libnghttp2                      netpbm                          rubberband
bash                            gnu-getopt                      libogg                          nettle                          ruby
bat                             gnutls                          libomp                          nghttp2                         ruby-build
bdw-gc                          go                              libpng                          node                            sdl2
berkeley-db                     [email protected]                         libpq                           node-build                      shared-mime-info
boost                           gobject-introspection           libpthread-stubs                node@12                         skhd
brotli                          goku                            libraw                          nodeenv                         snappy
c-ares                          graphite2                       librist                         nodenv                          speex
ca-certificates                 graphviz                        librsvg                         nspr                            sqlite
caddy                           gts                             libsamplerate                   nss                             srt
cairo                           guile                           libsndfile                      oniguruma                       svt-av1
cfitsio                         harfbuzz                        libsodium                       open-mpi                        tcl-tk
cgif                            hdf5                            libsoxr                         openapi-generator               terraform
circleci                        heroku                          libspiro                        opencore-amr                    tesseract
cjson                           heroku-node                     libspng                         openexr                         the_silver_searcher
cliclick                        highway                         libssh2                         openjdk                         thefuck
cloc                            httrack                         libtasn1                        openjdk@17                      theora
cmake                           hugo                            libtermkey                      openjpeg                        tidy-html5
cmocka                          hunspell                        libtiff                         openldap                        tmux
commitizen                      hwloc                           libtool                         openslide                       tree
coreutils                       icu4c                           libunibreak                     [email protected]                     tree-sitter
ctags                           imagemagick                     libuninameslist                 openssl@3                       unbound
curl                            imagemagick@6                   libunistring                    openvpn                         unibilium
dav1d                           imath                           libuv                           opus                            unixodbc
dbus                            isl                             libvidstab                      orc                             utf8proc
dep                             jasper                          libvmaf                         p11-kit                         [email protected]
direnv                          jbig2dec                        libvorbis                       packr                           vim
docbook                         jemalloc                        libvpx                          pango                           vips
docbook-xsl                     jmeter                          libvterm                        pcre                            wangle
double-conversion               joker                           libx11                          pcre2                           watchexec
edencommon                      jpeg                            libxau                          peco                            watchman
exa                             jpeg-turbo                      libxcb                          perl                            webp
fb303                           jpeg-xl                         libxdmcp                        php                             woff2
fbthrift                        jpegoptim                       libxext                         pixman                          x264
ffmpeg                          jq                              libxml2                         pkcs11-helper                   x265
fftw                            krb5                            libxrender                      pkg-config                      xclip
fizz                            lame                            libyaml                         pngquant                        xmlto
flac                            leptonica                       libzip                          poppler                         xorgproto
flyctl                          libaec                          little-cms2                     postgresql                      xvid
fmt                             libarchive                      lua                             postgresql@12                   xz
folly                           libass                          luajit                          postgresql@13                   yabai
fontconfig                      libavif                         luajit-openresty                postgresql@14                   yarn
fontforge                       libb2                           luv                             [email protected]                  yt-dlp
freetds                         libbluray                       lz4                             protobuf                        zeromq
freetype                        libde265                        lzo                             pyenv                           zimg
frei0r                          libev                           m4                              pyenv-virtualenv                zlib
fribidi                         libevent                        macos-term-size                 python-typing-extensions        zsh
fzf                             libexif                         mbedtls                         [email protected]                     zstd
gawk                            libffi                          md4c                            [email protected]
gcc                             libgit2                         memcached                       [email protected]
gd                              libgpg-error                    mkcert                          [email protected]

==> Casks
amethyst                chromedriver            google-cloud-sdk        kap                     lepton                  numi                    wkhtmltopdf
aws-vault               disk-inventory-x        java                    keycastr                libreoffice             pennywise               xquartz

Restore

  • Connect bluetooth for Keyboard + Mouse
  • Download + Setup Dropbox
    • Set offline available for all folders
  • Clone dotfiles first

MacOS

  • Sign in iCloud
  • Change Dark Theme, Wallpaper
  • Keyboard
    • Turn off Keyboard Autocorrect
    • Turn off TouchBar typing suggestion
    • Change Keyboard Modified keys (Command, ALT, ESC, Cap lock, ..)
    • Remap ESC to dấu nháy
    • Trong Input Source, turn off Control-Space (conflict with zsh autosuggestions)
  • Dock
    • Delete all icons in Dock
    • Turn off recent applications on Dock
  • Change password + Add Touch ID
  • Open Trackpad, turn on “Tap to click”
  • Control Center, config Which icon to show on top bar
  • Open Lock Screen, Setting time to lock screen + Require password after the screen save begin or display is turn off to “Immediately”

Applications

  • Install brew, brew cask
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
 
brew install cask
 
 
brew install —cask appcleaner \
  obsidian \
  firefox \
  google-chrome \
  1password \
  messenger \
  notion \
  numi \
  openkey \
  iterm2 \
  postman \
  proxyman \
  spectacle \
  slack \
  karabiner-elements \
  spotify \
  telegram \
  the-unarchiver \
  vlc \
  calibre \
  hiddenbar
 
brew install php cheat joshmedeski/sesh/sesh
 
System Color Picker
  • Chrome
    • Login to all Chrome profiles
  • 1Password
    • Setup from Mobile App
  • Calibre
    • Import Vault from backup files on Dropbox
  • Alfred
    • Import Settings from backup files on Dropbox
    • Config Spotify mini, Cheat
  • Obsidian
    • Import Vault from backup files on Dropbox
  • Download backup data from Drive: dot_config, Downloads, dump_db, vd, Work.zip

Dev Setup

`brew install git reattach-to-user-namespace exa fzf ripgrep tldr mysql redis commitizen bat`

Open dotfiles folder, follow guide in README to install

zsh + neovim + tmux

  • ZSH

    • Install oh-my-zsh + zsh-auto-suggestion
    • Install powerlines font, Nerdfont (brew install) - or download and copy to Font using Font Book
    • Config iTerm profile to use Nerdfont
  • Neovim

    • Ensure install nvm (to install LSP)
    • Open packer.lua, :so, :PackerSync
    • Try to config python path to new python
  • Tmux

    • pip3 install powerline-status
    • Open ~/.tmux.config , run command to config powerline

docker

brew install docker docker-compose colima

Windows Manager

brew install koekeishiya/formulae/skhd
skhd --start-service

brew install koekeishiya/formulae/yabai
yabai --start-service

asdf

https://asdf-vm.com/guide/getting-started.html

brew install coreutils curl git asdf

Work

  • Install rvm + ruby
  • brew install aws-vault + Move .aws config folder to root
  • Install aws cli tool
  • Import MySQL dumped DB
  • brew install imagemagick vips

Find my Mac - need Sun account

Notes

  • Neovim: Nếu gặp lỗi No "python3" provider found. Run :checkhealth provider thì chạy lệnh python3 -m pip install --user --upgrade pynvim  (Thêm option —break-system-packages nếu cần thiết)
  • RVM: Nếu không thể cài rvm install x.x.x, chú ý tới version của openssl, cần config SSL PATH (--with-openssl-dỉ=$(brew --prefix openssl@3))
  • Install MacOS aws cli + Session Manager Plugin
  • Một số gem không tương thích với chip Apple Silicon, cân nhắc sử dụng flag with pointer …