Activity for Michaelâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Suggested Edit | Post #291441 |
Suggested edit: Minor proofreading. Block code since it's already on a line by itself. (more) |
pending | 1 minute ago |
Suggested Edit | Post #291453 |
Suggested edit: Semantic heading (more) |
pending | 4 minutes ago |
Edit | Post #291376 |
Post edited: Sample code |
— | 4 days ago |
Edit | Post #291376 |
Post edited: Internally consistent Markdown formatting |
— | 4 days ago |
Edit | Post #291376 |
Post edited: Note that sudoers IP restrictions are not what you're looking for |
— | 4 days ago |
Edit | Post #284502 |
Post edited: Fix Puppy link. Move all the links to a bibliography at the end. |
— | 6 days ago |
Edit | Post #282528 |
Post edited: Link Canina. Move some parentheticals to footnotes. Minor grammar improvements. |
— | 6 days ago |
Edit | Post #291379 |
Post edited: Fix typo. Tiny grammar improvement. |
— | 8 days 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) |
— | 11 days ago |
Suggested Edit | Post #291379 |
Suggested edit: Fix typo. Tiny grammar improvement. (more) |
helpful | 11 days ago |
Edit | Post #291376 | Initial revision | — | 12 days 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) |
— | 12 days ago |
Edit | Post #291361 | Initial revision | — | 16 days 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) |
— | 16 days 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. […]
on your [What is cat abuse/useless use of cat?](https://linux.codidact.com/posts/291136) question. I would take their commentary wi... (more) |
— | 16 days ago |
Edit | Post #290797 |
Post edited: Newlines |
— | about 1 month 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) |
— | about 1 month ago |
Suggested Edit | Post #282528 |
Suggested edit: Link Canina. Move some parentheticals to footnotes. Minor grammar improvements. (more) |
helpful | about 1 month ago |
Edit | Post #291122 |
Post edited: More formatting inside quote block |
— | about 2 months ago |
Edit | Post #291122 |
Post edited: Main section headings. Link hwdb(7). |
— | about 2 months ago |
Edit | Post #291122 | Initial revision | — | about 2 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) |
— | about 2 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) |
— | about 2 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) |
— | about 2 months ago |
Suggested Edit | Post #284502 |
Suggested edit: Fix Puppy link. Move all the links to a bibliography at the end. (more) |
helpful | about 2 months ago |
Edit | Post #290990 |
Post edited: Links! |
— | 2 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) |
— | 2 months ago |
Edit | Post #290990 |
Post edited: Specifically mention crypto, because that's a main feature. |
— | 2 months ago |
Edit | Post #290990 |
Post edited: Rearrange the chart. Editorialize. |
— | 2 months ago |
Edit | Post #290990 |
Post edited: Table formatting on real site different from preview. |
— | 2 months ago |
Edit | Post #290990 | Initial revision | — | 2 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 | | ✓ | | `ci... (more) |
— | 2 months ago |
Edit | Post #290475 |
Post edited: Hey look, another one. |
— | 3 months ago |
Edit | Post #290797 |
Post edited: Different run styles |
— | 3 months ago |
Comment | Post #290797 |
True. If your file was made with \*Nix-y tools, it probably has the trailing newline, though. (more) |
— | 3 months ago |
Edit | Post #290108 |
Post edited: Yet more ASCII chart tweaking |
— | 3 months ago |
Edit | Post #290108 |
Post edited: Better ascii art |
— | 3 months ago |
Edit | Post #290797 | Initial revision | — | 3 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) |
— | 3 months ago |
Edit | Post #290544 |
Post edited: |
— | 4 months ago |
Edit | Post #290544 | Initial revision | — | 4 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) |
— | 4 months ago |
Edit | Post #290108 |
Post edited: Diagram |
— | 4 months ago |
Edit | Post #290475 |
Post edited: Add another |
— | 5 months ago |
Edit | Post #290475 | Initial revision | — | 5 months ago |
Answer | — |
A: How to find your public IP address from command-line? There are probably myriad services for echoing your IP back over HTTP. Here are a couple: ```sh curl https://api.ipify.org curl https://ip.me curl https://icanhazip.com ``` (more) |
— | 5 months ago |
Edit | Post #282493 |
Post edited: Tag ssh |
— | 5 months ago |
Edit | Post #290108 |
Post edited: Workshop the first sentence some more. |
— | 7 months ago |
Edit | Post #290108 |
Post edited: Mention port forwarding, in case it's important to someone. |
— | 7 months ago |
Edit | Post #290108 |
Post edited: Mention multiple hops. |
— | 7 months ago |