Last active
March 5, 2018 00:44
-
-
Save aroach/c69ddcef92cdd899085158e6a813546d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Usage: | |
# To run from workstation: bash -c "$(curl -fsSL <url>)" | |
red=`tput setaf 1` | |
green=`tput setaf 2` | |
reset=`tput sgr0` | |
# echo "${red}red text ${green}green text${reset}" | |
# Install packages | |
apps=( | |
plantuml | |
) | |
casks=( | |
pycharm | |
atom | |
balsamiq-mockups | |
) | |
check_error() { | |
if [ $1 -eq 0 ] | |
then | |
echo "${green}SUCCESS: $2 ${reset}" | |
else | |
echo "${red}ERROR: $2 ${reset}" >&2 | |
fi | |
} | |
echo "Clone workshop repo" | |
git clone https://github.com/CiscoDevNet/DEVNET-1770-examples.git | |
check_error $? "Clone workshop repo" | |
echo "Installing from homebrew" | |
brew install "${apps[@]}" | |
check_error $? "Install homebrew apps" | |
command -v ngrok | |
if [ $? -ne 0 ] | |
then | |
echo "${green}Installing ngrok${reset}" | |
brew cask install ngrok | |
else | |
echo "${red}Skipping ngrok${reset}" | |
fi | |
echo "Installing casks" | |
brew cask install "${casks[@]}" | |
check_error $? "Install homebrew casks" | |
echo "Installing virtualenv" | |
pip3 install virtualenv | |
check_error $? "Install virtualenv" | |
echo "Install linting tools" | |
pip3 install pylint | |
check_error $? "Install pylint" | |
apm install linter-pylint linter linter-ui-default intentions busy-signal | |
check_error $? "Install Atom linter plugins" | |
#echo "Install testing tools" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment