Skip to content

Instantly share code, notes, and snippets.

@gengshuo
gengshuo / ubuntu1604-rbenv-ruby251-install.sh
Last active July 19, 2018 07:53
Ubuntu 16.04 / rbenv / Ruby 2.5.1
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y build-essential git-core bison openssl libreadline6-dev curl zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 autoconf libc6-dev libpcre3-dev curl libcurl4-nss-dev libxml2-dev libxslt-dev imagemagick nodejs libffi-dev
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
touch ~/.bashrc
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install -l
@gengshuo
gengshuo / install-mysql-ubuntu1604.sh
Last active July 19, 2018 07:21
Install MySQL on Ubuntu16.04
sudo apt-get --assume-yes install mysql-common mysql-client libmysqlclient-dev mysql-server
mysql -u root -p
@gengshuo
gengshuo / Keybase proof
Created November 16, 2019 14:07
Keybase proof
### Keybase proof
I hereby claim:
* I am gengshuo on github.
* I am brownjhang (https://keybase.io/brownjhang) on keybase.
* I have a public key ASBd111sxOkhwx6khIlkYo1nTR0sQMbh1ImoAIwjU8u00go
To claim this, I am signing this object: