Skip to content

Instantly share code, notes, and snippets.

View winstonma's full-sized avatar

Winston Ma winstonma

View GitHub Profile
@winstonma
winstonma / Onyx Boox Image Extractor.md
Last active May 28, 2024 05:20
Onyx Boox Image Extractor

Onyx Boox Image extractor

This extractor runs on debian linux and allows you to read the image content without owning an Onyx Boox device

Running the script

Please use a Debian based linux device to run the script. Please follow the steps below:

  • Open the the table of supported device on the browser, and find the MODEL column of your desired device
  • Open download.sh, and replace DEVICE_NAME with your name of your desired device
  • Run download.sh

KMB API Client in Python

To run this

pip install -r requirements.txt
python api-client.py
@winstonma
winstonma / KMB-ETA-API.md
Last active November 23, 2020 10:05
KMB ETA API using js-kmb-api library

KMB ETA API

To run API server

npm install
npm start

The API server should run on port 5000

@winstonma
winstonma / package.json
Last active May 28, 2018 12:57
This package.json settings solves the black screen problem on MagicMirror 2.3.1. All you need is replace this package.json with the one in MagicMirror, run `npm update` and `npm start`
{
"name": "magicmirror",
"version": "2.3.1",
"description": "The open source modular smart mirror platform.",
"main": "js/electron.js",
"scripts": {
"start": "sh run-start.sh",
"install": "cd vendor && yon install",
"install-fonts": "cd fonts && yon install",
"postinstall": "sh installers/postinstall/postinstall.sh && yon run install-fonts",
@winstonma
winstonma / Blocking.py
Created June 2, 2017 06:32
APScheduler Blocking Demo
"""
Demonstrates how to use the blocking scheduler to schedule a job that executes on 3 second
intervals.
"""
from datetime import datetime
import os
import threading
from apscheduler.schedulers.blocking import BlockingScheduler