Show HN: Curl lama.sh – sh to start a web server anywhere
1–9 of 9 posts
Re: Show HN: Curl lama.sh – sh to start a web server anywhere
#2Re: Show HN: Curl lama.sh – sh to start a web server anywhere
#3So, this just downloads a web server written in Go and runs it? Why isn't this more explicit?
However, it does the downloading/starting in a really convenient manner. I wanted something I could just quickly type into a terminal without having to browse some GitHub release page.
Re: Show HN: Curl lama.sh – sh to start a web server anywhere
#4Re: Show HN: Curl lama.sh – sh to start a web server anywhere
#5I'm sure the author here has good intentions but, this is aimed at beginners (I'll assume, doubt anyone reasonably experienced would humor this) and teaching them a terrible idea.
Re: Show HN: Curl lama.sh – sh to start a web server anywhere
#6Re: Show HN: Curl lama.sh – sh to start a web server anywhere
#7Why not `python3 -m http.server`?
I got a tad fed up with having to remember the line for Python, Node and Ruby. This one works as long as you have bash and curl.
Re: Show HN: Curl lama.sh – sh to start a web server anywhere
#8Fair warning to users, you should never ever pipe something from the web directly into a shell. I'm sure the author here has good intentions but, this is aimed at beginners (I'll assume, doubt anyone reasonably experienced would humor this) and teaching them a terrible idea.
That said, prior to piping anything to a shell it's advisable to inspect what is about to be executed. That's why the lama.sh script is super simple, as is the code of the web server it downloads and executes.
Re: Show HN: Curl lama.sh – sh to start a web server anywhere
#9When are you dropping a cryptominer into it? ;-)
(but then, what else should I say :D)