Skip to content

Instantly share code, notes, and snippets.

@aroach
Last active March 5, 2018 00:44
Show Gist options
  • Save aroach/c69ddcef92cdd899085158e6a813546d to your computer and use it in GitHub Desktop.
Save aroach/c69ddcef92cdd899085158e6a813546d to your computer and use it in GitHub Desktop.
#!/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