Skip to content

Instantly share code, notes, and snippets.

View KarthiAru's full-sized avatar

Karthik Arumugham KarthiAru

View GitHub Profile
conda install gdal
gdalinfo --version
# GDAL 2.1.0, released 2016/04/25
install.packages('rgdal', type = "source", configure.args=c(
'--with-gdal-config=/Library/Frameworks/GDAL.framework/Programs/gdal-config',
'--with-proj-include=/Library/Frameworks/PROJ.framework/Headers',
'--with-proj-lib=/Library/Frameworks/PROJ.framework/unix/lib'))
install.packages('rgeos', type = "source", configure.args=c(
'--with-gdal-config=/Library/Frameworks/GDAL.framework/Programs/gdal-config',
'--with-proj-include=/Library/Frameworks/PROJ.framework/Headers',
'--with-proj-lib=/Library/Frameworks/PROJ.framework/unix/lib'))
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"
conda config --add channels http://conda.anaconda.org/gurobi
conda install gurobi
conda install --channel https://conda.anaconda.org/conda-forge glpk
conda install --channel https://conda.anaconda.org/conda-forge coincbc
conda install --channel https://conda.anaconda.org/conda-forge coinmp
pip install pulp
location /shiny/ {
proxy_pass http://127.0.0.1:3838/;
}
location /rstudio/ {
proxy_pass http://127.0.0.1:8787/;
}
sudo service nginx stop
sudo service nginx start
sudo service nginx restart
sudo apt-get -y install nginx