Goodies:
zsh
&oh-my-zsh
zsh-autosuggestion
&zsh-syntax-highlighting
plugins. Addgit
andhistory
- docker-ce and
docker-compose
Mandatory:
- Install
rbenv
andnodenv
- Ruby 2.5.3
- Node 12.16.1
- Install
yarn
- postgresql-9.4 and remove
postgres
user password (https://gist.github.com/tonymtz/9e4f94d306c87037e206d12f92168eb2) - Install
libpq-dev
package - 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:
gem install bundler -v 1.17.3
gem install pry sym colored2 --no-ri --no-rdoc 1>/dev/null
bundle config gems.contribsys.com 560ab4f7:a27bccd7
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:
cp -v config/database.dev.yml config/database.yml
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:
sudo apt install libsqlite3-dev
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