this post was submitted on 29 Jul 2024
61 points (98.4% liked)

Linux

5495 readers
575 users here now

A community for everything relating to the linux operating system

Also check out !linux_memes@programming.dev

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
top 13 comments
sorted by: hot top controversial new old
[–] tea@lemmy.today 5 points 4 months ago (2 children)

This is great!

@tripflag@lemmy.world If you don't mind, what tools did you use to create this html? Have a cheatsheet.txt that I often share with devs on my team and I'd love to format it into something like this with a TOC, display name for a command, and links down to each oneliner.

[–] tripflag@lemmy.world 5 points 4 months ago (1 children)

I'm sorry to say it's a bit of very old-fashioned php that's in charge of all that xD

I've modified it to print its own source code if you append ?dat=sauce to the URL, and I'll try to answer questions if I can remember how it worked :-)

[–] tea@lemmy.today 4 points 4 months ago* (last edited 4 months ago)

Thanks man. This is likely going to be too much for me, but I really appreciate you providing it. Taking a look :)

edit: Actually, I think I get it after looking at the nix.sh that's the actual list of commands. Thanks! Seeing if I can tweak things so I can make my own version. Cheers!

[–] blackbirdbiryani@lemmy.world 1 points 4 months ago

Why not just use markdown?

[–] noproblemmy@programming.dev 3 points 4 months ago* (last edited 4 months ago)

Nice to find real use examples.

[–] homesweethomeMrL@lemmy.world 2 points 4 months ago (1 children)
[–] homesweethomeMrL@lemmy.world 1 points 4 months ago

Whoo - tough room

[–] ssm@lemmy.sdf.org 1 points 4 months ago* (last edited 4 months ago)

Good stuff, this person knows how to {ba,}sh; saved.

[–] MagicShel@programming.dev 1 points 4 months ago* (last edited 4 months ago) (1 children)

~~Opening this in reader mode and seeing a wall of SEO garbage is a bit off putting. Which isn't to say this isn't a good resource. I haven't dug that far. Just meta commentary on the state of the internet.~~

~~Also, I don't normally see that so maybe there's a better SEO implementation.~~

[–] tripflag@lemmy.world 6 points 4 months ago (1 children)

Hey! Website author here :>
Curious about the SEO garbage you're seeing because that's not coming from me. Could you post an example? Are you using any shady VPN's or anything like that?

[–] MagicShel@programming.dev 2 points 4 months ago* (last edited 4 months ago) (1 children)

This is just Safari in reader mode. No vpns. I checked Firefox in reader mode and I don't see the same thing.

[–] tripflag@lemmy.world 7 points 4 months ago (1 children)

oh good, that's just reader-mode mangling the TOC. Those are supposed to be clickable links to jump to the relevant section. Firefox's reader-mode does a better job by not rendering the TOC at all. Thanks for the scare hehe

[–] MagicShel@programming.dev 2 points 4 months ago

Gotcha. Sorry!