Skip to content

Instantly share code, notes, and snippets.

View KarthiAru's full-sized avatar

Karthik Arumugham KarthiAru

View GitHub Profile
#install Shiny, ShinyJS and rmarkdown package
sudo su - -c "R -e \"install.packages(c('shiny','shinyjs','rmarkdown'), dependencies=TRUE, INSTALL_opts = c('--no-lock'), repos='https://cran.rstudio.com/')\""
#replace the following two lines with the code from Shiny Server downloads page
wget https://download3.rstudio.org/ubuntu-12.04/x86_64/shiny-server-1.4.6.809-amd64.deb
sudo gdebi shiny-server-1.4.6.809-amd64.deb
sudo groupadd shiny-apps
sudo usermod -aG shiny-apps karthiaru
sudo usermod -aG shiny-apps shiny
cd /srv/shiny-server
sudo chown -R karthiaru:shiny-apps .
sudo chmod g+w .
sudo chmod g+s .
sudo apt-get -y install nginx
sudo service nginx stop
sudo service nginx start
sudo service nginx restart
location /shiny/ {
proxy_pass http://127.0.0.1:3838/;
}
location /rstudio/ {
proxy_pass http://127.0.0.1:8787/;
}
pip install pulp
conda install --channel https://conda.anaconda.org/conda-forge coincbc
conda install --channel https://conda.anaconda.org/conda-forge coinmp
conda install --channel https://conda.anaconda.org/conda-forge glpk
conda config --add channels http://conda.anaconda.org/gurobi
conda install gurobi
conda create -n py34 python=3.4 anaconda
source activate py34
source deactivate
export PYTHONPATH="/opt/ibm/ILOG/CPLEX_Studio_Community1263/cplex/python/3.4/x86-64_linux:$PYTHONPATH"