Skip to content

Instantly share code, notes, and snippets.

@isccarrasco
Last active July 20, 2023 23:47
Show Gist options
  • Save isccarrasco/68716237d97468d75633f86c2295e4a0 to your computer and use it in GitHub Desktop.
Save isccarrasco/68716237d97468d75633f86c2295e4a0 to your computer and use it in GitHub Desktop.
Reinstallation of Mac

Configure MacBook Pro for work

This gist was created based on this web page.

  1. Download Xcode by executing xcode-select --install and select Get Xcode option.

  2. Install the standalone Command Line Tools by executing xcode-select --install and select Install option.

  3. Install Homebrew by executing the next command.

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  4. Install git

    brew install git

  5. Configure git

    git config --global user.name "username"
    git config --global user.email "[email protected]"
    
  6. Install and generate GPG

    brew install gnupg
    
  7. Generate Public Key

    ssh-keygen -t rsa -b 4096 -C "[email protected]"
    
  8. Install iTerm2

    brew cask install iterm2
    
  9. Install PostgresQL

    brew install postgresql

  10. Install PostGIS

    brew install postgis

  11. Configure PostgreSQL as a service

    brew services start postgresql

  12. Configure PostGIS Extensions

  13. Install SDKMan https://sdkman.io/install

    $ curl -s "https://get.sdkman.io" | bash
    $ source "$HOME/.sdkman/bin/sdkman-init.sh"
    $ sdk version
    
  14. Install Maven

    brew install maven
    
  15. Install Gradle

    brew install gradle
    
  16. Add iTerm color and theme

    https://github.com/sindresorhus/iterm2-snazzy
    https://github.com/sindresorhus/pure
    
  17. Install Oh My ZSH

  18. Install fonts

    brew tap homebrew/cask-fonts or
    brew install --cask font-fira-code
    
    brew tap caskroom/fonts
    brew cask install font-fontawesome
    brew cask install font-awesome-terminal-fonts
    

    nerd-fonts

  19. Cofigure Shell Theme

    Spaceship Theme

    Powerlevel9k

    zsh-syntax-highlighting

    zsh-autosuggestions

  20. Download and install the SourceCodePro Powerline Awesome font

  21. Configure Powerlevel9K Theme

     POWERLEVEL9K_PROMPT_ON_NEWLINE=true 
     POWERLEVEL9K_MODE='awesome-patched' 
     POWERLEVEL9K_SHORTEN_DIR_LENGTH=2 
     POWERLEVEL9K_SHORTEN_STRATEGY="truncate_middle" 
     POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon context dir vcs) 
     POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status rbenv virtualenv vi_mode) 
     POWERLEVEL9K_STATUS_VERBOSE=false 
    
  22. Install Python 3

    brew install python3
    brew install pyenv
    brew install pyenv pyenv-virtualenv pyenv-virtualenvwrapper
    
  23. Install the Python Package Index

    sudo easy_install "pip < 21.0" Since the macos bigs sur has some issues with the version of pip and typing modules, first install pip on an older version

  24. Install the Virtual Environment tool

    sudo pip install virtualenv
    sudo pip install virtualenvwrapper --ignore-installed six
    
    export WORKON_HOME=$HOME/.virtualenvs
    source /usr/local/bin/virtualenvwrapper.sh
    
  25. Install Poetry documentation

    curl -sSL https://install.python-poetry.org | python3 -
    
  26. Install Kubernetes

    brew install kubectl
    
  27. Install Minikube (it will require to install virtualbox)

    brew install minikube
    
  28. Start minikube cluster

    minikube start --driver=virtualbox
    
  29. Install RabbitMQ

    brew install rabbitmq
    
  30. Run RabbitMQ as a service

    brew services restart rabbitmq
    

    or

    CONF_ENV_FILE="/usr/local/etc/rabbitmq/rabbitmq-env.conf" /usr/local/opt/rabbitmq/sbin/rabbitmq-server
    
  31. Install PHP 7.2

    brew tap homebrew/dupes
    brew tap homebrew/php
    brew install php72 --without-mysql --without-apache --with-postgresql --with-fpm
    
  32. Install NGINX

    brew install nginx

  33. New page to install P HP and NGNIX

  34. For install and configure NGINX and PHP follow this page

  35. For install neovim

    brew install neovim/neovim/neovim

    Follow this project to see how to install plugins Install this colorscheme

  36. Install Node, Typescript and Anguar

    brew install node
    npm install -g typescript
    npm install -g @angular/cli
    npm install -g cordova ionic
    
  37. Install Atom packages

    angular-2-typeScript-snippets
    atom-bootstrap3
    atom-bootstrap4
    atom-typescript
    file-icons
    font-awesome-snippets
    platformio-ide-terminal
    v-bootstrap4
    autocomplete-js-import
    Markdown-Writer
    Markdown-Scroll-Sync
    Markdown-Format
    
  38. Enable NTFS on Mac, follow this link

  39. Install ncdu

    $ brew install ncdu
    
  40. Install Fira-font

    brew tap homebrew/cask-fonts
    brew cask install font-fira-code
    
    https://www.dafont.com/flottflott.font
    
  41. Install Victor Mono Font

    brew tap homebrew/cask-fonts && brew cask install font-victor-mono
    
  42. Install Visual Studio Code

    brew cask install visual-studio-code
    
  43. VS Code themes

    https://github.com/juanmnl/vs-hydra
    https://marketplace.visualstudio.com/items?itemName=juanmnl.vscode-theme-1984
    
  44. Install Snyk

    brew tap snyk/tap
    brew install snyk
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment