Activity for alx
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #291205 |
Post edited: |
— | about 1 year ago |
Edit | Post #291205 |
Post edited: |
— | about 1 year ago |
Edit | Post #291205 | Initial revision | — | about 1 year ago |
Question | — |
Can a malicious party add false recipients (who are listed but can't really decrypt) to an encrypted GPG message? In gpg(1), one normally adds recipients of an encrypted message with `--recipient`. Those recipients will be able to decrypt the message, and their key ID will appear unencrypted, so anyone will know that they are able to decrypt it. gpg(1) also allows adding hidden recipients, with `--hidden-rec... (more) |
— | about 1 year ago |
Comment | Post #290837 |
Interesting! Unfortunately, I don't. It's within a release tarball. To be able to run `make dist` from within that tarball, I need to be able to list the files, but release tarballs don't have .git (and shipping an empty git repository within the tarball would be very fishy). (more) |
— | about 1 year ago |
Edit | Post #290836 | Initial revision | — | about 1 year ago |
Question | — |
How to use the gitignore file without git(1). How can a file list be manually filtered with a gitignore file. I want to do the equivalent of `git ls-files`, but it should work even if I remove `.git`, so I can't use git(1). Currently, I'm doing ```sh find . -not -type d \ | grep -v ^.git$ \ | grep -v other-files-specified-in-the-giti... (more) |
— | about 1 year ago |
Comment | Post #290386 |
@#57088
What's that `[]()` that you added? (more) |
— | about 1 year ago |
Edit | Post #290204 |
Post edited: |
— | over 1 year ago |
Edit | Post #290204 |
Post edited: Serge Hallyn showed me that muttrc(5) can embed commands. |
— | over 1 year ago |
Comment | Post #290386 |
Nice sed(1) regex! It looks obvious after seeing it. (more) |
— | over 1 year 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) |
— | over 1 year ago |
Edit | Post #290290 |
Post edited: |
— | over 1 year ago |
Edit | Post #290290 | Initial revision | — | over 1 year 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) |
— | over 1 year ago |
Edit | Post #290288 |
Post edited: |
— | over 1 year ago |
Edit | Post #290288 |
Post edited: |
— | over 1 year ago |
Edit | Post #290288 |
Post edited: |
— | over 1 year ago |
Edit | Post #290288 |
Post edited: |
— | over 1 year ago |
Edit | Post #290288 |
Post edited: |
— | over 1 year ago |
Edit | Post #290288 |
Post edited: |
— | over 1 year ago |
Edit | Post #290288 |
Post edited: |
— | over 1 year ago |
Edit | Post #290288 | Initial revision | — | over 1 year 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) |
— | over 1 year ago |
Edit | Post #290283 |
Post edited: |
— | over 1 year ago |
Edit | Post #290283 | Initial revision | — | over 1 year 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) |
— | over 1 year ago |
Comment | Post #290201 |
@#53919
I get an error:
```
setfont: ERROR setfont.c:402 kfont_load_font: Cannot find default font
``` (more) |
— | over 1 year ago |
Edit | Post #290224 |
Post edited: |
— | over 1 year ago |
Edit | Post #290224 |
Post edited: |
— | over 1 year ago |
Edit | Post #290224 |
Post edited: |
— | over 1 year ago |
Edit | Post #290224 |
Post edited: |
— | over 1 year ago |
Edit | Post #290224 |
Post edited: |
— | over 1 year ago |
Edit | Post #290224 |
Post edited: |
— | over 1 year ago |
Edit | Post #290224 |
Post edited: |
— | over 1 year ago |
Edit | Post #290224 |
Post edited: |
— | over 1 year ago |
Edit | Post #290224 |
Post edited: |
— | over 1 year ago |
Edit | Post #290224 |
Post edited: |
— | over 1 year ago |
Edit | Post #290224 |
Post edited: |
— | over 1 year ago |
Edit | Post #290224 |
Post edited: |
— | over 1 year ago |
Edit | Post #290224 |
Post edited: |
— | over 1 year ago |
Edit | Post #290224 | Initial revision | — | over 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) |
— | over 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) |
— | over 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) |
— | over 1 year ago |
Comment | Post #290204 |
I'm very happy about it! Thanks for the question! :) (more) |
— | over 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) |
— | over 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) |
— | over 1 year ago |
Edit | Post #290204 |
Post edited: |
— | over 1 year ago |
Edit | Post #290204 |
Post edited: |
— | over 1 year ago |