Skip to content

Instantly share code, notes, and snippets.

Avatar
👷‍♂️
Building

Mitchell Wong Ho mitchwongho

👷‍♂️
Building
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
View raspberry_pi_openvpn_tips.md

OpenVPN host config files:

$ cd /etc/openvpn

OpenVPN config file:

$ sudo nano /etc/default/openvpn
@mitchwongho
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() {
println(message)
}
}
@mitchwongho
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: "io.appium.android.apis",
@mitchwongho
mitchwongho / installation.md
Last active Apr 16, 2018
Getting Up and Running with Appium
View installation.md
$ brew install node      # get node.js
$ npm install -g appium  # get appium server
$ npm install webdriverio     # get the appium WebDriver client
@mitchwongho
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.
rpcuser=w1/AxcoqWFqsey/x7C9drhaaWl8=
rpcpass=zGnTDRT4a7Pzn9j31n6D0c3S0vs=
@mitchwongho
mitchwongho / blockstack.id
Created Nov 10, 2017
Blockstack ID Github verification
View blockstack.id
Verifying my Blockstack ID is secured with the address 12fmp8MHaSmzZbR3iu77hysmd9C5zpLKPs https://explorer.blockstack.org/address/12fmp8MHaSmzZbR3iu77hysmd9C5zpLKPs
View ObservableRealms-Person.java
package com.mitchwongho.test.observablerealms.realms;
import android.support.annotation.NonNull;
import java.util.UUID;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
/**
@mitchwongho
mitchwongho / ObservableRealms.java
Created Nov 24, 2016
I text app to exercise Observable RealmResults
View ObservableRealms.java
package com.mitchwongho.test.observablerealms;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import com.mitchwongho.test.observablerealms.realms.Person;
import java.util.concurrent.TimeUnit;
@mitchwongho
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](http://brianhornsby.com/blog/how-to-setup-your-vpn-client)
- [Install and Configure OpenVPN on OSMC/Kodi](https://nerddrivel.com/2016/03/25/install-and-configure-openvpn-on-osmckodi/)
- [ExpressVPN - High speed, ultra secure, and easy to use. Instant setup.](https://www.expressvpn.com/)
- [[HOWTO] OSMC/Rasp Pi as OpenVPN client](https://discourse.osmc.tv/t/howto-osmc-rasp-pi-as-openvpn-client/1844/71)
## Steps
You can’t perform that action at this time.