linux

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

mvirts, in What are your opinions of Guix?

I haven’t gnused it, I probably won’t unless I stop using nixos. I haven’t looked into it much, how different from nixos is guix?

Spore,

Fyi, it’s now available on nixos.

CanadaPlus, (edited )

Moderately. Same rough idea, with a few other things in the blend. For example, I found it via GNU Shepard, which it uses, while Nix sounds like it just uses systemd. The Guix package manager will also compile things from source with custom options if it needs.

megaLime, in Terminal Utility Mega list!

Im saving this list. There are so many useful utilities that I can’t wait to try out. Thanks for making it!

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

In kdenlive, the following settings work well for me (you can transfer the options to ffmpeg cli as well if you prefer that):

f=matroska movflags=+faststart vcodec=libx264 tune=stillimage progressive=1 g=1000 bf=2 crf=%quality acodec=flac ar=48000

For reference, I get a 3.7 GB video with a duration of over 5 h @4k resolution. The audio itself is already 3.7 GB and it’s just a still image. For CRF, set something around 23, that should do.

ptrckstr, (edited ) in Terminal Utility Mega list!
  • jq - parse json
  • Lazygit - UI for git
  • Lazydocker - ui for docker
  • pass - command line password store
  • zellij - tmux alternative
  • starship - terminal customization
  • tealdear - tldr in rust
  • rm-improved - rm, but moves stuff to /tmp
vox, (edited )
@vox@sopuli.xyz avatar

I’d rather just use the nu shell than tools like jq
i basically use it to write all of my scripts nowadays, it’s structured data approach is amazing (kinda similar to PowerShell, but done right)

ptrckstr,

It is! Nu looks really cool, haven’t gotten around to migrating yet myself.

Steamymoomilk,

Added to the list, thanks for your help! I will have to check out zellij and starship. I recently checked out network Chuck’s video about tmux which tmux is SUPER powerful and useful on my Gentoo computers I’m excited to see how plugins work with zellji! and starship looks like i get to rice my terminal some more :D Cheers and happy new years! [tmux Video] invidious.no-logs.com/watch?v=nTqu6w2wc68

ptrckstr,

You’re welcome! For tmux check out pain control, gives some alternative and maybe easier to remember bindings.

axelf, in What are your opinions of Guix?
@axelf@lemmy.ml avatar

Using Scheme instead of a purely functional language like Nix as the Nix/Guix expression language is a bold choice I am not sure I agree with.

Spore, (edited )

Guix uses Guile everywhere. Nix uses string interpolated Bash and Perl for anything impure.

Now what do you think?

iopq,

It’s actually easier this way because you keep everything in one place.

I edited some file on Ubuntu to merge my audio channels into one because one of my speakers broke. Do you think I know what change I made to what file now? When I update, do you think I can merge my changes with the new file and make everything work? Of course not, I am several years into forgetting what I did

But configuration.nix is one file, I usually get a deprecation notice for some stuff and just change a line here and there from time to time. All of my changes are in there and they are in git. When I switched to flakes I also added flake.nix in there, but it’s still just two files in one folder I play around with. Not only that, but the maintainers already gave me the options I need for my services. I don’t have to follow some guide online to set something up, I just enable it and it works immediately.

For example, enabling iwd is:


<span style="color:#323232;">networking.wireless.iwd.enable = true;
</span>

I just did that and it worked. I commented it out and it went back to whatever the default package is. Is this as easy to toggle back and forth in other distros?

Ramin_HAL9001, (edited )

Using Scheme instead of a purely functional language like Nix as the Nix/Guix expression language is a bold choice I am not sure I agree with.

Scheme is the most functional of all non-purely-functional languages that I know of. What’s more, the parts of Guix in which packages are defined are quite pure, even using monads for some things, so it is really not too different from the Nix language.

Atemu,
@Atemu@lemmy.ml avatar

the parts of Guix in which packages are defined are quite pure, even using monads for some things

Monads have nothing to do with purity. In fact, one of the most infamous usages of them is Haskell’s IO monad which is probably the most impure construct in the entire language.

it is really not too different from the Nix language.

Hm, I can’t help but think that a lisp dialect can never really be similar to any language except another lisp.

Spore,

No, monadic interface is used to programmatically access the store instead of being used to define packages. Packages are pure in Guix.

CanadaPlus,

So I guess they just wanted to use an established language?

WindowsEnjoyer, in Is anyone using awk?

Best use-case of AWK is that you can avoid using grep for picking a Nth word in specific line. I tend to ask GPT4 to write one-liner for me. Works super great.

jxk, in Is anyone using awk?

Awk has the advantage over Perl/Python/etc. that it’s standardized by POSIX. Therefore you can rely on it on all operating systems. It’s pretty much the only advanced scripting language available that is POSIX – the alternative would be some heavy shell scripting or almost-unreadable sed.

d3Xt3r,

Therefore you can rely on it on all operating systems.

… all except that one OS which we don’t like to talk about but annoyingly remains the most popular consumer OS. :P

yetAnotherUser,

Android?

Bitflip, (edited ) in Terminal Utility Mega list!

Mosh mosh.org

Persistent ssh connections, great for laptops/phones that sleep or change IP. Use tmux for scroll back.

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.

Decker108, in Is anyone using awk?

I think I’ve used it once in 15 years or so. It’s typically easier to go with bash or Python.

wim, in Linux Boomers

To quote the author himself:

Great, do whatever you want. Just shut the fuck up about it, nobody cares.

But then he proceeds to do the exact opposite and posts a vitriolic rant about how everyone who doesn’t use what they use is, in their words, and idiot.

JaneTheMotherfucker,

Another fool who thinks I’m a guy

throwawayish, in Linux Boomers

Username checks out

j4k3, in Is anyone using awk?
@j4k3@lemmy.world avatar

With embedded like OpenWRT on a router where you only have busybox/ash shell, awk is your primary expansions tool.

Truck_kun, in I've started building a TUI for Lemmy

I would not recommend working on two GUI’s at once, but if you build it in a way you can use different frameworks for it, the maker of Rich also makes a nice TUI framework API called Textual.

Here’s some projects made with it for a sample of what it’s usage can look like: https://www.textualize.io/projects/

I believe it does not use curses at all.

jacktherippah, in Could 2024 be the year of the diagonal linux desktop?

Hell

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