Better HN
topnewbestaskshowjobs
Log inSign up

dzove855

204 karma · joined Oct 30, 2020 (6y ago) · 40 submissions

Submissions

comment 2y ago · link · parent

Seema pretty interesting! Would be nice to remove the shell dependancy

comment 2y ago · link · parent

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

comment 2y ago · link · parent

Creator here:

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

comment 3y ago · link · parent

it is already in my mind creating a bind to something like libressl or rustssl, but it will be much more complicated.

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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

https://saashup.com

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

7.

Show HN: Pihole-Doh as a Service

2 points · by dzove855 · 3y ago · 1 comment

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

11.

Show HN: Saashup Micro SaaS Platform(saashup.com ↗)

4 points · by dzove855 · 3y ago · 6 comments

12.

Show HN: A BashPrompt command Timer – reborn the bash prompt(github.com ↗)

1 points · by dzove855 · 4y ago · discuss

comment 4y ago · link · parent

Like this you can do it without nc https://github.com/dzove855/Bash-web-server

comment 4y ago · link · parent

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}"

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

The project has been patched, now we can handle multiple connections!

comment 4y ago · link · parent

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..

comment 4y ago · link · parent

For creating some kind IPC, i would create a named fifo or even use coproc (see man bash)

comment 4y ago · link · parent

to avoid external calls

comment 4y ago · link · parent

Well just type: help BUILTIN

Example : help read

comment 4y ago · link · parent

Well benchmarking it os currently not possible. I will try it in a few days and provide some benchmarks.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

Basically yes, but it's a loadable builtin.

comment 4y ago · link · parent

Yeah sure. I have see it, but basically this one use bash builtins instead of external commands.
12