Skip to content

Instantly share code, notes, and snippets.

@Kasvit
Last active February 10, 2025 11:47
Show Gist options
  • Save Kasvit/2297fa1bd3089ae8d284f0318edbf794 to your computer and use it in GitHub Desktop.
Save Kasvit/2297fa1bd3089ae8d284f0318edbf794 to your computer and use it in GitHub Desktop.
new mac setup
chrome
warp
https://www.warp.dev/
brew
https://brew.sh/
dbngin (to install mysql, postgres)
https://dbngin.com/download
asdf (brew install asdf + homebrew+zsh)
https://asdf-vm.com/guide/getting-started.html
https://formulae.brew.sh/formula/zsh
asdf+node
https://github.com/asdf-vm/asdf-nodejs
asdf+ruby
https://github.com/asdf-vm/asdf-ruby
https://gorails.com/setup/macos/15-sequoia (but no mise, we will use asdf)
gem install solargraph
cursor editor
https://www.cursor.com/
profile:
https://gist.github.com/Kasvit/e1c500a16c5aeb0362d4b1e1cb6abf70
https://gist.github.com/igorkasyanchuk/9b2a91cbfe9a6ca1327e8fd8c45b94cb
dbeaver
https://dbeaver.io/download/
ssh key:
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
https://docs.gitlab.com/ee/user/ssh.html
Optionals:
iterm
https://www.mowglii.com/itsycal/ (callendar configure icon+autostart)
opera
telegram
viber
xmind 8 (mind maps)
numi (calculator, configure icon+autostart)
screenshots
https://shottr.cc/
in translator mac (paid)
docker (disable autostart)
logi options + (for keyboard)
redis insight
notion
paint x
commander one
orbstack
in app folder:
gem install ruby-lsp
gem "rubocop-lsp"
gem "ruby-lsp"
gem "ruby-lsp-rails"
gem "ruby-lsp-rspec"
--------------------------------------------
nano ~/.zshrc
export PATH="/usr/local/opt/curl/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/curl/lib"
export CPPFLAGS="-I/usr/local/opt/curl/include"
. /usr/local/opt/asdf/libexec/asdf.sh
export PATH="/usr/local/opt/libpq/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/libpq/lib"
export CPPFLAGS="-I/usr/local/opt/libpq/include"
alias s='git status'
alias migrate='rails db:migrate'
alias restore='git restore .'
alias server='./bin/dev'
function git_branch () {
git branch | grep "*" | awk '{ print $2 }' | tr -d '\n'
}
function push () {
local current_branch=$(git_branch)
git push origin "$current_branch"
}
function pull () {
local current_branch=$(git_branch)
git pull origin "$current_branch"
}
function cherry () {
git cherry-pick "$@"
}
alias cherry_abort="git cherry-pick --abort"
--------------------------------------------
function check_files () {
git status --porcelain | cut -c 1-3 --complement | xargs rubocop "$@"
}
export PATH="/usr/local/opt/mysql-client/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment