Skip to content

Instantly share code, notes, and snippets.


Mitchell Wong Ho mitchwongho

Block or report user

Report or block mitchwongho

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

OpenVPN host config files:

$ cd /etc/openvpn

OpenVPN config file:

$ sudo nano /etc/default/openvpn
mitchwongho / HelloWorld.kt
Last active Aug 29, 2018
A trivial Gradle build file for a Kotlin application
View HelloWorld.kt
fun main(args: Array<String>) {
MyFirstClass("Hello, My First Class").out()
class MyFirstClass(val message: String) {
fun out() {
mitchwongho / android-basic.js
Last active Apr 17, 2018
Appium Android Basic session script
View android-basic.js
const wdio = require('webdriverio');
// Driver options
const opts = {
port: 4723,
desiredCapabilities: {
platformName: "Android",
platformVersion: "8.0",
deviceName: "Nexus 5X API 26",
app: "ApiDemos-debug.apk",
appPackage: "",
mitchwongho /
Last active Apr 16, 2018
Getting Up and Running with Appium
$ brew install node      # get node.js
$ npm install -g appium  # get appium server
$ npm install webdriverio     # get the appium WebDriver client
mitchwongho / btcd.conf
Created Jan 25, 2018
Lightning & btcd setup
View btcd.conf
; Secure the RPC API by specifying the username and password. You can also
; specify a limited username and password. You must specify at least one
; full set of credentials - limited or admin - or the RPC server will
; be disabled.
mitchwongho /
Created Nov 10, 2017
Blockstack ID Github verification
Verifying my Blockstack ID is secured with the address 12fmp8MHaSmzZbR3iu77hysmd9C5zpLKPs
package com.mitchwongho.test.observablerealms.realms;
import java.util.UUID;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
mitchwongho /
Created Nov 24, 2016
I text app to exercise Observable RealmResults
package com.mitchwongho.test.observablerealms;
import android.os.Bundle;
import android.util.Log;
import com.mitchwongho.test.observablerealms.realms.Person;
import java.util.concurrent.TimeUnit;
mitchwongho / osmc_expressvpn_openvpn.md5
Last active Apr 17, 2019
Setting Up TunnelBear or ExpressVPN (using OpenVPN) On OSMC
View osmc_expressvpn_openvpn.md5
# Setting Up ExpressVPN (OpenVPN) On OSMC
## References
- [Brian Hornsby' Kodi OpenVPN plugin](
- [Install and Configure OpenVPN on OSMC/Kodi](
- [ExpressVPN - High speed, ultra secure, and easy to use. Instant setup.](
- [[HOWTO] OSMC/Rasp Pi as OpenVPN client](
## Steps
import android.content.Context;
import io.realm.Realm;
import io.realm.RealmChangeListener;
import io.realm.RealmObject;
import io.realm.RealmResults;
import rx.Observable;
You can’t perform that action at this time.