Home

Homebrew Cheat Sheet

Created on: 5/12/19 Last update: 9/30/19 Installing Homebrew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Update brew: brew update Packages Install Packages Examples: brew install wget brew cask install iterm2 Install from Git: https://github.com/Homebrew/homebrew-core/tree/maste...

Read more

Deploying PyWPS on Linux

Created on: 4/18/19 Last update: 4/18/19 Clone the latest PyWPS repository: git clone https://github.com/geopython/pywps/ Install required packages: sudo apt-get install git python-gdal sudo pip install -e git+https://github.com/geopython/pywps.git@master#egg=pywps-dev Apache WSGI: sudo apt-get install libapache2-mod-wsgi sudo a2enmod w...

Read more

Cheatsheet of Git Commands

Created on: 4/14/19 Last update: 5/12/19 Commit Remove last commit Withdraw the last commit: git rebase -i HEAD~2 Branch Switch between branches List all branches: git branch -a Switch to the target branch: git checkout <BRANCH> Create new branch Create a branch on local host and switch to it: git pull git checkout -b <...

Read more

Installing QGIS on MacOS using Homebrew

Created on: 4/3/19 Last update: 9/30/19 I found the best and easiest way to install QGIS is brew cask. There are too many bugs on osgeo4mac homebrew. Installing Homebrew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Check the latest installation command at: https://brew.sh/ brew cask in...

Read more

Frequently Used Linux Commands

Created on: 4/3/19 Last update: 4/3/19 Manage Users Add User Add a new user with username: adduser [USERNAME] Add the user to the sudo group: usermod -aG sudo [USERNAME] Verify: su - [USERNAME] sudo su Remove User userdel -r mynewuser Commands list List and sort by date: ll -halt List with file sizes in MB: ll --block-size=...

Read more

TensorFlow GPU Installation

Created on: 5/7/18 Last update: 5/7/18 Preliminary sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev GCC/G++ CUDA 9.0 does not support gcc/g++ 7. Install gcc/g++ 6: sudo apt-get install gcc-6 g++-6 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 50 sudo upda...

Read more

Conda Cheat Sheet

Setting up conda environment Create/Remove Conda Environment List all Python versions: conda search "^python$" List all environments: conda info --envs Create/Remove an environment of Python 3.6.4 (with additional packages): conda create --name py364 python=3.6.4 conda create --name py364_numpy python=3.6.4 numpy conda remove --name py3...

Read more

Installing Wordpress on Linux

Created on: 2/25/18 Last update: 10/19/18 Installation MySQL Install MySQL from source: sudo apt-get install mysql-server php5-mysql sudo mysql_install_db sudo mysql_secure_installation Enter MySQL CLI: mysql -u root -p Create DB and user: mysql> CREATE DATABASE wordpress; Query OK, 1 row affected (0.00 sec) mysql> CREATE USER ...

Read more