- connect kobo to your device
- open a file browser and navigate to the mounted kobo folder
- navigate to the hidden folder
.kobo/Kobo
- open the file
Kobo eReader.conf
- navigate to the section
[FeatureSettings]
, if it doesn't exist, create it. - add the line
ExportHighlights=true
and save - disconnect the device
- now you can long press on a book and export the note file into a .txt file which will be saved alongside your books. to get it connect your ereader.
Discover gists
This file contains 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
# Signal catching | |
def shut_down | |
puts "\nShutting down gracefully..." | |
sleep 1 | |
end | |
puts "I have PID #{Process.pid}" | |
# Trap ^C | |
Signal.trap("INT") { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
#!/usr/bin/env bash | |
# make tracker3 daemon non workable & idompotent | |
# this script will reset its settings, and configure tracker3 daemon, to not let it do anyting. | |
# if other code has dependency on this tracker, then it will not break, but we also do achieve our goal. | |
# interpretation for org.freedesktop.Tracker3.Miner.Files enable-monitor from this file | |
# https://gitlab.gnome.org/GNOME/tracker-miners/-/blob/master/src/miners/fs/tracker-config.c | |
#Time in seconds before crawling filesystem (0->1000) |
This file contains 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
function isJQueryLoaded(){ | |
if (window.jQuery) { | |
//jQuery is loaded | |
alert("jQuery sucessfully loaded!"); | |
return true; | |
} else { | |
//jQuery is not loaded | |
alert("jQuery doesn't work!"); | |
return false; | |
} |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
This file contains 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 | |
# FreeDNS updater script | |
# Adapted from https://freedns.afraid.org/scripts/update.sh.txt | |
# sudo apt install dnsutils wget | |
DOMAIN="foo.my-custom-domain.com" | |
API_KEY="put your API key (base64 string) here" | |
SHOULD_UPDATE=0 | |
# -f is the only argument supported right now (forces update even if address appears correct) |
This file contains 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
async function sha1(str) { | |
const enc = new TextEncoder(); | |
const hash = await crypto.subtle.digest('SHA-1', enc.encode(str)); | |
return Array.from(new Uint8Array(hash)) | |
.map(v => v.toString(16).padStart(2, '0')) | |
.join(''); | |
} | |
// await sha1('hello, world!'); | |
// outputs: 1f9d3c707d53f3d16c53dd73d70a6ce7596a9 |
This file contains 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 | |
/** | |
* Below is an the extended Filament resource your tenant panel resources | |
* will have to extend so that the queries are scoped properly. | |
*/ | |
namespace App\Filament; | |
use Filament\Resources\Resource; |
NewerOlder