Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Activity for alx‭

Type On... Excerpt Status Date
Comment Post #290386 @#57088 What's that `[]()` that you added?
(more)
11 months ago
Edit Post #290204 Post edited:
11 months ago
Edit Post #290204 Post edited:
Serge Hallyn showed me that muttrc(5) can embed commands.
11 months ago
Comment Post #290386 Nice sed(1) regex! It looks obvious after seeing it.
(more)
12 months ago
Comment Post #290322 Command substitution `$(...)` already strips the trailing newline. You don't need `-n`. See <https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_03>. Quoting POSIX: > ... removing sequences of one or more \<newline\> characters at the end of the substitution....
(more)
12 months ago
Edit Post #290290 Post edited:
12 months ago
Edit Post #290290 Initial revision 12 months ago
Answer A: Run pipeline in the background from git hook
Use nohup(1), and redirect stdout and stderr to /dev/null The following works as expected, not having to wait until the PDF is generated. ```sh #!/bin/sh test "$1" = "refs/heads/main" || exit 0; cd /srv/src/alx/linux/man-pages/man-pages/; unset $(git rev-parse --local-env-vars); git ...
(more)
12 months ago
Edit Post #290288 Post edited:
12 months ago
Edit Post #290288 Post edited:
12 months ago
Edit Post #290288 Post edited:
12 months ago
Edit Post #290288 Post edited:
12 months ago
Edit Post #290288 Post edited:
12 months ago
Edit Post #290288 Post edited:
12 months ago
Edit Post #290288 Post edited:
12 months ago
Edit Post #290288 Initial revision 12 months ago
Answer A: How to extract string from file, run filter, and replace in file with new value?
(Assuming your file names are portable, according to POSIX (). If not, please read this for writing a more robust script: .) ``` find . -type f \ | grep '/chapter-[^/].xhtml$' \ | while read f; do ( head -n11 <"$f"; sed -n '12p' <"$f" | titlecase; ...
(more)
12 months ago
Edit Post #290283 Post edited:
12 months ago
Edit Post #290283 Initial revision 12 months ago
Question Run pipeline in the background from git hook
I'm trying to run a pipeline to update a PDF after every push to the 'main' branch. I want it to be atomic, so it doesn't touch the existing PDF until it has finished, so I need to use sponge(1) (from moreutils). I've tried the following script: ```sh #!/bin/sh test "$1" = "refs/heads/main...
(more)
12 months ago
Comment Post #290201 @#53919 I get an error: ``` setfont: ERROR setfont.c:402 kfont_load_font: Cannot find default font ```
(more)
about 1 year ago
Edit Post #290224 Post edited:
about 1 year ago
Edit Post #290224 Post edited:
about 1 year ago
Edit Post #290224 Post edited:
about 1 year ago
Edit Post #290224 Post edited:
about 1 year ago
Edit Post #290224 Post edited:
about 1 year ago
Edit Post #290224 Post edited:
about 1 year ago
Edit Post #290224 Post edited:
about 1 year ago
Edit Post #290224 Post edited:
about 1 year ago
Edit Post #290224 Post edited:
about 1 year ago
Edit Post #290224 Post edited:
about 1 year ago
Edit Post #290224 Post edited:
about 1 year ago
Edit Post #290224 Post edited:
about 1 year ago
Edit Post #290224 Post edited:
about 1 year ago
Edit Post #290224 Initial revision about 1 year ago
Answer A: How to RTFM well to get a CLI command
The pager less(1) less(1) is the usual pager nowadays; you would do well learning to use it. It's also used for paging the manual pages, in most systems. The most common operation is searching, which is done by pressing `/`. Press `h` within the pager, or run `less --help` to read its help f...
(more)
about 1 year ago
Comment Post #290221 Most shells don't provide manual pages for their built-ins like exit, but exit(1) is defined by POSIX (The Portable Operating System Interface), and there are POSIX manual pages. On Debian: ``` $ apt-file find /exit.1; fish-common: /usr/share/fish/man/man1/exit.1 manpages-posix: /usr/share/m...
(more)
about 1 year ago
Comment Post #290204 Here are the drives I own: - USB: <https://www.amazon.es/gp/product/B08H8GNGCZ> (edit: do not trust this drive!) ```sh $ time (sudo dd if=/dev/zero of=/dev/sdb bs=1MiB status=progress; sync) 33303822336 bytes (33 GB, 31 GiB) copied, 156 s, 213 MB/s dd: error writing '/dev/sdb': No space le...
(more)
about 1 year ago
Comment Post #290204 I'm very happy about it! Thanks for the question! :)
(more)
about 1 year ago
Comment Post #290201 Yes, as @Canina pointed out, I was trying to keep the Fixed font. I didn't check that other fonts had more sizes. It is indeed the simplest solution.
(more)
about 1 year ago
Comment Post #290203 The winner to my taste has been `Lat15-Terminus32x16.psf.gz`. Heh, only caveat is I prefer the Fixed font. But size matters! I wish there was a large version of it. :) As you said, I don't trust passing the kernel a different resolution.
(more)
about 1 year ago
Edit Post #290204 Post edited:
about 1 year ago
Edit Post #290204 Post edited:
about 1 year ago
Edit Post #290204 Post edited:
about 1 year ago
Edit Post #290204 Post edited:
about 1 year ago
Edit Post #290204 Initial revision about 1 year ago
Answer A: Looking for a way to sync dotfile content between different machines without introducing security issues
It depends on how much sensitive they are. I have three classes. 1) Very sensitive directories Partitions For my `/.ssh/`, `/.password-store/`, `/.gnupg/`, and `/.abook/`, I have a drive with 4 partitions, one for each directory, each of them encrypted with LUKS2. The relevant fs...
(more)
about 1 year ago
Comment Post #290201 My default font is 8x16, and the largest one I can choose is 8x18. which I don't think will make much of a difference. Also, will it change the rectangle size, or will it just have less space between letters? That might even be negative to readability.
(more)
about 1 year ago
Edit Post #290199 Post edited:
about 1 year ago
Edit Post #290199 Initial revision about 1 year ago