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 Michael‭

Type On... Excerpt Status Date
Edit Post #291703 Post edited:
Grammar. Fix typo.
1 day ago
Suggested Edit Post #291703 Suggested edit:
Grammar. Fix typo.
(more)
helpful 5 days ago
Edit Post #291441 Post edited:
Minor proofreading. Block code since it's already on a line by itself.
6 days ago
Edit Post #291453 Post edited:
Semantic heading
9 days ago
Comment Post #291543 It wouldn't surprise me if [this answer](https://linux.codidact.com/posts/290665/291122#answer-291122) on mouse button remapping could be used for keyboard keys as well.
(more)
18 days ago
Edit Post #291563 Post edited:
"real" footnote.
18 days ago
Suggested Edit Post #291563 Suggested edit:
"real" footnote.
(more)
helpful 19 days ago
Suggested Edit Post #291441 Suggested edit:
Minor proofreading. Block code since it's already on a line by itself.
(more)
helpful about 1 month ago
Suggested Edit Post #291453 Suggested edit:
Semantic heading
(more)
helpful about 1 month ago
Edit Post #291376 Post edited:
Sample code
about 1 month ago
Edit Post #291376 Post edited:
Internally consistent Markdown formatting
about 1 month ago
Edit Post #291376 Post edited:
Note that sudoers IP restrictions are not what you're looking for
about 1 month ago
Edit Post #284502 Post edited:
Fix Puppy link. Move all the links to a bibliography at the end.
about 1 month ago
Edit Post #282528 Post edited:
Link Canina. Move some parentheticals to footnotes. Minor grammar improvements.
about 1 month ago
Edit Post #291379 Post edited:
Fix typo. Tiny grammar improvement.
about 1 month ago
Comment Post #291379 One of the sources from the Wikipedia footnotes [says that](https://www.ncftp.com/ncftpd/doc/misc/ephemeral_ports.html#Linux) it _had been_ 1024 through 4999 in kernel 2.2 and changed in kernel 2.4 to "32768 through 61000 if adequate kernel memory is available." I don't know if this suggests a tec...
(more)
about 2 months ago
Suggested Edit Post #291379 Suggested edit:
Fix typo. Tiny grammar improvement.
(more)
helpful about 2 months ago
Edit Post #291376 Initial revision about 2 months ago
Answer A: Nerf an SSH login outside expected IP range
authorizedkeys You can make restrictions, but it's clunky and not well-standardized. A `command` stanza on an authorized key works like the `ForceCommand` on SSHD Config. It runs the one specified command instead of your requested command or interactive session and then closes the connection. Obvi...
(more)
about 2 months ago
Edit Post #291361 Initial revision about 2 months ago
Question Nerf an SSH login outside expected IP range
Can I restrict myself from certain actions when I SSH in from outside a certain IP range? For instance no `sudo`? Maybe with /.ssh/authorizedkeys having a `from="!1.2.3.4/26"` option with some kind of `command="???"`?
(more)
about 2 months ago
Comment Post #291359 That user is the same one that posted > Cat abuse refers to any harmful or cruel treatment of cats, such as physical violence, neglect, or abandonment. [&hellip;] on your [What is cat abuse/useless use of cat?](https://linux.codidact.com/posts/291136) question. I would take their commentary wi...
(more)
about 2 months ago
Edit Post #290797 Post edited:
Newlines
2 months ago
Comment Post #291289 Is `yq` the reaction to "they wouldn't let me put YAML into [`jq`'s I/O](https://jqlang.github.io/jq/manual/#io)?"
(more)
2 months ago
Suggested Edit Post #282528 Suggested edit:
Link Canina. Move some parentheticals to footnotes. Minor grammar improvements.
(more)
helpful 2 months ago
Edit Post #291122 Post edited:
More formatting inside quote block
3 months ago
Edit Post #291122 Post edited:
Main section headings. Link hwdb(7).
3 months ago
Edit Post #291122 Initial revision 3 months ago
Answer A: How do you remap mouse buttons?
Wayland, ideally If you are on Wayland, the blessed way is to use the configuration for your desktop environment (DE) to map mouse keys and other input devices, except for a couple well-known options (eg left-handed mode and middle mouse emulation). Wayland, via `hwdb` If your DE doesn't hav...
(more)
3 months ago
Comment Post #290163 Makes sense to me. It could save some poor sod from thinking you could pipe to `test` like this: ```sh false | test || echo 'False!' ! false | test && echo 'True!' ``` You're inverting the exit code of `test`, not inverting `false` as someone might imagine. (Is this contrived? Yes, very. Is ...
(more)
3 months ago
Comment Post #291099 From the question title, I thought you meant _syntax highlighting_ in the shell, which you can do with [`bat`](https://github.com/sharkdp/bat). Pipe your pretty (or existing) output to `bat` for colors.
(more)
3 months ago
Suggested Edit Post #284502 Suggested edit:
Fix Puppy link. Move all the links to a bibliography at the end.
(more)
helpful 3 months ago
Edit Post #290990 Post edited:
Links!
3 months ago
Comment Post #290987 You didn't ask for this, but there's also a tool I use for SSH: [`ssh-audit`](https://github.com/jtesta/ssh-audit). It's perhaps a little too opinionated about NIST curves and the NSA (but if you're concerned about the NSA, maybe that's important). Otherwise pretty helpful.
(more)
3 months ago
Edit Post #290990 Post edited:
Specifically mention crypto, because that's a main feature.
3 months ago
Edit Post #290990 Post edited:
Rearrange the chart. Editorialize.
3 months ago
Edit Post #290990 Post edited:
Table formatting on real site different from preview.
3 months ago
Edit Post #290990 Initial revision 3 months ago
Answer A: How do I diagnose TLS errors?
Over some period of time, I have used a couple tools for local TLS scans and diagnostics. One of them may include pointers for whatever situation you have. | Tool | Description | From | Current? | |------|-------------|------|----------| | `sslyze` | TLS analysis by protocol | | &check; | | `ci...
(more)
3 months ago
Edit Post #290475 Post edited:
Hey look, another one.
4 months ago
Edit Post #290797 Post edited:
Different run styles
4 months ago
Comment Post #290797 True. If your file was made with \*Nix-y tools, it probably has the trailing newline, though.
(more)
4 months ago
Edit Post #290108 Post edited:
Yet more ASCII chart tweaking
4 months ago
Edit Post #290108 Post edited:
Better ascii art
4 months ago
Edit Post #290797 Initial revision 4 months ago
Answer A: How to count the lines of a file?
I think the typical way to do this uses `wc` ("word count") with the `-l` ("lines") option. ```sh $ wc -l /path/to/file 47 /path/to/file $ wc -l </path/to/file 47 $ cat /path/to/file | wc -l 47 ``` `wc` with no options prints the number of lines, words, and bytes, but `-l` can li...
(more)
4 months ago
Edit Post #290544 Post edited:
5 months ago
Edit Post #290544 Initial revision 5 months ago
Answer A: How do I safely replace brew on Big Sur?
If you just want the minimal set of top-level packages to install on your new system, `brew leaves` is less verbose than CodeFarmer's `brew deps --installed`. You get a nice concise list of the packages that are not needed as dependencies by any other package. Edit: This is mentioned in the com...
(more)
5 months ago
Edit Post #290108 Post edited:
Diagram
5 months ago