Skip to content

Instantly share code, notes, and snippets.


Mitchell Wong Ho mitchwongho

View GitHub Profile
View gist:812c3b5b09eefe3b6e6ba4a207918218
G28 ; Home all axes
G29 ; Auto bed-level (BL-Touch)
;G1 Z15.0 F6000 ;Move the platform down 15mm
;Prime the extruder
G92 E0
G1 F200 E3
G92 E0
; Linear advance
M900 K0.11

OpenVPN host config files:

$ cd /etc/openvpn

OpenVPN config file:

$ sudo nano /etc/default/openvpn
mitchwongho / HelloWorld.kt
Last active May 14, 2020
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 Sep 2, 2020
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
You can’t perform that action at this time.