Setting Up or Resetting My Macbook

Setting Up or Resetting My Macbook

Every now and then, fresh start is a good idea.

These are some notes and links I’ve accrued from resetting my Macbook a time or two.

These are just notes and links, they might be non-sensical, if you think I should polish them up, let me know.

Backup:

  • get RaspberryPi and Linux images
  • SSH keys
  • .dotfiles and user files
  • file folders like Documents, Photos, etc.
  • double check all applications are in the Homebrew installs or accounted for

Desktop and Screen Savers

Ok, I’m ready, this is what I do

Pretty much in this order…

Remove Startup Chime

In MacOS Monterey (at least), you can disable this in the System Preference (thank goodness!), otherwise, you can try:

###Catalina
# Disable:
sudo nvram SystemAudioVolume=%80
#Enable:
sudo nvram -d SystemAudioVolume

###Others
# Disable
sudo nvram StartupMute=%01 
# Enable (why, I don't know)
sudo nvram StartupMute=%00

Keyboard

  • Key Repeat -> Fast
  • Delay Until Repeat -> Short
  • Disable
    • “Correct spelling automatically”
    • “Capitalize words automatically”
    • “Add period with double-space”
    • “Use smart quotes and dashes”
  • Make Spotlight something crazy

Application setup

  1. Homebrew: install HB and then brew install everything else
  2. Set up my .dotfiles
  3. Get Fira Font for terminal and VSCode
  4. Oh my zsh and Spaceship prompt
  5. Chrome, set as default, log in should pull over all extensions and bookmarks
  6. Get old SSH keys or ssh key setup
  7. Node Version Manager and install latest version of Node and any other versions I need (current using 10, 12, 16)
  8. Composer global installs
  9. NPM global installs
  10. Install VSCode extensions
  11. Atom One Dark for VSC
  12. Install Logitch Options

Homebrew Installs

brew install \\
  4k-video-downloader \\
  alfred \\
  amazon-music \\
  authy \\
  bartender \\
  balenaetcher \\
  bitwarden \\
  boop \\
  cleanmymac \\
  clipy \\
  discord \\
  disk-inventory-x \\
  firefox \\
  fork \\
  google-chrome \\
  insomnia \\
  kindle \\
  lastpass \\
  lens \\
  licecap \\
  local \\
  macdown \\
  mamp \\
  nosql-workbench \\
  notion \\
  obs \\
  obsidian \\
  oracle-jdk \\
  pgadmin4 \\
  postman \\
  rectangle \\
  rocket \\
  screaming-frog-seo-spider \\
  sequel-ace \\
  simplenote \\
  skitch \\
  slack \\
  spotify \\
  tableplus \\
  toggl-track \\
  transmit \\
  tunnelblick \\
  visual-studio-code \\
  vlc \\
  whatsapp \\
  zoom \\

Global NPM Installs

npm install -g gatsby-cli netlify-cli serverless trash-cli typescript

Global Composer Installs

composer global require laravel/installer

VSC Code

code CLI will need to be installed:

  • Launch VS Code.
  • Open the Command Palette (⇧⌘P) and type ‘shell command’ to find the Shell Command: Install ‘code’ command in PATH command.
  • Restart VSCode
  • Then do the following to get the installed extensions
Get a list of what I have installed: 
code --list-extensions | xargs -L 1 echo code --install-extension

Will output something like (copy, paste and hit enter in Terminal)
code --install-extension aaron-bond.better-comments
code --install-extension akamud.vscode-theme-onedark
code --install-extension alexcvzz.vscode-sqlite
code --install-extension anthonydiametrix.ACF-Snippet
code --install-extension apollographql.vscode-apollo
code --install-extension bmewburn.vscode-intelephense-client
code --install-extension calebporzio.better-phpunit
code --install-extension dbaeumer.vscode-eslint
code --install-extension dsznajder.es7-react-js-snippets
code --install-extension eamodio.gitlens
code --install-extension EditorConfig.EditorConfig
code --install-extension esbenp.prettier-vscode
code --install-extension fabiospampinato.vscode-highlight
code --install-extension file-icons.file-icons
code --install-extension GraphQL.vscode-graphql
code --install-extension hbenl.vscode-mocha-test-adapter
code --install-extension hbenl.vscode-test-explorer
code --install-extension ikappas.phpcs
code --install-extension mariusschulz.yarn-lock-syntax
code --install-extension mgmcdermott.vscode-language-babel
code --install-extension mikestead.dotenv
code --install-extension ms-azuretools.vscode-docker
code --install-extension ms-python.python
code --install-extension ms-python.vscode-pylance
code --install-extension ms-vscode-remote.remote-containers
code --install-extension ms-vscode.test-adapter-converter
code --install-extension neilbrayfield.php-docblocker
code --install-extension nikitaKunevich.snippet-creator
code --install-extension onecentlin.laravel-blade
code --install-extension onecentlin.laravel5-snippets
code --install-extension patbenatar.advanced-new-file
code --install-extension persoderlind.vscode-phpcbf
code --install-extension Prisma.prisma
code --install-extension ryannaddy.laravel-artisan
code --install-extension sleistner.vscode-fileutils
code --install-extension streetsidesoftware.code-spell-checker
code --install-extension tungvn.wordpress-snippet
code --install-extension wix.vscode-import-cost
code --install-extension wordpresstoolbox.wordpress-toolbox
code --install-extension xabikos.JavaScriptSnippets
code --install-extension xdebug.php-debug

Misc…

Chrome: Sign into accounts, make sure to open preferences, and “On startup” should be set to “Continue where you left off”.

Setup, PHPCS and Formatting

intellij idea – Code reformatting on save in PhpStorm or other jetbrains ide – Stack Overflow

PHP CodeSniffer and Code Formatting

  • SSH Keys to Strattic Code
  • Jira integration?
  • Set up AWS CLI with account and aws configure --profile strattic-dev it.
  • CleanMyMac license from old computer
  • Transmit license from old computer

Third party mouse issues: https://www.isiko.de/how-to-disable/

Connecting iMessage from iPhone: https://support.apple.com/en-us/HT208386


Factory Reset

Dev Setup resources:

Ubuntu


laptop computer 2006 to current” by elizabeth.hargis is marked with Public Domain Mark 1.0.

0 responses to “Setting Up or Resetting My Macbook”