3 ms·
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
by wsxiaoys 9y ago
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 https://bash.rocks/w3nEB9
Compress png to webp: https://bash.rocks/YBbaJG https://bash.rocks/YBbaJG
Generate gif with curl, jq and ImageMagick: https://bash.rocks/NBXQ3w 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 https://bash.rocks/Gxlg31/3/api?url=i.imgur.com/1uYroRF.gif
which makes an obvious premium feature in future :p
- detaro 9y agoVery cool! The image integration is especially neat. What does the backend look like?
- wsxiaoys 9y agoIt'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.
- icebraining 9y agoSeems 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.
- c3RlcGhlbnI_ 9y agoWhat 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.