Skip to content

Instantly share code, notes, and snippets.

Nathan Mkaya nathanmkaya

Block or report user

Report or block nathanmkaya

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am nathanmkaya on github.
  • I am nathanmkaya (https://keybase.io/nathanmkaya) on keybase.
  • I have a public key ASB-am6MDA_ivzGFPOb-lcN27TNFKed9oxWGEhTNFeVUtAo

To claim this, I am signing this object:

@nathanmkaya
nathanmkaya / Subfolder to git repo.md
Created Jan 3, 2019 — forked from korya/Subfolder to git repo.md
Convert subfolder into Git submodule
View Subfolder to git repo.md
@nathanmkaya
nathanmkaya / ca.md
Created Nov 1, 2018 — forked from soarez/ca.md
How to setup your own CA with OpenSSL
View ca.md

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

View jacoco.gradle
apply plugin: 'jacoco'
jacoco {
toolVersion = "$jacocoVersion"
}
tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
}
View layout.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/background_dark"
>
@nathanmkaya
nathanmkaya / Connectivity.java
Created Jun 13, 2017 — forked from emil2k/Connectivity.java
Android utility class for checking device's network connectivity and speed.
View Connectivity.java
package com.emil.android.util;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.telephony.TelephonyManager;
/**
* Check device's network connectivity and speed
* @author emil http://stackoverflow.com/users/220710/emil
@nathanmkaya
nathanmkaya / main.go
Created Sep 11, 2016 — forked from eduncan911/main.go
Go/Reading Console Inputs
View main.go
package main
import (
"bufio"
"fmt"
"os"
"strings"
)
func main() {
@nathanmkaya
nathanmkaya / RxBus.java
Created Aug 28, 2016
RxJava 2 implementation of a bus
View RxBus.java
import io.reactivex.Observable;
import io.reactivex.subjects.PublishSubject;
import io.reactivex.subjects.Subject;
class RxBus {
private static RxBus instance;
private final Subject bus = PublishSubject.create();
static RxBus getInstance() {
if (instance == null){
You can’t perform that action at this time.