HackerTrans
TopNewTrendsCommentsPastAskShowJobs

dzove855

no profile record

Submissions

Show HN: Pihole-Doh as a Service

2 points·by dzove855·3 ปีที่แล้ว·1 comments

Show HN: Saashup Micro SaaS Platform

saashup.com
4 points·by dzove855·3 ปีที่แล้ว·6 comments

Show HN: A BashPrompt command Timer – reborn the bash prompt

github.com
1 points·by dzove855·4 ปีที่แล้ว·0 comments

[untitled]

1 points·by dzove855·4 ปีที่แล้ว·0 comments

[untitled]

1 points·by dzove855·5 ปีที่แล้ว·0 comments

Show HN: A pure bash web server. No netcat, socat, etc.

github.com
224 points·by dzove855·5 ปีที่แล้ว·97 comments

[untitled]

1 points·by dzove855·5 ปีที่แล้ว·0 comments

Show HN: A Bash Web Framework

github.com
7 points·by dzove855·5 ปีที่แล้ว·3 comments

Show HN: Bar a simple archive tool in bash

github.com
2 points·by dzove855·5 ปีที่แล้ว·0 comments

Show HN: A simple archive tool in pure bash using base64 and stat

github.com
2 points·by dzove855·5 ปีที่แล้ว·0 comments

Show HN: Minimal Devtodo Replacement in Bash

github.com
1 points·by dzove855·5 ปีที่แล้ว·0 comments

comments

dzove855
·2 ปีที่แล้ว·discuss
Seema pretty interesting! Would be nice to remove the shell dependancy
dzove855
·2 ปีที่แล้ว·discuss
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
·2 ปีที่แล้ว·discuss
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
·3 ปีที่แล้ว·discuss
it is already in my mind creating a bind to something like libressl or rustssl, but it will be much more complicated.
dzove855
·3 ปีที่แล้ว·discuss
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
·3 ปีที่แล้ว·discuss
https://dzove855-pihole-doh.saashup.com/

https://saashup.com

https://github.com/dzove855/pihole-doh
dzove855
·3 ปีที่แล้ว·discuss
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
·3 ปีที่แล้ว·discuss
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
·3 ปีที่แล้ว·discuss
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
·4 ปีที่แล้ว·discuss
Like this you can do it without nc https://github.com/dzove855/Bash-web-server
dzove855
·4 ปีที่แล้ว·discuss
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
·5 ปีที่แล้ว·discuss
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
·5 ปีที่แล้ว·discuss
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
·5 ปีที่แล้ว·discuss
The project has been patched, now we can handle multiple connections!
dzove855
·5 ปีที่แล้ว·discuss
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
·5 ปีที่แล้ว·discuss
For creating some kind IPC, i would create a named fifo or even use coproc (see man bash)
dzove855
·5 ปีที่แล้ว·discuss
to avoid external calls
dzove855
·5 ปีที่แล้ว·discuss
Well just type: help BUILTIN

Example : help read
dzove855
·5 ปีที่แล้ว·discuss
Well benchmarking it os currently not possible. I will try it in a few days and provide some benchmarks.
dzove855
·5 ปีที่แล้ว·discuss
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.