back

by wsxiaoys·9y ago·view on hn ↗
Hey HN, bash.rock is my latest side project, a bash interpreter in cloud, it comes with many utilities like curl, Python, ImageMagick, jq, etc.

Below are some snippet I created:

Generate random corporate bullshit: https://bash.rocks/w3nEB9

Compress png to webp: https://bash.rocks/YBbaJG

Generate gif with curl, jq and ImageMagick: https://bash.rocks/NBXQ3w

Any suggestions / feedback welcome! :)

---

A more interesting feature I haven't fully finished is to turn your random bash snippet into an HTTP web service, like https://bash.rocks/Gxlg31/3/api?url=i.imgur.com/1uYroRF.gif

which makes an obvious premium feature in future :p

3 comments
What would make it really powerful/useful is toggle that switches the current source to an interactive mode that runs new lines as you press enter.
Seems like an interesting project! Unfortunately it doesn't show any output for me. I can see in the network inspector that the GET to /stdout returns the text, but it's not shown on the screen.

I'm on Firefox 49 on Debian, by the way.

Very cool! The image integration is especially neat.

What does the backend look like?

It's a Cloud Function running in Cloud, with customized node package dependencies (so I could pull stuff like jq, webp in).

Thanks to a fully managed container environment, I don't have to worry too much about security stuff.