This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Zend\Expressive\AppFactory; | |
| use Firebase\JWT\JWT; | |
| use Slim\Middleware\JwtAuthentication; | |
| chdir(dirname(__DIR__)); | |
| require "vendor/autoload.php"; | |
| $app = AppFactory::create(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # ---------------------------------------------------------------------- | |
| # Extract the bookmark annotations from the Kobo database. | |
| # ---------------------------------------------------------------------- | |
| kobodir=/media/KOBOeReader | |
| db="$kobodir/.kobo/KoboReader.sqlite" | |
| sqlite3 "$db" 'select VolumeID,StartContainerPath,Text,Annotation from Bookmark;' | | |
| awk -F'|' 'BEGIN{OFS="|"}{gsub("/", "_", $1); print}' | | |
| sort -t/ -k1 -k2 -n -k4 -k5 -k6 -k7 -k8 | | |
| sed ' s/[^|]*|// s/[^|]*|// s/|/\n\n/ s/$/\n\n/ ' |