Skip to content

Instantly share code, notes, and snippets.

@nanosplit
Created January 12, 2024 05:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanosplit/deb5c73f9e12bbfe45f9e5eb82832e9c to your computer and use it in GitHub Desktop.
Save nanosplit/deb5c73f9e12bbfe45f9e5eb82832e9c to your computer and use it in GitHub Desktop.
sudo apt-get update
sudo apt-get install git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev
cd
git clone https://github.com/excid3/asdf.git ~/.asdf
echo '. "$HOME/.asdf/asdf.sh"' >> ~/.bashrc
echo '. "$HOME/.asdf/completions/asdf.bash"' >> ~/.bashrc
echo 'legacy_version_file = yes' >> ~/.asdfrc
echo 'export EDITOR="code --wait"' >> ~/.bashrc
exec $SHELL
asdf plugin add ruby
asdf plugin add nodejs
asdf install ruby 3.3.0
asdf global ruby 3.3.0
# Update to the latest Rubygems version
gem update --system
asdf install nodejs 20.10.0
asdf global nodejs 20.10.0
which node
#=> /home/username/.asdf/shims/node
node -v
#=> 20.10.0
# Install yarn for Rails jsbundling/cssbundling or webpacker
npm install -g yarn
git config --global color.ui true
git config --global user.name "YOUR NAME"
git config --global user.email "YOUR@EMAIL.com"
gem install rails -v 7.1.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment