linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

wviana, in Terminal Utility Mega list!

Fpr tldr I do prefer tealdeer (rust) instead of the node implementation in the post

For tmux there are screen that is simpler, I mostly use in server. In my local I like to use zellij, that is a tmux like implemented in rust.

Don’t miss ripgrep. Really awesome/fast replacement for grep.

bananabattery,

I gave up on these tools for:

curl cheat.sh/fd

Replace fd with any command.

crunchpaste, in Terminal Utility Mega list!
@crunchpaste@lemmy.dbzer0.com avatar

Recently found out about ouch. Found it really useful for decompressing files in the terminal as I can’t seem to remember all the flags for tar, gzip, zip, rar and all the rest one may encounter which all seem to use different syntax.

bloopernova, in Terminal Utility Mega list!
@bloopernova@programming.dev avatar

Possibly offtopic, I wrote a guide to setting up zsh on macOS: gist.github.com/…/0ffcb98aa262c585c49d4b3f3ae2401…

jws_shadotak, in how do i efficiently attach audio to an image

Are you able to add it through the file properties menu?

jackpot, (edited )
@jackpot@lemmy.ml avatar

probably? would that be able to be sent to people / uploaded? how do i do this? linux mint btw

Nachorella, in Terminal Utility Mega list!

I like the starship prompt. Not sure it’s really a utility, though?

HexesofVexes, in Terminal Utility Mega list!

mocp - For when you want to listen to music in terminal.

gaael,

My personnal favorite is cmus Small, fast and powerful console music player

HexesofVexes,

Will give it a try!

Thanks for the recommend.

embed_me,
@embed_me@programming.dev avatar

I used to use cmus

SGHFan, in Could 2024 be the year of the diagonal linux desktop?
@SGHFan@lemdro.id avatar

Perfect, just what I need if I set my laptop on my laptop stand the wrong way!

gray, in how do i efficiently attach audio to an image
@gray@pawb.social avatar
luthis,

The answer is always ffmpeg

jackpot,
@jackpot@lemmy.ml avatar

im confused sorry, i tried the libx265 codec but the image still has blurry edges??

nekusoul, (edited ) in how do i efficiently attach audio to an image
@nekusoul@lemmy.nekusoul.de avatar

Since the end goal is to post a video to YouTube, you will have to create a video file. Personally I would probably just be lazy and upload the large file, since YouTube is going to reconvert the video anyway.

That said, to optimize the file you need to know how videos work, specifically key frames. Speaking generally, when a video gets encoded, it doesn’t add the whole image for each frame. Instead, it only does that when the current frame is a key frame, and then only stores the difference to the previous frame for every regular frame. There’s a lot of different strategies when placing keyframes, like every X seconds, when the scene changes, or both. This is usually you can change somewhere in the encoding settings of the application you’re using. You will need to use a codec/format that supports interframe compression though, so avoid AVI and MJPEG.

So the TL;DR is: Try to decrease the amount of key frames as much as possible, maybe even down to only one if possible.

olafurp, (edited ) in Is anyone using awk?

I think it’s pretty niche but is a great tool for parsing / converting data into a format that is more easily digested by another program.

Think for example a report from an 80’s system that spits out many tab separated values in a different format based on some code. Then these tables are all separated by two blank lines and order of them is randomised. To top that off you need to then pipe it all to a different program that only accepts a specific format.

You could do it in Python by doing a parse, process, stringify code but if you know awk you can do all those steps at the same time with less code.

Sure, in the age of REST the Python approach is better but awk is a very powerful tool for the “I have a specific output but need a specific input” problem.

turkalino, in how do i efficiently attach audio to an image
@turkalino@lemmy.yachts avatar

Are you sure your rendering settings are correct? It sounds like the video isn’t being encoded at all. Video encoding works by storing a frame in full quality every couple seconds or so. For the rest of the frames, only their differences from the previous full-quality frame are stored. But from what you describe, it sounds like the latter sentence isn’t happening

jackpot,
@jackpot@lemmy.ml avatar

oh i didnt think this is how it worked, i ended up using ffmpeg to make a one frame a second video but it still looks blurry??

Scraft161, in "Combokeys" instead of hotkeys. [Feature/new command suggestion]
@Scraft161@iusearchlinux.fyi avatar

sxhkd/swhkd, both support creating these natively and the second one works not just on Wayland, but also X11 and the TTY.

OpenStars, in Is anyone using awk?
@OpenStars@discuss.online avatar

awk is awesome! I love it, and I do not regret learning how to use it.

That said, my workflow invariably always shifts from starting with awk to do something simply with a tiny one-liner, to then doing that with perl or python, and sometimes even creating a file to make the by-now multi-line scripts more easily readable.

I do not recommend starting with awk, if you do not know other languages already such as Python.

In short, let your intuition guide you.

WaLLy3K, (edited ) in Is anyone using awk?

awk is pretty damn solid. When I was completely rewriting the gravity.sh script from Pi-hole about six years back, it was easily the fastest for parsing and uniquely sorting content from files with a couple million lines. It made things much more usable on Raspberry Pi Zero hardware, since changing to another language like Python was out of the question.

vojel, in Terminal Utility Mega list!
@vojel@discuss.tchncs.de avatar

Zsh becomes really handy with oh my zsh and powerlevel10k theme

ohmyz.sh

github.com/romkatv/powerlevel10k

And for neovim I made the transition from vim with lazyvim: www.lazyvim.org

snowe,
@snowe@programming.dev avatar

You can replace almost all aspects of oh my zsh just by using fish shell. Like straight out of the box it does most of it. I switched off of a completely customized zsh (oh my zsh didn’t do enough for me) and fish is able to do everything I did with my custom zsh setup.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #