LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Old

MPV script crops/zooms the video without reencoding

Posted 12-25-2019 at 09:05 AM by the dsc (linux-related notes)
Tags mpv

Have you ever seen or being interested in watching a video with some eerily poor framing source, like, the center of interest would be slides that are shown tiny as "a picture in picture" kind of thing? This script is the handiest tool to make them watchable, if the resolution is high enough:

https://github.com/aidanholm/mpv-easycrop

Pressing "c" and then clicking at an edge of the virtual crop will darken most of the video, then, as you move the...
Member
Posted in Uncategorized
Views 1296 Comments 0 the dsc is offline
Old

Great tip to mass edit a file with lots of paths, using variables and "sed"

Posted 12-17-2019 at 07:33 AM by the dsc (linux-related notes)
Tags sed

Sed "default" delimiter is "/", or at least that's what most people use. I tipically find "|" more readable, so that's "my" default. Regardless, it can still be troublesome if you're dealing with paths and variables, it seems somehow the command will "break up".

Glenn Jackman posted on Stack Overflow:
Quote:
A pure bash answer: use parameter expansion to backslash-escape any slashes in the variable:

Code:
var="/Users/Documents/name/file"
...
Member
Posted in Uncategorized
Views 2955 Comments 0 the dsc is offline
Old

"find" files of multiple extensions, on one or more directories, excluding multiple subdirectories

Posted 12-07-2019 at 12:43 PM by the dsc (linux-related notes)
Updated 12-07-2019 at 12:47 PM by the dsc

It took me quite a while to find the correct syntax, only after some dozens of attempts that only worked partly right:

Code:
 find "${PWD}" "/optionally/any/other/path/"  \( -path '*/\.*' -o -name '*notthisfolder*' -o -name '*northis*' -o -wholename "*oteven/thi*" \) -prune -o -iname '*.ext1' -o -iname "*.ext2" -o -iname "*.ext*nsion3"
Where '*/\.*' excludes hidden folders (also files, I guess). All the patterns between the...
Member
Posted in Uncategorized
Views 1547 Comments 0 the dsc is offline
Old

Chrome (ium) apparently no longer has "bookmark all tabs" in the context menu, only via shortcut keys

Posted 11-23-2019 at 02:46 PM by the dsc (linux-related notes)
Updated 11-23-2019 at 02:51 PM by the dsc

The shortcut being Shift+Control+D. I hope they don't decide we no longer need that as well.

Oops. It still has on the context menu, but only if you right click on the empty space, without any tab.
Member
Posted in Uncategorized
Views 1072 Comments 0 the dsc is offline
Old

[SOLVED?] Kdialog ("save file as") extremely slow to show up

Posted 10-08-2019 at 12:15 PM by the dsc (linux-related notes)

There are plenty of threads around the internet with this problem, not everyone is able to reproduce it, and probably "fixes" don't always work. In my case, I'm not even on KDE/plasma, even though I prefer KDE file managers and dialogs.

What I found that worked for me so far was from here: https://forum.manjaro.org/t/dolphin-...-load/69134/11

Quote:
Originally Posted by b_quest

Itís because dolphin may call upower when starting and upower fails and causes
...
Member
Posted in Uncategorized
Views 257 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 03:33 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration