Skip to content

Latest commit

 

History

History
364 lines (218 loc) · 6.92 KB

Development_Env_Setup_On_Mac.md

File metadata and controls

364 lines (218 loc) · 6.92 KB

Development Environment setup on Macbook

Mac Cheat Sheets

Browsers

  • Microsoft Edge
  • Google chrome

Collobration

  • Microsoft Teams

Utilities

Flycut - Clipboard manager

  • Can be installed from appstrore.

Boop - Developer Tool

  • Can be installed from appstrore.

Install latest macos package(tabby-1.0.197-macos-arm64.pkg)

To display git branch names and other stylings, install ohmyzsh

Run the below command post installing Tabby terminal, for the terminal to instantly change with default theme.

$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Post installing zsh, need to do the below to load bash alises into zsh.

$ vi ~/.zshrc

Copy below at the bottom of the file

source ~/.bash_profile

:wq

$ source ~/.zshrc

Sublime Text

  • Use this as replaced for Notepad++ on Windows

Json Viewer

Native Mac app to visualize, validate and format JSON datasets - https://jsonviewer.app/

Applications

IntelliJ IDEA

Download and install IntelliJ IDEA Community Edition.

Install below plugins after launching.

  • Cucumber for Java
  • Markdown

VSCode

Download VSCode archive and extract the content. Move the extracted app file to applications.

Install below extensions by launching VS Code Quick Open (⌘+P)

ext install zesbenp.prettier-vscode

ext install donjayamanne.githistory

ext install johnpapa.vscode-peacock

ext install vscjava.vscode-java-pack

ext install redhat.java

ext install vscjava.vscode-java-debug

ext install vscjava.vscode-java-dependency

ext install vscjava.vscode-maven

ext install vscjava.vscode-java-test

ext install eamodio.gitlens

ext install VisualStudioExptTeam.vscodeintellicode

ext install ms-vscode-remote.remote-containers

ext install ms-azuretools.vscode-docker

ext install ms-kubernetes-tools.vscode-kubernetes-tools

Docker Desktop

Post installation, navigate to settings and enable kubernetes cluster.

Run the below commands to verify if installation and configuration is successful.

$ docker -v

$ kubectl version

Postman

Download Postman archive and extract the content. Move the extracted app file to applications.

Binaries

Homebrew

Execute the below in terminal

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Run the below to add homebrew to path

$ (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/madan/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"

Run the below to verify if brew is installed successfully and available in the path for subsequent commands

$ brew search java

Curl

$ brew install curl

$ curl --help

SDKMAN

$ curl -s "https://get.sdkman.io" | bash

$ source "$HOME/.sdkman/bin/sdkman-init.sh"

$ sdk version

$ sdk list

Java

Elcipse Temurin Distro

Install latest version of OpenJDK distribution from Eclipse Temurin.

https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.7%2B7/OpenJDK17U-jdk_aarch64_mac_hotspot_17.0.7_7.pkg

$ java --version

To uninstall, run the below command

$ rm -rf /Library/Java/JavaVirtualMachines/temurin-17.jdk

Using SDKMAN

Identify and choose the version of Java that you wish to install

$ sdk list java

$ sdk install java 8.0.372-zulu

$ java -version

Install another version of Java. Post installation, prompt would appear to choose this version as default. Opt in accordingly.

$ sdk install java 11.0.19-zulu

To switch between versions of Java, use the below commands

# See which versions are installed
$ sdk list java 

$ sdk use java 11.0.19-zulu

To set a permanent default, use the sdk default command. For instance, to make JDK 11 the default, type:

$ sdk default java 11.0.0-open

Maven

$ brew install maven

$ mvn -v

Gradle

$ brew install gradle

$ mvn -v

Git

$ brew install git

$ git -v

mitmweb

mitmproxy is a free and open source interactive HTTPS proxy.

$ brew install mitmproxy

Node

Install latest version of Node

$ brew install node

$ node -v

$ npm -v

$ npm install -g yarn

$ yarn -v

Install older version of Node

$ brew install node@16

Switch between node versions

$ brew unlink node

$ brew link node@16

$ echo 'export PATH="/usr/local/opt/node@16/bin:$PATH"' >> ~/.bash_profile
or
$ echo 'export PATH="/opt/homebrew/opt/node@16/bin:$PATH"' >> ~/.zshrc

$ source ~/.bash_profile
or 
$ source ~/.zshrc

$ node -v

Mockoon

Mockoon is the easiest and quickest way to design and run mock REST APIs

brew install --cask mockoon

Meld

Meld is Visual diff and merge tool, which helps you compare files, directories, and version controlled projects. It provides two- and three-way comparison of both files and directories, and has support for many popular version control systems

brew install --cask meld

meld is not verified for malwere and will restrict opening the app. Select option to open meld anyway from System Settings -> privacy & Secuirty

MacOS Customizations

Choose Open with VSCode for selected folder from finder

https://stackoverflow.com/questions/64040393/open-a-folder-in-vscode-through-finder-in-macos

Change default command actions by setting aliases

Modify default behaviour of the command by passing additional options and setting the alias.

Run 'vi ~/.bash_profile' and add the below as needed

ls

Change behaviour of ls by passing -a to show list of all files by default - https://wpbeaches.com/make-an-alias-in-bash-or-zsh-shell-in-macos-with-terminal/

alias ls='ls -lah'

To apply the changes in the current terminal, run source ~/.bash_profile

watch

Watch will run a command repeatedly which can turn any command line program output into a “real time” display.

Run below to install watch command

$ brew install watch

Additional tools and configurations

Kubeshark

Kubeshark is the API Traffic Analyzer for Kubernetes.

Ensure Kubernetes is installed and configured to try out kubeshark.

Run the below commands to install kubeshark

$ brew tap kubeshark/kubeshark

$ brew install kubeshark

$ kubeshark version

Run below command to start kubeshark and to showup the access url for kubeshark

$ kubeshark tap --proxy-host 0.0.0.0

Run below command to clean all relics of Kubeshark from your cluster when using the CLI

$ kubeshark clean

Notion AI

Notion is the connected workspace where better, faster work happens. Now with AI

AutoRegex

AutoRegex - Effortless conversions from English to RegEx