GeekTips
109 subscribers
586 photos
3 videos
77 files
231 links
Linux Mint, video encoding, ffmpeg, geek tips, regex, pdf manipulation, substitcher, mpv config
Download Telegram
MinderKeyboardShortcutsLight.pdf
28.9 KB
White background light version of Minder Keyboard Shortcuts
outliner.html
15.6 KB
Now a competitor to CherryTree I'd say would be Outliner. Still need to learn it but here is an export to Outliner and imported from Minder to Outliner to give you an idea of how you can create hierarchical outlines. Exported to HTML

Install Outliner Flatpak and grant Outliner under File Permissions | All user files | filesystem=home in Flatpak app Flatseal
Annotator one is so so so much better than Ksnip (really don't like KDE apps). I plan on using this one for basically text. Has cropping and resizing too.

Install Annotar Flatpak and grant Annotator under File Permissions | All user files | filesystem=home in Flatpak app Flatseal
And the fourth app by the same author is TextShine which you can install the flatpak. Has Remove Line Breaks and Single Return with 2 Returns and other nifty text modifications.
Outliner and Minder when exporting to PDF do leave a lot of white space which needs to be trimmed / cropped. Krop seemed promising but sudo apt install krop worked with the previous version and pip install put the latest version but I couldn't get it to work at all. PDF Arranger has a crop feature but it's to hide only and have to put in percentage. So I came up with two viable solutions. Master PDF Editor (free version) for manual cropping a page or a few. pdf-crop-margins for auto cropping (removing white space).
Need to crop all white space from PDF
Master PDF Editor 5 (free edition) can do this by manually selecting the area to keep. Click Document | Crop Pages.

To crop a very long PDF and need to zoom in like 500% to see the corners. Simply hitting spacebar many times or just holding it down takes you down to the bottom of the document while you're cropping Ctrl-K.
To install pdfcropmargins

sudo apt install python3-pip ghostscript poppler-utils python3-setuptools python3-tk

and then
pip3 install pdfCropMargins[gui] --user --upgrade

to run it open your file manager then find the document and right click and choose Open Terminal here

pdf-crop-margins -v -s -u -gui whatever.pdf
I set the margins to 0 which could be done on the command line -p 0 but with the GUI you can see the results. Press crop and it'll output whatever_cropped.pdf file
MinderKeyboardShortcuts_cropped.pdf
26.5 KB
MinderKeyboardShortcuts cropped
MinderKeyboardShortcutsOutliner_cropped.pdf
27.3 KB
MinderKeyboardShortcuts Outliner cropped
Two Color Palette apps (free) install as flatpaks within Software Manager. First one on the left is Palette and one on the right is Color Palette.
All the color palettes from the Palette app

Can any of these beat the extensive palettes of color-hex.com nah
really wanna learn how to use sed more. Will go through some online tutorials

tldr sed

sed

Edit text in a scriptable manner.
More information: https://man.archlinux.org/man/sed.1.

- Replace the first occurrence of a regular expression in each line of a file, and print the result:
    sed 's/regular_expression/replace/' filename

- Replace all occurrences of an extended regular expression in a file, and print the result:
    sed -r 's/regular_expression/replace/g' filename

- Replace all occurrences of a string in a file, overwriting the file (i.e. in-place):
    sed -i 's/find/replace/g' filename

- Replace only on lines matching the line pattern:
    sed '/line_pattern/s/find/replace/' filename

- Delete lines matching the line pattern:
    sed '/line_pattern/d' filename

- Print the first 11 lines of a file:
    sed 11q filename

- Apply multiple find-replace expressions to a file:
    sed -e 's/find/replace/' -e 's/find/replace/' filename

- Replace separator / by any other character not used in the find or replace patterns, e.g. #:
sed 's#find#replace#' filename
Gaupol is a subtitle editor and has a great interface. Sadly it is to hard for me to manually add subtitles (that's easy actually) but getting the timing just right is quite the ordeal especially compared to Subtitle Composer (KDE app).

edit: perhaps I spoke too soon Stretch seems to adjust timing by .050 seconds so I'll give it another try

Q Start Earlier
W Start Later
E End Earlier
R End Later

O play current line + 1 second
P play/pause
K set end time
U set beginning time
Just looking at Unbuntu Christian distro I downloaded a bunch of bible stuff but only xiphos seemed like a keeper.

sudo apt install xiphos

Xiphos is a great app for studying and researching the Bible. Recommend installing

Dictionaries -
StrongsGreek and StrongsHebrew

KJVA: King James Version (1769) inclding Aprocrypha, with Strongs Numbers and Morphology

Glossary
Latina - Latin to English Glossary

General Books
English - Finney: Sermons on Gospel Themes
AuthPass https://t.iss.one/geektips/5 is the free (GPL) password manager that I mainly use cuz it has a free iphone and android app. But eventually I'm slowly migrating away from iOS. So if you just need a free (GPL) app that works on Windows, Mac and Linux (no android or iphone) then KeepPassXC is the one you want.

sudo add-apt-repository ppa:phoerious/keepassxc
sudo apt update
sudo apt install keepassxc
Ffmpeg or in Videomass to combine two vf filters just put a comma between them. Upscale to 720p and add subrip SRT subtitles.

-c:v hevc -crf 28 -c:a libopus -b:a 32k -strict -2 -vf scale="-2:720",subtitles="/home/GeekTips/video.srt"
sudo add-apt-repository ppa:alex-p/tesseract-ocr-devel
sudo apt update
sudo apt install tesseract-ocr

Installed Tesseract 5.0 which in my testing was 15% faster than 4.1

ocrmypdf —optimize 3 input.pdf output_optimized.pdf

PDF/A. You may wish to examine the output PDF's XMP metadata.
JPEGs: 100%|███████████████████████████████| 180/180 [00:22<00:00, 6.97image/s]
PNGs: 0image [00:00, ?image/s]
JBIG2: 0item [00:00, ?item/s]
INFO - Optimize ratio: 1.64 savings: 38.9%
INFO - Output file is a PDF/A-2B (as expected)

It optimized the PDF from 165MB —> 101MB.

Noticed gImagereader three weeks ago released a package that's compatible with tesseract 5. Probably have to wait 6 to 12 months till it gets released as a deb file though.
NormCap is a app that lets you capture and OCR any part of your screen you select that is an image and extract text copied to your clipboard which can then be pasted into a text editor.

I tried installing the python norm NormCap cap app but it failed. Just download the appimage.

In Applications | Settings | Keyboard under Application Shorcuts
add Ctrl+Print and for the command navigate to the NormCap-unstable-x86_64.AppImage
MinderKBShortcuts(Outliner).pdf
27.8 KB
Minder Keyboard Shortcuts made with Outliner