Skip to content

Instantly share code, notes, and snippets.

@alonisser
Last active December 27, 2024 10:41
Show Gist options
  • Save alonisser/4163ab265457612e7834e1a2130a251c to your computer and use it in GitHub Desktop.
Save alonisser/4163ab265457612e7834e1a2130a251c to your computer and use it in GitHub Desktop.
Setting up a dev machine (with osx)
--ignore-directory=node_modules
--ignore-directory=venv
alias ll="ls -lhA"
alias cd..="cd .."
alias psg="ps aux | grep -v grep | grep -i -e VSZ -e"
alias ps="ps auxf"
alias mkdir="mkdir -pv"
alias wget="wget -c"
alias histg="history | grep"
alias cat="bat"
[user]
email = alonisser@gmail.com
name = alonisser
[color]
sh = auto
[push]
default = upstream
[alias]
pr = pull --rebase --prune
lg = log --graph --pretty=format:'%Cred%h%Creset %C(yellow)%an%d%Creset %s %Cgreen(%cr)%Creset' --date=relative
ready = rebase -i @{u}
  • brew install: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • brew install --cask slack
  • chrome
    • lastpass
    • adblocker
  • pyenv brew install pyenv
  • nvm: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-/.oh-my-zsh/custom}/plugins/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

  • oh my zsh
    • plugins: git npm pip nvm node python sbt pyenv docker poetry poetry-env autoenv zsh-autosuggestions zsh-syntax-highlighting (also add pyenv to .zshrc before plugins)
    • fzf
brew install fzf
$(brew --prefix)/opt/fzf/install
  • Poetry: curl -sSL https://install.python-poetry.org | python3 -

  • scala + sbt

brew install coursier/formulas/coursier
cs setup --yes
cs install scala:2.12.16 && cs install scalac:2.12.16

brew install autoenv

  • jetbrains:
    • pycharm
    • webstorm
    • intellij
    • plugins
    • amazon Q/copilot
    • make
  • vscode
  • docker machine
  • vim
  • tools: jq wget brew install jq wget
  • postman - UI download
  • az cli brew install azure-cli + az login
  • brew tap azure/azd && brew install azd
  • aws cli
sudo installer -pkg AWSCLIV2.pkg -target /
# more modern way
brew install awscli
  • databricks cli pip install databricks-cli
  • kubectl brew install kubectl
  • brew install bat
  • brew install kcat
  • gpg
brew install gpg
  • databricks
pip install databricks --global
# more modern
brew tap databricks/tap && brew install databricks
  • ack-grep
brew install ack
  • terraform
brew tap hashicorp/tap
brew install hashicorp/tap/terraform
  • Mongo
brew tap mongodb/brew
brew install mongodb-database-tools


  • Redis cli brew install redis
  • Setting up virtualenvwrapper to actually work
pip install --user virtualenvwrapper
# in .zshrc
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Projects
export VIRTUALENVWRAPPER_VIRTUALENV=~/.local/bin/virtualenv

source ~/.local/bin/virtualenvwrapper.sh
  • Setting python and libs dependencies
brew install libmemcached zlib openssl
# And in the .zshrc
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib
brew install libpq
  • Heroku
brew tap heroku/brew && brew install heroku
  • VPN
brew install openvpn-connect

then add the two files with the credentials

  • k8s stuff
brew install kind
brew install helm
kind create cluster

curl https://sh.rustup.rs -sSf | sh

Follow the relevant notion page on setting up workstuff

  • appstore: (first login)
  • telegram
  • whatsapp
  • update: keynote/numbers
  • slack

Directly

  • skype
  • chrome
  • anydesk
  • zoom
  • teams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment