🏠 HOME








<aside> <img src="/icons/report_red.svg" alt="/icons/report_red.svg" width="40px" /> Never use $ sudo to install tools

</aside>


Install software

Basic development tools

Follow those instructions (inspired from https://github.com/lewagon/setup/blob/master/second-setup/OSX.md)

# XCode libraries 
xcode-select --install

# Homebrew 
/bin/bash -c "$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh>)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/$(whoami)/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
brew update
function install_or_upgrade { brew ls | grep $1 > /dev/null; if (($? == 0)); then brew upgrade $1; else brew install $1; fi }
install_or_upgrade "git"
install_or_upgrade "wget"
install_or_upgrade "imagemagick"
install_or_upgrade "jq"
install_or_upgrade "openssl"

# Oh my ZSH  
sh -c "$(curl -fsSL <https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh>)"
echo 'export PATH=/opt/homebrew/bin:$PATH' >> ~/.zshrc
# restart the terminal

# Generate a public key 
# (Use the email you use to create your Github account) 
mkdir -p ~/.ssh && ssh-keygen -t ed25519 -o -a 100 -f ~/.ssh/id_ed25519 -C "[email protected]"
cat ~/.ssh/id_ed25519.pub

# Once you have that public key 
# Go to your GitHub settings
# Add that SSh key to your account 

# Get some dotfiles
git clone [email protected]:lewagon/dotfiles.git
cd dotfiles
./install.sh 
# Restart the terminal 

# Install RBENV 
sudo rm -rf $HOME/.rbenv /usr/local/rbenv /opt/rbenv /usr/local/opt/rbenv
brew uninstall --force rbenv ruby-build
unset RBENV_ROOT && exec zsh
brew install rbenv ruby-build && echo 'eval "$(rbenv init -)"' >> ~/.zshrc && exec zsh
# Restart the terminal 

# Install ruby 
rbenv install 3.1.4
rbenv global 3.1.4
# Restart your terminal

# Install some gems 
gem install rake bundler rspec rubocop pry pry-byebug hub colored octokit rails

# Install postgres 
brew install postgresql@12 && brew services start postgresql@12
# Restart the terminal 

# Install redis 
brew install [email protected]

# Install watchman 
brew install watchman

# Then some other tools & libraries 
brew install heroku/brew/heroku
brew install nvm

# Restart the terminal
cat ~/.zshrc
# make sure you see the following 2 lines in it:
# export NVM_DIR="$HOME/.nvm"
# [ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh"

# On macOS Big Sur with M1 use the following:
# [ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && . "/opt/homebrew/opt/nvm/nvm.sh"

# If not : copy those two lines 
# Open your .zshrc file in a text editor 
# Past those two lines in the 'Load nvm' part of the file

# Install Node.js
nvm install lts/erbium
# Check out which node version you need on 
# <https://nodejs.org/en/download/releases/>

#Install yarn and some useful add-ons
brew install yarn
yarn global add ember-cli
yarn global add eslint
yarn global add eslint-plugin-ember-suave
yarn global add eslint-plugin-hbs

Clone repositories

Clone every overloop GitHub account’s repository you have access to into your chosen folder.


Configure your computer

Then, also follow those steps:


Tips and tricks for productivity

Untitled

<aside> <img src="/icons/playback-previous_lightgray.svg" alt="/icons/playback-previous_lightgray.svg" width="40px" /> WebSocket

</aside>

<aside> <img src="/icons/playback-next_lightgray.svg" alt="/icons/playback-next_lightgray.svg" width="40px" /> Bug Fixing 101

</aside>