https://www.gnu.org/software/recutils/
GNU Recutils is a set of tools and libraries to access human-editable, plain text databases called recfiles.
TO install on mac : brew install recutils
add this to a new file named
books.rec
https://www.gnu.org/software/recutils/
GNU Recutils is a set of tools and libraries to access human-editable, plain text databases called recfiles.
TO install on mac : brew install recutils
add this to a new file named
books.rec
a.href or iframe.src)| // https://stackoverflow.com/questions/16251505/how-to-highlight-all-text-occurrences-in-a-html-page-with-javascript | |
| /* | |
| * Search for text in the window ignoring tags | |
| * | |
| * Parameters: | |
| * text: a string to search for | |
| * backgroundColor: | |
| * "yellow" for example, when you would like to highlight the words | |
| * "transparent", when you would like to clear the highlights |
| Create BLANK.png with white background and some gray "filler / fill page" text | |
| A4 I had had 3308 x 4678 pixels |
| # socks4 (https://github.com/jgaa/shinysocks) | |
| # windows built | |
| # inetcpl.cpl -> connections tab -> Lan setting button -> Advanced button | |
| docker run --rm --name shiny -p 1070:1080 -d jgaafromnorth/shinysocks | |
| # socks5 (https://github.com/serjs/socks5-server) | |
| # firefox etc | |
| docker run -d --name socks5 -p 1090:9090 -e PROXY_PORT=9090 serjs/go-socks5-proxy |
| # install | |
| sudo apt install graphicsmagick-imagemagick-compat | |
| # in place convert | |
| find . -name "*.jpg" | xargs -n1 mogrify -resize 25% | |
| # save to other file | |
| find . -name "*.jpg" | xargs -I{} convert -resize 25% "{}" "{}.small.jpg" |
| function make_CRS_Buffer(size) { | |
| //based on https://stackoverflow.com/a/60285222/1997873 | |
| return { | |
| arr: [], | |
| arr_i: 0, | |
| arr_size: size, | |
| size: function () { | |
| return this.arr.length; | |
| }, | |
| full: function () { |
| const win1255 = [ | |
| ..."àýáýâýãýäýåýæýçýèýéýëýêìýîýðýñýòýôýöý÷ýøýùýúíýïóýõáÌâÌãÌëÌêÌôÌóÌùÑùÒúÌ×ÈýÇýÂÅýÆýÁÉýÃËÌÄåÌ", | |
| ].filter((e) => e != "ý"); | |
| const hebutf8 = [ | |
| ..."אבגדהוזחטיכךלמנסעפצקרשתםןףץבּגּדּכּךּפּףּשׁשׂתּ׳ֱֲֳִֵֶַָֹֻּוּ", | |
| ].filter((e) => !!e && e.charCodeAt(0) != 8206); | |
| function win1255toUTF(str) { | |
| return [...str] | |
| .map((e) => (win1255.indexOf(e) > -1 ? hebutf8[win1255.indexOf(e)] : e)) |