HNHacker News
TopNewBestAskShowJobs

dzove855

204 karma · joined October 30, 2020

submissionscomments
dzove855··on Show HN: Simple process manager written in Rust for Docker containers
Seema pretty interesting! Would be nice to remove the shell dependancy
dzove855··on Pure Bash Web Server
Hello,

You could avoid loadables.

Finfo <- load file inside a variable and get the size Mktemp <- like you said with timestamp Rm <- with a fifo or variable

dzove855··on Pure Bash Web Server
Creator here:

I'm really happy to see somebody shared it on hackernews :D If you have some questions, feel free to ask me

dzove855··on A simple web server written in Awk
it is already in my mind creating a bind to something like libressl or rustssl, but it will be much more complicated.
dzove855··on A simple web server written in Awk
Actually, bash has now a loadable builtin to listen on tcp socket. I wrote a script and the patch. https://github.com/dzove855/Bash-web-server

The patch is now included in bash 5.2

dzove855··on Show HN: Pihole-Doh as a Service
https://dzove855-pihole-doh.saashup.com/

https://saashup.com

https://github.com/dzove855/pihole-doh

dzove855··on Show HN: Saashup Micro SaaS Platform
The big difference is that saashup offers developers a platform to host they applications to third party people.

The platform is free for the developper to host the applications, the only one who is paying is the person which use your application.

dzove855··on Show HN: Saashup Micro SaaS Platform
One of the worker here:

The applications are all docker instances, this allows us to provide an environment cheapest then hosting a virtual machine or a dedicated instance.

dzove855··on Show HN: Saashup Micro SaaS Platform
Welcome to the new era of micro saas! Our company has established itself as the leading digital micro saas platform in France. Since when? Since 2020, we've been supporting individuals and businesses who want to create their own saas easily, with just a few clicks, and in just a few seconds.

But what's exactly Saashup ?

Saashup is a simple solution for saasifying your application. We assist you in promoting your application and simplifying its management. Build and develop your software, and let us deploy it to your customers through your own customized SaaS. Our services remain flexible and scalable, adapting to your business needs.

dzove855··on Show HN: bashttp - a very (very) simple web server in Bash
Like this you can do it without nc https://github.com/dzove855/Bash-web-server
dzove855··on Show HN: bashttp - a very (very) simple web server in Bash
Creator here of this server.

: = does nothing but the := in the variable declariation will assign set the value of BASH_LOADABLE_PATH to /usr/lib/bash if the variable is empty.

So instead of writing: BASH_LOADABLE_PATH=${BASH_LOADABLE_PATH:-/usr/lib/bash}

you can just do : : "${BASH_LOADABLE_PATH:=/usr/lib/bash}"

dzove855··on Show HN: A pure bash web server. No netcat, socat, etc.
No need of tr here in your example.

The fd will only be used to stor it temporary since, we first need to sent headers, and the headers need to be sent before the bofy. The server base os working fine now with accept and a patch request os already sent to bash. So probaböy on the next release accept will be full usable.

dzove855··on Show HN: A pure bash web server. No netcat, socat, etc.
Since now, multiple concurrent connections will work after my patch. (Need to add subshell) i will need to consider using fd as output cache. Instead of temporary files.
dzove855··on Show HN: A pure bash web server. No netcat, socat, etc.
The project has been patched, now we can handle multiple connections!
dzove855··on Show HN: A pure bash web server. No netcat, socat, etc.
I follow some projects from you on github. Keep up the work!

Falling back to something like socat, would destroy the whole idea behind it. I think the best way is patching accept and shipping it with the project. Like this no need to fallback.

And considering using something like socat, will force you to fork each request into a new process, which will be slow as hell. I worked before on a web framework, which was used behind httpd or nginx as cgi, it was fast. But the moment where you get more connections it was slow as hell.

The idea of this project is writing some kind of fastCGI (like php-fpm), but for this i would need, to allow multithreading etc..

dzove855··on Show HN: A pure bash web server. No netcat, socat, etc.
For creating some kind IPC, i would create a named fifo or even use coproc (see man bash)
dzove855··on Show HN: A pure bash web server. No netcat, socat, etc.
to avoid external calls
dzove855··on Show HN: A pure bash web server. No netcat, socat, etc.
Well just type: help BUILTIN

Example : help read

dzove855··on Show HN: A pure bash web server. No netcat, socat, etc.
Well benchmarking it os currently not possible. I will try it in a few days and provide some benchmarks.
dzove855··on Show HN: A pure bash web server. No netcat, socat, etc.
Well that's true. I took me two hours to get this done. Since accept was not clear at the beginning. But it will be cleaner in the future, i'm still not convinced how it works currently.
dzove855··on Show HN: A pure bash web server. No netcat, socat, etc.
Bash is not mean for kind of projects like this. I even develop on other languages. But i like bash. A good bash script, is like reading a novel, because it's challenging to have a clean script.
dzove855··on Show HN: A pure bash web server. No netcat, socat, etc.
I always use mktemp and trap to remove tmp files.

But in this script i would like to avoid external commands. I will even remove the use of tmp files kn thw future.

dzove855··on Show HN: A pure bash web server. No netcat, socat, etc.
Basically yes, but it's a loadable builtin.
dzove855··on Show HN: A pure bash web server. No netcat, socat, etc.
Yeah sure. I have see it, but basically this one use bash builtins instead of external commands.
dzove855··on Show HN: A Bash Web Framework
That was the idea behind it, make it readable and plugable for everyone. A good documentation is still missing for all the helper functions, but one day it will be there.
dzove855··on Show HN: A Bash Web Framework
A simple bash framework with the possibility to write API and web apps.

Examples: https://github.com/dzove855/yoctapi

The api will even audit every request and it's to implement other methods.

Database plugin: https://github.com/dzove855/libyosh-gateway

dzove855··on Small Devtodo Equivalent in Bash
A simple devtodo equivalent in bash. Work is still in progress and requirements are >=bash4.4.

Probably it will be rewritten in bash5 and use loadable builtins for mkdir and rm, so mv can be removed also.