Skip to content

Instantly share code, notes, and snippets.

@natec425
Last active May 18, 2019 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save natec425/59234916cd87e004adaab892cb80dd46 to your computer and use it in GitHub Desktop.
Save natec425/59234916cd87e004adaab892cb80dd46 to your computer and use it in GitHub Desktop.
if [[ $UID != 0 ]]; then
echo "Please run this script with sudo:"
echo "sudo bash $0"
exit 1
fi
CODE_URL=https://az764295.vo.msecnd.net/stable/19222cdc84ce72202478ba1cec5cb557b71163de/code_1.12.2-1494422229_amd64.deb
CHROME_URL=https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
GITKRAKEN_URL=https://release.gitkraken.com/linux/gitkraken-amd64.deb
install_git () {
sudo apt install git -y
}
download_and_install () {
curl -o package.deb $1
sudo dpkg -i package.deb
rm package.deb
sudo apt install -fy
}
install_code () {
download_and_install $CODE_URL
}
install_chrome () {
download_and_install $CHROME_URL
}
install_gitkraken () {
download_and_install $GITKRAKEN_URL
}
install_code_extensions () {
code --install-extension donjayamanne.python
code --install-extension christian-kohler.path-intellisense
code --install-extension magicstack.magicpython
code --install-extension ms-vscode.csharp
}
install_pip () {
curl https://bootstrap.pypa.io/get-pip.py | python3
}
install_pip_packages () {
pip install --user pytest django requests
}
sudo apt update
sudo apt upgrade -y
install_git
install_gitkraken
install_code
install_chrome
install_code_extensions
install_pip
install_pip_packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment