Skip to content

Instantly share code, notes, and snippets.

View iiewad's full-sized avatar
:shipit:
Focusing

Tomas iiewad

:shipit:
Focusing
View GitHub Profile
@iiewad
iiewad / old ruby on m1.sh
Created November 15, 2023 08:11 — forked from CaiqueMitsuoka/old ruby on m1.sh
Install old ruby version on M1
# Rbenv thread for old versions after xcode 12+
# https://github.com/rbenv/ruby-build/issues/1489
# PR for openssl 1.0 to support M1
# https://github.com/rbenv/homebrew-tap/pull/2
curl https://raw.githubusercontent.com/rbenv/homebrew-tap/e472b7861b49cc082d1db0f66f265368da107589/Formula/openssl%401.0.rb -o ./openssl@1.0.rb
brew install openssl@1.0.rb
brew --prefix openssl@1.0
brew --prefix readline
commands:
01_install_yarn:
command: "sudo wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo && curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash - && sudo yum install yarn -y"
02_download_nodejs:
command: "curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -"
03_install_nodejs:
command: "yum -y install nodejs"
04_mkdir_webapp_dir:
command: "mkdir /home/webapp"