Live data from Hacker News

Show HN: Share one-liner command snippets

snippets.shodan.io

1–10 of 26 posts

Re: Show HN: Share one-liner command snippets

#3
post #2

Interesting, but https://www.commandlinefu.com/ is there for quite a long time. What are the benefits over it?

Primarily, I wanted something with better syntax highlighting. Especially for tools that I feel are common/ popular but aren't part of Bash so they're not usually highlighted as they're not part of the language.

With this, I was trying to create a set of highlighting rules that would make arguments more obvious to read. For example:

https://snippets.shodan.io/c/KicwlhJFezcAAhWe

I wrote the website because I wanted to have that sort of syntax highlighting for the commands I share in our docs to make it easier to read/ understand. Btw the description field supports Markdown so you can also explain the commands in further detail, see:

https://snippets.shodan.io/c/GhFfOh2r0mOSLrcJ

And the commands can be embedded as images by appending ".png" to the end of the URL:

https://snippets.shodan.io/c/GhFfOh2r0mOSLrcJ.png

Re: Show HN: Share one-liner command snippets

#5

Like it! Feature request: when we click on the command line, select all the command line and copy it in the clipboard, instead of having to double click then ctrl+c?

Thank you and it's been added to the issue tracker! Should be included in the next release :)

Re: Show HN: Share one-liner command snippets

#6
Nifty list of snippets. Would love it if the snippets could be expanded inline on the homepage instead of opening a new page for every snippet.

The carets on the left also give me the impression that the card will expand and reveal the snippet but then I am sent to a new page. Slightly annoying.

Re: Show HN: Share one-liner command snippets

#8

Like it! Feature request: when we click on the command line, select all the command line and copy it in the clipboard, instead of having to double click then ctrl+c?

Thank you and it's been added to the issue tracker! Should be included in the next release :)

Cool project! Are you considering any kind of vetting mechanism for sorting the great stuff from the less great stuff, e.g. user voting or similar?

Re: Show HN: Share one-liner command snippets

#10
Nice! One feature request. In snippets like these: https://snippets.shodan.io/c/BADsCL6DDfi4hSMM - can you add an input to modify the variables and copy the final one? It is umcofortable for me to copy it into the command line, edit the command with my values, and send it. It would be easier to just update DIR in the page and copy the final command. I hope I explained myself!
Post reply on HN