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
google translate is evil so deepl.com is better but has its limitations

You are using the free version of DeepL
Translate up to 5,000 characters
Translate 3 locked documents/month
10 glossary entries

You can upload pdf, docx or pptx files for now those on debian / ubuntu / linux mint most likely the upload files won't work.

If you upload a PDF for translation on deepl it sends it to Adobe
For technical reasons, your PDF will be sent to Adobe Inc. in the US. Read more in our Privacy Policy.

File has too many characters for the free translator
The free translator has a limit of 100,000 characters per file.
Try a 30-day free trial of DeepL Pro to translate files up to 1 million characters.

For super privacy get your own free OFFLINE translation.

However, the translation isn't nearly as good as deepl but for the average user it suffices to give you the gist of it.

https://libretranslate.com and see if you're satisfied with the results or not. If so then install your own offline version on linux. You can upload docx and pptx

libtranslate supports uploading these formats for translation
https://libretranslate.de
Supported file formats: .txt, .odt, .odp, .docx, .pptx

sudo pip install libretranslate

Think it downloads a little over 900MB and after all that's installed when you first run libretranslate it'll take a few hours or even half a day to update the language models

Loaded support for 24 languages (46 models total)!
Installing transliteration models for the following languages: ar, az, zh, cs, nl, fi, fr, de, hi, hu, id, ga, it, ja, ko, pl, pt, ru, es, sv, tr, uk, vi
Serving on https://localhost:5000

Now just bookmark in your browser localhost:5000 and feel free to turn off your wifi / internet connection to verify it translates offline

I don't recommend Libretranslate as it seems to use an older version of argos translate. So for now I just use argo-translate-gui
Example here is original German

Von ihnen haben nur rund 77 Millionen, oder 37 Prozent, zusätzlich eine Auffrischungsimpfung bekommen. Nun geht die Regelung zur abschließenden Prüfung wieder zurück an eine niedrigere Instanz.

Die konservativen Richter betonten in einer Begründung, dass sie nicht über die Berechtigung einer Impfpflicht an sich befunden hätten, sondern über eine Frage der Gewaltenteilung: War die Anordnung rechtmäßig und ist die Bundesbehörde dafür zuständig?


deepl translation
Of those, only about 77 million, or 37 percent, have received additional booster shots. Now the rule goes back to a lower court for final review.

The conservative justices emphasized in a statement of reasons that they were not ruling on the merits of mandatory vaccination per se, but on a separation-of-powers issue: was the order lawful and does the federal agency have jurisdiction over it?

google translation
Of them, only around 77 million, or 37 percent, received an additional booster vaccination. Now the regulation goes back to a lower authority for the final examination.

In a statement of reasons, the conservative judges emphasized that they had not ruled on the justification for a compulsory vaccination per se, but on a question of the separation of powers: Was the order lawful and is the federal authority responsible for it?

argos-translate-gui
Of them, only around 77 million, or 37 percent, received an additional booster vaccination. Now the regulation goes back to a lower authority for the final examination.

In a statement of reasons, the conservative judges complaint that they had not ruled on the justification for a compulsory vaccination per se, but on a question of the separation of powers: What the lawful and is the federal authority responsible for it?


libretranslate locally install on linux mint
of
those, only about 77 million, or 37 percent, have received additional booster shots. now the rule goes back to a lower court for final review.

the conservative justices suspended in a statement of reasons that they were not ruling on the merits of mandatory vaccination per se, but on a separation-of-powers issue: what the order lawful and does the federal agency have jurisdiction over it?
These two are the main presets I use in videomass

1) hevc 265 libopus 32kpbs crf 28 output to mp4. I don't always upscale or downscale to 720p so just delete that part if not. Sometimes change crf to 23 for a movie or crf to 31 if old VHS quality. Video file sizes are super small.

-c:v hevc -crf 28 -c:a libopus -b:a 32k -strict -2 -vf scale="-2:720"

2) replace audio and rescale to 720p and output to mp4. I double click on hahaha then paste in the name of music track I copied from the file manager. -shortest option cuts the audio off at the same time the video ends. Make sure audio / music duration is longer than the video duration.

-i "/home/mint/Music/hahaha.opus" -c:v hevc -crf 28 -vf scale="-2:720" -c:a copy -strict -2 -map 0:v:0 -map 1:a:0 -map_metadata 0 -shortest
I use Fotoxx for montages and adding text and masking. Here I have an ice cream with a white background which I want taken out.

In Fotoxx Composite | Mashup |use current image file for layout and background image

as I already have Science magazine cover loaded.

Edit Images (add or edit images) | click Add Image and select the ice cream photo with a white background.

0.3 for the scale of the image. You can adjust the size this way. 1.0 is the actual size.

0.1 Base Transparency as I want it to blend in just a tad. 50% would be 0.5.

Click Var. Transparency Paint and you can adjust the Radius (size of circle) to paint to make it disappear. Once I finish painting transparency to the remaining white area it'll be complete.

I can add text by clicking Edit Text
To combine two or more pdfs together
pdftk first.pdf second.pdf output combined.pdf

or open first.pdf up with PDF Arranger or PDF Slicer and click + to Add second.pdf and choose Save As and name it combined.pdf
sudo apt install ncdu

ncdu lets you browse directories with arrow keys and ENTER key and figure out which ones are taking up the most space on a hard drive. ncdu from the directory or for your home directory ncdu ~

d
key will let you delete the directory
now to delete that hidden .kodi directory which I deleted awhile back.

Also I was able to find out argos-translate is 5.2GiB installed and the cache is 4.4GiB..wow. Telegram Desktop cache is 3.9GiB
Czkawka can quickly search for duplicate files (took about 10 to 15 mins for me), big files (only 20 seconds) . Just download appimage.
LosslessCut export options. Merge all cuts together into one single video file. Keyframe is better if you don't need a frame by frame cut. Shift timestamps (make_zero) is important as it resets all segements to new time codes. If the original video isn't already optimized to x265 or just bloated then re-encode the merged video file in videomass.
Simon Tatham's Portable Puzzle Collection showing my favorite puzzles
Simon Tatham's Portable Puzzle Collection

Love logical puzzles. Great free puzzle collection.

https://www.chiark.greenend.org.uk/~sgtatham/puzzles/

Install on Linux Mint
sudo apt install sgt-puzzles

eyefoam ($free) https://hewgill.com/puzzles/
Simon Tatham's Portable Puzzle Collection

These are my favorite puzzle games in this collection which can be played online in your browser (javascript). I link to Nikoli (started in 1980) so you can see the original Japanese game it's based off of.

You can just hit SOLVE to see what the objective is and quickly read the rules.

Bridges, bridge-placing puzzle
https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/bridges.html

https://www.nikoli.co.jp/en/puzzles/hashiwokakero/

Galaxies
https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/galaxies.html

https://www.nikoli.co.jp/en/puzzles/tentai_show/

Keen, arithmetic Latin square puzzle aka KenKen
https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/keen.html

Light Up, light-bulb placing puzzle
https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/lightup.html

https://www.nikoli.co.jp/en/puzzles/akari/

Loopy, loop-drawing puzzle
https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/loopy.html

https://www.nikoli.co.jp/en/puzzles/slitherlink/

Net, network jigsaw puzzle
https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/net.html

Pearl, loop-drawing puzzle
https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/pearl.html

https://www.nikoli.co.jp/en/puzzles/masyu/

Rectangles
https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/rect.html

https://www.nikoli.co.jp/en/puzzles/shikaku/

Solo, number placement puzzle aka Sudoku
https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/solo.html

https://www.nikoli.co.jp/en/puzzles/sudoku/

Tents, tent-placing puzzle with trees
https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/tents.html

Unequal aka Futoshiki
https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/unequal.html
For those on eyefoam or android there is a logical puzzle app I recommend. Free with banners / ads or ($7 to disable ads. I don't play that often so haven't paid).

100 Logic Games - Time Killers (also have volume 2 and 3 but don't recommend those just the first one)

These are my favorite puzzles from the game app.

Parks
Battle Ships
Thermometers
Hidoku
Hidden Stars

Nurikabe
https://www.nikoli.co.jp/en/puzzles/nurikabe/

Hitori
https://www.nikoli.co.jp/en/puzzles/hitori/

NumberLink
https://www.nikoli.co.jp/en/puzzles/numberlink/

Kakuro
https://www.nikoli.co.jp/en/puzzles/kakuro/
Other free to play puzzles in your browser are which I recommend are:

Logic Grid Puzzles
https://www.brainzilla.com/logic/logic-grid/
https://www.ahapuzzles.com/logic/logic-puzzles/

Zebra Puzzles aka Eisntein's Puzzle
https://www.ahapuzzles.com/logic/zebra/
https://www.brainzilla.com/logic/zebra/

Guess the Emojis
https://www.brainzilla.com/brain-teasers/guesstimate/guess-the-emojis/

Other ones on eyefoam I recommend
Honeycomb Hotel Free
Sherlock Free The Game of Logic (same developer as Honeycomb Hotel)
PathPix $2 (don't need the 15 other iterations of PathPix) this is good enough
I use Linux Mint XFCE which comes with Thunar File manager which has better regrex search and replace than Cinnamon’s file manager Nemo. You may want to install Nemo to easily create a SMB (Samba share) with another computer or your iphone. Right click on a folder in Nemo and create a share. Check guest access works too and ok for a home user.

sudo apt install nemo

Nemo also can search for files even with regular expressions (regex) and search for content within files. XFCE Thunar file manager can't even search for files.
Documents app (free don’t need to pay any IAP) can connect to the SMB share. This way you can upload files / photos / videos to your Linux Mint computer and download them to your eyefoam.
I said I only use two firefox extensions and that's mostly true. https://t.iss.one/geektips/104

I did need to use the excellent Down Them All extension to download about 400 mp3s from a website on one page. You can select the URL and it'll automatically add all mp3s and start downloading them. I'm gonna make an audiobook from it. 6GB to maybe who knows super small.
Down Them All — you can filter to only download images, music or videos.
In Fotoxx image editor you can edit the Custom menu just add the functions which are your favorites and used most often. These are mine.

Montage
Color Mode
Mashup
Crop
resize
Markup
Blur
sudo apt install deadbeef

DeadBeef is the only audio player that I could find that plays more than 132 chapters for m4b chaptered audiobooks on Linux. edit: qmmp also can but its a KDE app so avoid.

VLC maxes out displaying 132 and Cozy won't even add the m4b audiobook to its library let alone play it. Edit: Evidently Cozy eventually adds it and same problem as VLC only displays up to 132 chapters.

BookPlayer (free) on iOS is probably what I'll use to play these 132+ chaptered m4b audiobooks since DeadBeef can't even resume last played position (not for m4b audiobooks just perhaps from mp3s or opus music files). BookPlayer can show 1,138 chapters as I've tested it out previously.
sudo apt install cudatext

Cudatext is a text editor which I used to Shuffle Lines. I wanted to shuffle some videos to upload to a telegram channel just one per day.
GMIC-Qt 500+ filters. I previously mentioned to install GMIC as a Krita plugin. I much prefer it as a standalone app.

Just download deb file for Ubuntu 20.04 (for Linux Mint 20.3) gmic_3.0.2_ubuntu20-04_focal_amd64.deb
https://gmic.eu/download.html


To see an overview of all the filters GMIC 3.0.0 (released December 2021) can do see here
https://discuss.pixls.us/t/release-of-gmic-3-0/17226

Or here is the gallery from the homepage which I made into a PDF https://t.iss.one/geektips/160