Skip to content

Instantly share code, notes, and snippets.

@tonymtz
Last active March 9, 2020 22:15
Show Gist options
  • Save tonymtz/b7f18e4e8c0faa151769d2ab808ffb3a to your computer and use it in GitHub Desktop.
Save tonymtz/b7f18e4e8c0faa151769d2ab808ffb3a to your computer and use it in GitHub Desktop.

Goodies:

  1. zsh & oh-my-zsh
  2. zsh-autosuggestion & zsh-syntax-highlighting plugins. Add git and history
  3. docker-ce and docker-compose

Mandatory:

  1. Install rbenv and nodenv
  2. Ruby 2.5.3
  3. Node 12.16.1
  4. Install yarn
  5. postgresql-9.4 and remove postgres user password (https://gist.github.com/tonymtz/9e4f94d306c87037e206d12f92168eb2)
  6. Install libpq-dev package
  7. The famous silver searcher sudo apt install silversearcher-ag

Make sure your max_user_watches limit is enough for a big project

$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

Steps:

  1. gem install bundler -v 1.17.3
  2. gem install pry sym colored2 --no-ri --no-rdoc 1>/dev/null
  3. bundle config gems.contribsys.com 560ab4f7:a27bccd7
  4. bundle install

Decrypt secrets: $ sym -ck ${HOMEBASE_SYM_KEY} -d -f application.dev.yml.enc -o application.dev.yml Decryption password is prompted. It is stored along with HOMEBASE_SYM_KEY which is the Encrypted Key in 1Password.

Prepare config files for dev env:

  1. cp -v config/database.dev.yml config/database.yml
  2. cp -v config/application.dev.yml config/application.yml

Create your DB for dev: bundle exec rake db:create

and migrate it: bundle exec rake db:migrate

Install assets (run from client/ directory): yarn install

Register git hooks. It is ok if it fails because you have registered them already:

ln -s `pwd`/bin/git-hooks/pre-commit .git/hooks/pre-commit
ln -s `pwd`/bin/git-hooks/post-merge .git/hooks/post-merge
ln -s `pwd`/bin/git-hooks/post-checkout .git/hooks/post-checkout
ln -s `pwd`/bin/git-hooks/commit-msg .git/hooks/commit-msg

Optional, populate from seed (with server running): RAILS_ENV=development bundle exec rake db:seed > /dev/null

Mailcatcher:

  1. sudo apt install libsqlite3-dev
  2. gem install mailcatcher

More cool tools:

  • brave (or chrome)
  • minetime (calendar app)
  • jetbrains toolbox (best IDE)
  • zoom (meetings)
  • openvpn and nordvpn settings (vpn)
  • simplenote (notes app)
  • telegram (messenger)
  • flameshot (screenshots)
  • peek (desktop recorder)
  • terminator (terminal)

Can be used in browser instead:

  • slack (communication with team)
  • spotify (music, babe)
  • discord (communication with friends)

Bluetooth fixes: https://medium.com/@overcode/fixing-bluetooth-in-ubuntu-pop-os-18-04-d4b8dbf7ddd6

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