Skip to content

Instantly share code, notes, and snippets.

View C-Loftus's full-sized avatar

Colton Loftus C-Loftus

View GitHub Profile

Developing your first plugin for KOReader

So, you've been using KOReader on your phone, jailbroken Kindle, or some other device, and realized you want to have some functionality that's not built into it. You've probably looked around in the #koplugin tags on Github, and there wasn't one that met your needs. Good news: KOReader is easily extendable with Lua, you can make your own plugin somewhat easily, provided you know some Lua or are willing to learn the basics!

In this post, we'll go over what you need to set up to make your plugin, and write a basic "Hello World" plugin. For in-depth reference on KOReader's Lua components and examples of more complicated plugins, please look at the source code over at [[their github repo]]. We will briefly go over some basics of Lua here, but this is not a Lua tutorial. Please refer to the [[Lua documentation]] if you want to know more.

Setting up

Programming without in-editor hints and context-aware autocomplete isn't the best experience, so let's start by setting

@0xdevalias
0xdevalias / singing-voice-synthesizers.md
Last active November 15, 2025 06:44
Some notes on Singing Voice Synthesizers (eg. Vocaloid, etc)
@shoui520
shoui520 / readmore.md
Last active October 29, 2025 16:45
Chinese Yomichan Setup

Yomitan setup for Chinese

https://learnjapanese.moe

Yomitan (formerly Yomichan) is a browser extension created for Japanese which enables its users to quickly and efficiently look up words on a webpage.
While it is made for Japanese, it is possible to use it for other languages, including Chinese.

Getting Yomitan

Yomitan is available for both Chromium and Firefox based browsers. You can find the respective versions below.

@tararoys
tararoys / May12knausj-master-cheatsheet.pdf
Last active July 12, 2025 13:33
Code to print out all voice commands in the knausj talon repository,
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willwade
willwade / commands.md
Last active September 20, 2025 08:02
Apple iOS Voice Control commands list. These are the default ones listed in the settings. If you are looking for the Catalina commands Ron Leblanc has compiled a great list (https://www.dropbox.com/s/stacghczr68o8az/Voice%20Control%20Commands.xlsx?dl=0)
#!/usr/bin/env python3
import zipfile
import sys
import re
import xml.etree.ElementTree as ET
namespaces = {
'a': 'http://schemas.openxmlformats.org/drawingml/2006/main',
'r': 'http://schemas.openxmlformats.org/officeDocument/2006/relationships',
@bradtraversy
bradtraversy / pipenv_cheat_sheet.md
Last active August 27, 2025 18:43
Pipenv cheat sheet for common commands

Pipenv Cheat Sheet

Install pipenv

pip3 install pipenv

Activate

pipenv shell
@Ademking
Ademking / readme.md
Last active August 28, 2025 14:22
💚 Android : Send SMS through ADB

(Android 5)

Run :

adb shell service call isms 9 s16 "com.android.mms" s16 "123456789" s16 "null" s16 "MESSAGEBODY" s16 "null" s16 "null"

The method is :