Skip to content

Instantly share code, notes, and snippets.

@tesths
Last active November 28, 2019 08:33
Show Gist options
  • Save tesths/2bc63d2d833c3c83d6ac1ff5b2f05252 to your computer and use it in GitHub Desktop.
Save tesths/2bc63d2d833c3c83d6ac1ff5b2f05252 to your computer and use it in GitHub Desktop.

Revisions

  1. tesths revised this gist Nov 28, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rvm.sh
    Original file line number Diff line number Diff line change
    @@ -21,7 +21,7 @@ rvm use 2.5.1 --default
    rvm -v
    ruby -v

    # gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
    # gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/

    gem install bundler
    bundle -v
  2. tesths revised this gist Aug 19, 2019. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions rvm.sh
    Original file line number Diff line number Diff line change
    @@ -3,13 +3,13 @@
    # export LANGUAGE=zh_CN.UTF-8
    # sudo locale-gen zh_CN.UTF-8

    apt-get -y install update
    apt-get -y install curl
    sudo apt-get -y install update
    sudo apt-get -y install curl

    echo "Install RVM"
    echo "---------------------------------------------------------------------------"

    apt-get -y install nodejs
    sudo apt-get -y install nodejs

    command gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
    command \curl -sSL https://get.rvm.io | bash -s stable
  3. tesths revised this gist Aug 19, 2019. 1 changed file with 8 additions and 8 deletions.
    16 changes: 8 additions & 8 deletions rvm.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    #fork from https://github.com/huacnlee/init.d
    export LC_ALL=zh_CN.UTF-8
    export LANGUAGE=zh_CN.UTF-8
    sudo locale-gen zh_CN.UTF-8
    # export LC_ALL=zh_CN.UTF-8
    # export LANGUAGE=zh_CN.UTF-8
    # sudo locale-gen zh_CN.UTF-8

    apt-get -y install update
    apt-get -y install curl
    @@ -16,17 +16,17 @@ command \curl -sSL https://get.rvm.io | bash -s stable
    command source /etc/profile.d/rvm.sh

    rvm requirements
    rvm install 2.3.5
    rvm use 2.3.5 --default
    rvm install 2.5.1
    rvm use 2.5.1 --default
    rvm -v
    ruby -v

    #gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
    # gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/

    gem install bundler
    bundle -v

    #bundle config mirror.https://rubygems.org https://gems.ruby-china.org
    # bundle config mirror.https://rubygems.org https://gems.ruby-china.org

    gem install rails
    # gem install rails
    echo "--------------------------- Install Successed -----------------------------"
  4. tesths revised this gist Dec 6, 2017. 1 changed file with 7 additions and 2 deletions.
    9 changes: 7 additions & 2 deletions rvm.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,10 @@
    #fork from https://github.com/huacnlee/init.d
    export LC_ALL=zh_CN.UTF-8
    export LANGUAGE=zh_CN.UTF-8
    sudo locale-gen zh_CN.UTF-8

    apt-get -y install update
    apt-get -y install curl

    echo "Install RVM"
    echo "---------------------------------------------------------------------------"
    @@ -11,8 +16,8 @@ command \curl -sSL https://get.rvm.io | bash -s stable
    command source /etc/profile.d/rvm.sh

    rvm requirements
    rvm install 2.3.3
    rvm use 2.3.3 --default
    rvm install 2.3.5
    rvm use 2.3.5 --default
    rvm -v
    ruby -v

  5. tesths revised this gist Dec 6, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions rvm.sh
    Original file line number Diff line number Diff line change
    @@ -6,8 +6,8 @@ echo "--------------------------------------------------------------------------

    apt-get -y install nodejs

    command gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
    command curl -sSL https://get.rvm.io | bash -s stable
    command gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
    command \curl -sSL https://get.rvm.io | bash -s stable
    command source /etc/profile.d/rvm.sh

    rvm requirements
  6. tesths revised this gist Nov 11, 2017. 1 changed file with 0 additions and 4 deletions.
    4 changes: 0 additions & 4 deletions rvm.sh
    Original file line number Diff line number Diff line change
    @@ -8,11 +8,7 @@ apt-get -y install nodejs

    command gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
    command curl -sSL https://get.rvm.io | bash -s stable
    if [ whoami = 'root']; then
    command source /etc/profile.d/rvm.sh
    else
    command source ~/.rvm/scripts/rvm
    fi

    rvm requirements
    rvm install 2.3.3
  7. tesths revised this gist Jul 23, 2017. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion rvm.sh
    Original file line number Diff line number Diff line change
    @@ -8,8 +8,13 @@ apt-get -y install nodejs

    command gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
    command curl -sSL https://get.rvm.io | bash -s stable
    source /etc/profile.d/rvm.sh
    if [ whoami = 'root']; then
    command source /etc/profile.d/rvm.sh
    else
    command source ~/.rvm/scripts/rvm
    fi

    rvm requirements
    rvm install 2.3.3
    rvm use 2.3.3 --default
    rvm -v
  8. tesths revised this gist Apr 25, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion rvm.sh
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,10 @@
    #fork from https://github.com/huacnlee/init.d
    apt-get -y install update

    echo "Install RVM"
    echo "---------------------------------------------------------------------------"

    apt-get install nodejs
    apt-get -y install nodejs

    command gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
    command curl -sSL https://get.rvm.io | bash -s stable
  9. tesths revised this gist Apr 25, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions rvm.sh
    Original file line number Diff line number Diff line change
    @@ -14,12 +14,12 @@ rvm use 2.3.3 --default
    rvm -v
    ruby -v

    gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
    #gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/

    gem install bundler
    bundle -v

    bundle config mirror.https://rubygems.org https://gems.ruby-china.org
    #bundle config mirror.https://rubygems.org https://gems.ruby-china.org

    gem install rails
    echo "--------------------------- Install Successed -----------------------------"
  10. tesths revised this gist Dec 30, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions rvm.sh
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,8 @@
    echo "Install RVM"
    echo "---------------------------------------------------------------------------"

    apt-get install nodejs

    command gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
    command curl -sSL https://get.rvm.io | bash -s stable
    source /etc/profile.d/rvm.sh
  11. tesths revised this gist Dec 30, 2016. 1 changed file with 8 additions and 14 deletions.
    22 changes: 8 additions & 14 deletions rvm.sh
    Original file line number Diff line number Diff line change
    @@ -2,28 +2,22 @@

    echo "Install RVM"
    echo "---------------------------------------------------------------------------"
    command gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
    command curl -L https://get.rvm.io | bash -s stable
    if [ whoami = 'root']; then
    command source /etc/profile.d/rvm.sh
    else
    command source ~/.rvm/scripts/rvm
    fi

    if [ MIRROR = '1' ]; then
    echo "ruby_url=https://cache.ruby-china.org/pub/ruby" > ~/.rvm/user/db
    fi
    command gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
    command curl -sSL https://get.rvm.io | bash -s stable
    source /etc/profile.d/rvm.sh

    rvm requirements
    rvm install 2.3.3 --disable-binary
    rvm install 2.3.3
    rvm use 2.3.3 --default
    rvm -v
    ruby -v

    if [ MIRROR = '1' ]; then
    gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
    fi

    gem install bundler
    bundle -v

    bundle config mirror.https://rubygems.org https://gems.ruby-china.org

    gem install rails
    echo "--------------------------- Install Successed -----------------------------"
  12. tesths created this gist Dec 30, 2016.
    29 changes: 29 additions & 0 deletions rvm.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    #fork from https://github.com/huacnlee/init.d

    echo "Install RVM"
    echo "---------------------------------------------------------------------------"
    command gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
    command curl -L https://get.rvm.io | bash -s stable
    if [ whoami = 'root']; then
    command source /etc/profile.d/rvm.sh
    else
    command source ~/.rvm/scripts/rvm
    fi

    if [ MIRROR = '1' ]; then
    echo "ruby_url=https://cache.ruby-china.org/pub/ruby" > ~/.rvm/user/db
    fi

    rvm requirements
    rvm install 2.3.3 --disable-binary
    rvm use 2.3.3 --default
    rvm -v
    ruby -v

    if [ MIRROR = '1' ]; then
    gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
    fi

    gem install bundler
    bundle -v
    echo "--------------------------- Install Successed -----------------------------"