#!/usr/bin/env bash
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install build-essential openssl curl wget zip libssl-dev software-properties-common pkg-config
wget -O ~/nginx_signing.key http://nginx.org/keys/nginx_signing.key
sudo apt-key add ~/nginx_signing.key
echo "deb http://nginx.org/packages/mainline/ubuntu/ trusty nginx" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get -y install nginx
sudo rm ~/nginx_signing.key
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get -y install nodejs
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get -y install git
sudo apt-get update
sudo apt-get -y autoclean
sudo apt-get -y autoremove