This is crazy, 4 days ago i made a bash script for Directory indexing, and now YT recommended this vid, with htmx feels like React or something like that . Nice video
Wait wait, I was just focussing back on bash (as this is the very first language you encounter when connecting to a linux server) and I found your vid. Cool but does this language scale ? I assume that you could everything with that language but up to which level ? Thanks
Very cool video. I had to go into apache settings for arch: /etc/httpd/conf/httpd.conf and uncomment several cgi options for the code to work; otherwise it would just echo the shell command. Also had to use hx-swap="appendChild" instead.
The blank line is an HTTP thing, the blank line indicates the end of your headers and the beginning of the content. Without it your browser is expecting your HTML to be more headers. It's gotten me every time I try to do anything with HTTP.
Yes that would be interesting! I made a video on recutils so you could use that ;) Also if you wanted to go full send you could probably quite easily use something like MySQL or SQLite for a proper backend :)
Yes that is true, the bash script is running on the server not in the browser like javascript would. But with the cgi you can take existing languages that you know (like bash!) and allow users to run them from a web browser so it's effectively the same thing ;)
I did something similar using yad gui. yad gui has a --html switch (Dialog) that displays a webpage in its gui windowing on Linux. I created custom links to run bash commands in "child bash terminal" using the yad gui --html page with --print-uri switch. Here is that video. ruclips.net/video/fZefanmi1xQ/видео.html I will have to test your cgi method in a yad gui dual window "--paned" DIalog. (Thanks for sharing cgi - apache method !!!)
This video makes the minimalist geek in me very happy. Great video Mark.
Haha thank you!
This is crazy, 4 days ago i made a bash script for Directory indexing, and now YT recommended this vid, with htmx feels like React or something like that . Nice video
Also to make it refresh REALLY without JS, you just add a to your head tag.
Yeah I just wanted to show of HTMX because it blew my mind with how nice it was to use :)
I was just going to suggest this one... ;-)
Wait wait, I was just focussing back on bash (as this is the very first language you encounter when connecting to a linux server) and I found your vid. Cool but does this language scale ? I assume that you could everything with that language but up to which level ? Thanks
Very cool video. I had to go into apache settings for arch: /etc/httpd/conf/httpd.conf and uncomment several cgi options for the code to work; otherwise it would just echo the shell command. Also had to use hx-swap="appendChild" instead.
The blank line is because in HTTP an empty line denotes the end of the HTTP Headers and the beginning of the HTTP Body
Thanks!
The blank line is an HTTP thing, the blank line indicates the end of your headers and the beginning of the content. Without it your browser is expecting your HTML to be more headers. It's gotten me every time I try to do anything with HTTP.
This could come in handy for my project
This is chad content
The way i used this was by creating bash scripts that use imagemagik for image manipulation and then calling them through express js apis routes
Id really like to know how far you can take this. For a db you could use something like recutils.
Yes that would be interesting! I made a video on recutils so you could use that ;) Also if you wanted to go full send you could probably quite easily use something like MySQL or SQLite for a proper backend :)
@@MarkMcNallyJE yeah! I just love the idea of easily writing an entry with a text editor! Makes things more fun.
Would be good for a simple testing db. Plus you can export it to a csv and import that into SQL
If you make something cool let me know - I would love to see it!
Curious which floating window manager / desktop environment that is. :)
it's completely default i3 :)
can we also do this with nginx?
Wouldnt bash behaves like any other scripting language? Bash here is not running on the browser but on the server, basically, it's how PHP works.
Yes that is true, the bash script is running on the server not in the browser like javascript would. But with the cgi you can take existing languages that you know (like bash!) and allow users to run them from a web browser so it's effectively the same thing ;)
Thank you
🤣🤣🤣 Fight that javascriptieeeeesssss!!! 🤣🤣🤣
YEAH BUDDDDDYYYYY
If it ia the JavaScript Revolution, wouln't make you a counterrevolutionary? A reactionary?
traditionalist I would say
Can you use this to run Discord without crashing ?
Maybe with a monumental amount of effort.
I did something similar using yad gui. yad gui has a --html switch (Dialog) that displays a webpage in its gui windowing on Linux. I created custom links to run bash commands in "child bash terminal" using the yad gui --html page with --print-uri switch. Here is that video. ruclips.net/video/fZefanmi1xQ/видео.html I will have to test your cgi method in a yad gui dual window "--paned" DIalog. (Thanks for sharing cgi - apache method !!!)
I hate javascript so much it's unreal