Skip to content

Instantly share code, notes, and snippets.

View atefth's full-sized avatar
:shipit:
Investigating the endless possibilites

Atef Haque atefth

:shipit:
Investigating the endless possibilites
View GitHub Profile
@atefth
atefth / vs-code-server.sh
Created April 2, 2019 16:16
Running VS Code server on linux
wget https://github.com/codercom/code-server/releases/download/1.408-vsc1.32.0/code-server1.408-vsc1.32.0-linux-x64.tar.gz
tar -xvf code-server1.408-vsc1.32.0-linux-x64.tar.gz
rm -rf code-server1.408-vsc1.32.0-linux-x64.tar.gz
cd code-server1.408-vsc1.32.0-linux-x64
echo "export VS_CODE_SERVER=\"$(pwd)/./code-server\"" >> ~/.bashrc
source ~/.bashrc
cd /path/to/app
$VS_CODE_SERVER
@atefth
atefth / ubuntu18.aws.rails.sh
Created December 17, 2018 12:08
Ubuntu 18 + rbenv + rails + mysql
sudo apt-get -y update
#development tools
sudo apt-get install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline-dev libreadline6-dev zlib1g-dev libncurses5-dev libxml2-dev libxslt1-dev libffi-dev gcc g++ make
#rbenv
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
#rbenv-aliases
# Development Tools
sudo yum -y update
sudo yum groupinstall -y 'development tools'
sudo yum install -y git-core zlib zlib-devel gcc-c++ patch readline readline-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison curl sqlite-devel
# Rbenv
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile