Skip to content

Instantly share code, notes, and snippets.

@hoxnox
hoxnox / moon-reader-outlines.md
Created February 24, 2025 17:55 — forked from AB1908/moon-reader-outlines.md
Templater snippet to parse Moon Reader exports

I convert my notes into outlines to use later for writing flashcards. See my post. So, let's say I have the following exported annotation:

#
100
Alice's Adventures in Wonderland
/sdcard/Books/MoonReader/Alice_en.epub
/sdcard/books/moonreader/alice_en.epub
1
#!/bin/sh
# CONFIGURATION
# 1. Go to @botfather and create a bot and use it's auth token as bot_token value
# 2. Create test channel, believe me, you need it
# 3. Set some url for your test channel
# 4. Add your bot to both channels, set their names in variables
# USAGE
# 1. Copy your markdown-formatted message into OS clipboard (Cmd+C)
@hoxnox
hoxnox / dpdk-static-link.md
Created November 2, 2021 21:03 — forked from krsna1729/dpdk-static-link.md
compile statically linked dpdk apps
#!/bin/sh
# btsync service
# Replace with linux users you want to run BTSync clients for
BTSYNC_USERS="mendel"
DAEMON=/usr/bin/btsync
start() {
for btsuser in $BTSYNC_USERS; do
HOMEDIR=`getent passwd $btsuser | cut -d: -f6`
config=$HOMEDIR/.sync/config.json