For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
| #!/bin/bash | |
| LATESTNGINX="1.11.10" | |
| BUILDROOT="/tmp/boring-nginx" | |
| # Pre-req | |
| sudo apt-get update | |
| sudo apt-get upgrade -y | |
| # Install deps | 
| class App : Application(), HasActivityInjector { | |
| @Inject lateinit var activityInjector: DispatchingAndroidInjector<Activity> | |
| override fun activityInjector(): AndroidInjector<Activity> { | |
| return activityInjector | |
| } | |
| override fun onCreate() { | |
| super.onCreate() | 
| class App : Application(), HasActivityInjector { | |
| @Inject lateinit var activityInjector: DispatchingAndroidInjector<Activity> | |
| override fun activityInjector(): AndroidInjector<Activity> { | |
| return activityInjector | |
| } | |
| override fun onCreate() { | |
| super.onCreate() | 
| sudo su | |
| # Java | |
| yum -y install java-1.8.0-openjdk-devel | |
| # Build Esentials (minimal) | |
| yum -y install gcc gcc-c++ kernel-devel make automake autoconf swig git unzip libtool binutils | |
| # Extra Packages for Enterprise Linux (EPEL) (for pip, zeromq3) | |
| yum -y install epel-release | 
| import android.support.v7.widget.LinearLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| public abstract class EndlessRecyclerOnScrollListener extends RecyclerView.OnScrollListener { | |
| public static String TAG = EndlessRecyclerOnScrollListener.class.getSimpleName(); | |
| private int previousTotal = 0; // The total number of items in the dataset after the last load | |
| private boolean loading = true; // True if we are still waiting for the last set of data to load. | |
| private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more. | |
| int firstVisibleItem, visibleItemCount, totalItemCount; | 
| $ wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo | |
| $ yum install devtoolset-2-gcc devtoolset-2-binutils | |
| $ yum install devtoolset-2-gcc-c++ devtoolset-2-gcc-gfortran | |