Skip to content

pragmatic-web/dotfiles

 
 

Repository files navigation

My mac osx setup

Uses https://yadm.io/ GitHub: https://github.com/TheLocehiliosan/yadm

Setup

  1. Enable Filevault Under Security and Privacy
  2. Enable Firmware password by booting into recovery mode with CMD + R and enabling it
  3. Install Homebrew
  4. brew install yadm
  5. Add your git ssh key
  6. yadm clone <- This repository
  7. yadm status
  8. Login to App Store
  9. yadm bootstrap
  10. Manually set caps lock to be escape
  11. Manually set the dark mode

How do get defaults

defaults read > a
defaults read > b
diff a b

Set Shell Default

Zsh Shell

chsh -s /bin/zsh

Install Apps Manually

Chome Extensions

  • ZenHub
  • Refined Github

Make commits to submodules

  1. submodule commit there and push
  2. then commit in yadm then push

Google Cloud

gcloud auth login
gcloud auth application-default login
gcloud auth configure-docker

For each project:

gcloud config set project PROJECT_ID
gcloud container clusters get-credentials --zone=[ZONE] primary

Mysql

gcloud components install cloud_sql_proxy
cloud_sql_proxy -instances=INSTANCE_HERE:prisma=tcp:3306
mysqlsh -u proxyuser --host 127.0.0.1

Ambassador Edgectl

sudo curl -fL https://metriton.datawire.io/downloads/darwin/edgectl -o /usr/local/bin/edgectl && sudo chmod a+x /usr/local/bin/edgectl
edgectl login --namespace=default URL -c CLUSTER

Helm

curl -L https://git.io/get_helm.sh | bash -s -- --version v2.14.1

Using Brew

git clone https://github.com/Homebrew/homebrew-core.git
git log master -- Formula/kubernetes-helm.rb
brew install https://github.com/Homebrew/homebrew-core/raw/a55a387ba0/Formula/kubernetes-helm.rb

Homebrew

Pin Terraform Version

From: https://blog.gruntwork.io/installing-multiple-versions-of-terraform-with-homebrew-899f6d124ff9

git clone git@github.com:Homebrew/homebrew-core.git
cd homebrew-core
git log master -- Formula/terraform.rb
git checkout 3507fce2ba1f36cc371fe888fd093bf5aa79981d
cd Formula
brew unpin terraform
brew unlink terraform
brew install terraform.rb

# Switching
brew switch terraform 0.11.13

# Pinnig
brew pin terraform
brew info terraform

Misc Dev Resources:

Cool Apps to look into

Inspired from

About

My mac osx development setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 57.0%
  • Vim Script 43.0%