Skip to content

Instantly share code, notes, and snippets.

View aimerib's full-sized avatar

Aimeri Baddouh aimerib

View GitHub Profile
@aimerib
aimerib / .zshrc
Last active September 10, 2020 01:43
Quickly generating dockerized rails projects
#append this to the end of your ~/.zshrc or ~/.bashrc
generate_rails_project() {
docker run -it --rm -v "$PWD":/"$1" -w /"$1" ruby:latest /bin/bash -c "curl -sL https://deb.nodesource.com/setup_12.x | bash && apt-get install -y nodejs && npm i -g yarn && gem install rails && rails new $1 $2"
echo "FROM ruby:latest
\n
\n
RUN mkdir /"$1"
WORKDIR /"$1"
\n

Keybase proof

I hereby claim:

  • I am aimerib on github.
  • I am aimeri (https://keybase.io/aimeri) on keybase.
  • I have a public key ASA78Z3NHRMwh1lvlU55LT_-oTjKPS3X__sjt-WVMEHCZwo

To claim this, I am signing this object: