Skip to content

Instantly share code, notes, and snippets.

@ivan-loh
Created October 29, 2015 08:03
Show Gist options
  • Select an option

  • Save ivan-loh/6680187e41eeb1333c02 to your computer and use it in GitHub Desktop.

Select an option

Save ivan-loh/6680187e41eeb1333c02 to your computer and use it in GitHub Desktop.
registry server
#!/bin/bash
# Add Required repository
sudo add-apt-repository -y ppa:keithw/mosh
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install -y htop build-essential nodejs mosh
sudo npm install -g pm2 servers
sudo chown -R `whoami` ~/.npm
# gitignore_global
wget https://gist.githubusercontent.com/octocat/9257657/raw/c91b435be351fcdff00f6f97f20824d0286b99ef/.gitignore
mv .gitignore ~/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global
# screen
wget https://raw.githubusercontent.com/ivan-loh/dotfiles/master/.screenrc ~/.screenrc
sudo dpkg-reconfigure tzdata
ssh-keygen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment