canadaduane

joined 1 year ago
[–] canadaduane@lemmy.ca 2 points 1 day ago

This is almost completely true, but I would add the caveat that PWAs (progressive web apps) are not as easy to discover and less familiar to install as an app in an app/play store. It might also be because it's in Apple and Google's best interest to not streamline that. But it's still an obstacle nevertheless.

[–] canadaduane@lemmy.ca 0 points 2 months ago

Aegis on Android is also very nice (and open source).

[–] canadaduane@lemmy.ca 1 points 2 months ago

Working development system. I got quite far, but after so much work, became very frustrated when a VSCode plugin wouldn't work properly because it needed (and assumed) read/write access. I didn't want to have to manage and think about every little plugin I experimented with at the OS level.

[–] canadaduane@lemmy.ca 9 points 2 months ago (8 children)

I really wanted to like NixOS (and I do, theoretically), but I couldn't dedicate more than 5 full days over Christmas to learn how to get to a working development system.

[–] canadaduane@lemmy.ca 0 points 3 months ago

Check out Aegis if you're on Android. (See my other comment).

[–] canadaduane@lemmy.ca 0 points 3 months ago* (last edited 3 months ago)

On Android, I replaced Authy with the open-source Aegis app. It's just as functional, allows exporting, and doesn't tie your data to your phone number (nor store it on a central system--not sure if Authy does this or not).

[–] canadaduane@lemmy.ca 1 points 8 months ago (2 children)

Very interesting. Do you have any more info about the relationship between 1080p/60hz and battery? It sounds intuitively true, I'd just like to learn more.

[–] canadaduane@lemmy.ca 7 points 8 months ago* (last edited 8 months ago) (4 children)

Very nice! I was just looking at reviews on this. Really nice machine in every way, except maybe for the camera, and minor points off for the display being "only" 1080p. I have a lovely framework 13", but am jealous of the Lemur's battery life.

[–] canadaduane@lemmy.ca 5 points 9 months ago (2 children)

This is the case for me as well. I tried NixOS this weekend, and even though it has more adoption than Guix, it still does not have 100% coverage of all software I wanted. That said, the packages I did install were pretty up-to-date. I guess NixOS is as close to "critical mass" as we've got when it comes to this type of OS. But if I were a wizard devops type person with more time, I'd probably enjoy Guix more.

[–] canadaduane@lemmy.ca 8 points 9 months ago

Given encouragement to try tmux, here is what I've come up with as a "one-liner" (script) that does what I was originally looking for:

#!/bin/sh

tmux new-session -d -s split_screen_grep \; \
  send-keys "/bin/sh -c '$1' | tee /tmp/split_screen_grep.txt" C-m \; \
  split-window -h \; \
  select-pane -t 1 \; \
  send-keys "tail -f /tmp/split_screen_grep.txt | grep '$2'" C-m \;

tmux attach-session -t split_screen_grep

I use it as follows, first arg is a command, second arg is a pattern to search for:

$ ./split-grep "cat big_file.txt" "tmux"
[–] canadaduane@lemmy.ca 1 points 9 months ago (2 children)

Thanks! I'm curious if there is a way to do this as a one-liner?

57
submitted 9 months ago* (last edited 9 months ago) by canadaduane@lemmy.ca to c/linux@lemmy.ml
 

I want to run a command and see all of its output on the left hand side, while simultaneously searching/grepping for particular lines on the right hand side. In other words, I want a temporary vertically split screen in my CLI, ideally with scrollback on each side of the split, but where I expect the left hand side to be scrolling thousands of lines quickly, while on the right hand side is a slow accumulation of "matches" to my grep.

Is this possible today? What tools would you recommend to accomplish this?

EDIT: To be clear, a one-liner is preferable over learning tmux or screen, although this does motivate me to perhaps begin learning tmux.

In case this is an X/Y problem: The specific command I'm trying to run is an rsync simulation (dry-run) where I want to both check that the command works, and subsequently check that there are no denied errors. The recommended way to do this is to run the command twice, as follows (but I want to combine it into one pass):

# first specify the "-n" parameter so rsync will simulate its operation. You should use this before you start:
rsync -naP --exclude-from=rsync-homedir-local.txt /home/$USER/ $BACKUPDIR/

# check for permission denied errors in your homedir:
rsync -naP --exclude-from=rsync-homedir-local.txt /home/$USER/ $BACKUPDIR/ | grep denied
 

Beginning Linux user: "Ctrl-Z is undo, right?"

Advanced Linux user: "Ctrl-Z dammit fg"

view more: next ›