Skip to content

Instantly share code, notes, and snippets.

@hrishimittal
Last active September 25, 2020 09:53
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save hrishimittal/7fd25c950295ea2cbfbd63bfb6962a47 to your computer and use it in GitHub Desktop.
Save hrishimittal/7fd25c950295ea2cbfbd63bfb6962a47 to your computer and use it in GitHub Desktop.
Setting up a new MacBook for Ruby on Rails web development
  1. Install Google Chrome
  2. Install Karabiner-Elements and map fn key to ctrl - https://github.com/tekezo/Karabiner-Elements
  3. Install Homebrew - http://brew.sh/
  4. Install GnuPG - brew install gnupg2
  5. Generate SSH key - ssh-keygen -t rsa -b 4096 -C "hrishimittal@gmail.com"
  6. Install rvm - http://rvm.io/
  7. Install ruby - rvm install 2.4.0 (or whatever the latest version is)
  8. Install Postgres.app - https://postgresapp.com/ Add psql to path - /Applications/Postgres.app/Contents/Versions/latest/bin/psql
  9. Git - brew install git
  10. Ruby on Rails - gem install rails
  11. Install Heroku Toolbelt - https://devcenter.heroku.com/articles/heroku-cli
  12. Add SSH public key to Github, Bitbucket, Heroku.
  13. To delete words with alt+backspace in Terminal, go to Preferences > (your profile) > Keyboard > Use option as meta key.
  14. Sublime Text shortcut: sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
  15. In ~/.bash_profile: alias g=git and export EDITOR='subl'
  16. Custom prompt: In ~/.bash_profile: export PS1="Learnetto.com \$ "
  17. Change default screenshots location: defaults write com.apple.screencapture location ~/screenshots
@gkucmierz
Copy link

What change default screenshots is doing?

@hrishimittal
Copy link
Author

What change default screenshots is doing?

By default, OS X puts screenshots in the ~/Desktop folder which gets mixed with everything else and messy very quickly if you take a lot of screenshots. I like to have them in a separate screenshots folder.

@gkucmierz
Copy link

Oh, so you can change only location of them, nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment