Show HN: Share one-liner command snippets
snippets.shodan.io
snippets.shodan.io
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:
$ curl wttr.in/
Not sure if I'd use it much, but it is nifty!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.
$ shodan stats --facets state:50 country:US tag:ics
You might want to add an obvious link on the site explaining what this "shodan" command is and where to get it.I have never heard of "shodan", and have been using Unix and Unix-like systems since Seventh Edition (or maybe Sixth Edition...). Brew doesn't know about it on my Mac, and apt-cache doesn't know about it on my Debian system.
Going to the top level of your site (which should also have a link on the snippets page), I see that Shodan is some kind of search engine for IoT networks?
From there, I got to the developer site, and found it:
Note: it appears that you have to have a shodan API key to actually use it.
2. Having each one-liner open in its own page seems vaguely unsettling, especially since the description of each on the first page starts with "»". That symbol will suggest to many that the line contains collapsed content, and clicking should expand it to show the snipped. I think that kind of interface would work a lot better (especially if there was an option to expand and collapse all).
Something with thicker lines would be great
Nice work!