Skip to content

Instantly share code, notes, and snippets.

View zhuliguang's full-sized avatar

Leon Zhu zhuliguang

View GitHub Profile
"""
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:
@zhuliguang
zhuliguang / WordpressSetup
Created August 27, 2016 13:22
WordpressSetup
#!/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
@zhuliguang
zhuliguang / jupyterHubSetup-1.sh
Last active August 25, 2016 14:04
semi-auto setup script for jupyterHub+docker
#!/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
@zhuliguang
zhuliguang / notebook.sh
Last active September 5, 2016 04:27 — forked from yangj1e/notebook.sh
Deploy Jupyter Notebook server
#!/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