Skip to content

Instantly share code, notes, and snippets.

@johnpyp
Last active April 8, 2018 17:06
Show Gist options
  • Save johnpyp/0fecf9e8a5426f8e9550742214481ace to your computer and use it in GitHub Desktop.
Save johnpyp/0fecf9e8a5426f8e9550742214481ace to your computer and use it in GitHub Desktop.
Ubuntu Config
# git ALL COMMIT PUSH aka gacp
function gacp {
git add .;
git commit -m "$*";
git push
}
# CPR aka cp + rm = cpr. Replace function instead of copy.
function cpr {
rm -rf $2;
cp -rf $1 $2
}

Dev

  • Git
    • sudo apt-get install git
  • VSCode
    • curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
    • sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
    • sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
    • sudo apt-get update
    • sudo apt-get install code # or code-insiders
  • Chrome
    • wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
    • echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
    • sudo apt-get update
    • sudo apt-get install google-chrome-stable
  • Nvm
    • nvm ls-remote
    • nvm install <<version>>
    • npm i -g npm
  • Python 2.7
    • sudo apt install python2.7 python-pip python3-pip
  • Apache2 and PHP
    • sudo apt-get install apache2
    • sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql
  • FileZilla
    • sudo apt-get install filezilla
  • Docker`

Misc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment