News for hackers. Stuff that matters.

dzove855

Seema pretty interesting! Would be nice to remove the shell dependancy
Re:Pure Bash Web Server on Friday February 16, 2024 @12:12PM (#39399877)
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

Re:Pure Bash Web Server on Friday February 16, 2024 @10:00AM (#39397908)
Creator here:

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

Re:A simple web server written in Awk on Wednesday September 20, 2023 @04:10PM (#37589483)
it is already in my mind creating a bind to something like libressl or rustssl, but it will be much more complicated.
Re:A simple web server written in Awk on Wednesday September 20, 2023 @09:57AM (#37584182)
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

Show HN: Pihole-Doh as a Service

Pihole-doh is pihole with dns over https support.Thanks to saashup we could provide pihole-doh as a service.The work is still in progress, because we need to do a few fix on saashup. All gains will be donated to pihole project.

( Read More... | 1 comment | 2 points | on HN )
Re:Show HN: Saashup Micro SaaS Platform on Friday June 16, 2023 @10:35AM (#36357207)
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.

Re:Show HN: Saashup Micro SaaS Platform on Friday June 16, 2023 @10:16AM (#36356925)
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.

Re:Show HN: Saashup Micro SaaS Platform on Friday June 16, 2023 @10:05AM (#36356785)
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.

Like this you can do it without nc https://github.com/dzove855/Bash-web-server
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}"

Re:Show HN: A pure bash web server. No netcat, socat, etc. on Friday January 07, 2022 @04:19PM (#29844979)
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.

Re:Show HN: A pure bash web server. No netcat, socat, etc. on Friday January 07, 2022 @02:48PM (#29843793)
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.
Re:Show HN: A pure bash web server. No netcat, socat, etc. on Friday January 07, 2022 @05:35AM (#29837492)
The project has been patched, now we can handle multiple connections!
Re:Show HN: A pure bash web server. No netcat, socat, etc. on Wednesday January 05, 2022 @05:30AM (#29807379)
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..

Re:Show HN: A pure bash web server. No netcat, socat, etc. on Wednesday January 05, 2022 @03:10AM (#29806418)
For creating some kind IPC, i would create a named fifo or even use coproc (see man bash)
Re:Show HN: A pure bash web server. No netcat, socat, etc. on Tuesday January 04, 2022 @03:39PM (#29800112)
to avoid external calls
Re:Show HN: A pure bash web server. No netcat, socat, etc. on Tuesday January 04, 2022 @02:57PM (#29799417)
Well just type: help BUILTIN

Example : help read

Re:Show HN: A pure bash web server. No netcat, socat, etc. on Tuesday January 04, 2022 @12:48PM (#29797571)
Well benchmarking it os currently not possible. I will try it in a few days and provide some benchmarks.
Re:Show HN: A pure bash web server. No netcat, socat, etc. on Tuesday January 04, 2022 @11:16AM (#29796450)
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.
Re:Show HN: A pure bash web server. No netcat, socat, etc. on Tuesday January 04, 2022 @11:01AM (#29796228)
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.
Re:Show HN: A pure bash web server. No netcat, socat, etc. on Tuesday January 04, 2022 @10:52AM (#29796092)
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.

Re:Show HN: A pure bash web server. No netcat, socat, etc. on Tuesday January 04, 2022 @09:55AM (#29795393)
Basically yes, but it's a loadable builtin.
Re:Show HN: A pure bash web server. No netcat, socat, etc. on Tuesday January 04, 2022 @09:54AM (#29795383)
Yeah sure. I have see it, but basically this one use bash builtins instead of external commands.
Re:Show HN: A Bash Web Framework on Monday December 27, 2021 @03:13AM (#29700528)
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.
Re:Show HN: A Bash Web Framework on Thursday December 23, 2021 @03:36AM (#29659882)
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

Older »