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
| """ | |
| Running Example: | |
| === | |
| python Model16.py branchRenewals2016.xlsx --all_data "Model 2016" groups.xlsx --fixed_cost "Sheet1" cost.csv | |
| main data file sheet name group file sheet name cost file | |
| === | |
| The purpose of this script is to optimise budget based on risk and cost of assets using linear programming | |
| This script requires the following external packages: |
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/sh | |
| # Get LAMP | |
| sudo apt-get update | |
| sudo apt-get upgrade -y | |
| sudo apt-get install lamp-server^ | |
| # Get Wordpress ~/wordpress | |
| wget https://wordpress.org/latest.tar.gz | |
| tar -xzf latest.tar.gz |
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 | |
| cd ~/ | |
| #install pip3 | |
| sudo apt-get install -y python3-setuptools | |
| sudo easy_install3 pip | |
| # get jupyterhub-deploy-docker | |
| git clone https://github.com/jupyterhub/jupyterhub-deploy-docker.git |
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 | |
| # CHANGE THIS FOR YOUR OWN DOMAIN NAME AND EMAIL | |
| email=YOUREMAIL@MAILBOX.COM | |
| domain=YOURDOMAIN.COM | |
| # Install anaconda and some other packages I often use | |
| wget https://repo.continuum.io/archive/Anaconda3-4.1.1-Linux-x86_64.sh | |
| bash Anaconda3-4.1.1-Linux-x86_64.sh -b | |
| echo 'PATH="/home/ubuntu/anaconda3/bin:$PATH"' >> ~/.bashrc |