this post was submitted on 08 Jan 2025
46 points (97.9% liked)

Programming

17868 readers
248 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
 

Saw this on: https://donotsta.re/notice/ApmsQzRYt4SeNH543k

So wanted to share.

top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 20 points 1 week ago

First off, big respect to the author for taking on this endeavour and procuring themselves permanent scars in the process. Second of all, I will hide back in my cave, thanks

[–] towerful 13 points 1 week ago* (last edited 1 week ago) (1 children)

The repo: https://git.sakamoto.pl/laudom/http.sh

An example:

#!/bin/bash
echo '<html><head><meta charset="utf-8"></head><body>'

if [[ ! "${get_data[example]}" ]]; then
	echo '<form>
			<input type="text" name="example">
			<input type="submit">
		</form>'
else
	echo "<p>you sent: $(html_encode "${get_data[example]}")</p>"
fi

echo '</body></html>'

[–] [email protected] 10 points 1 week ago* (last edited 1 week ago)

Its so....ugly to me but someone wanted it. Better than Cobol on wheelchair framework thats for sure.

[–] moonpiedumplings 2 points 1 week ago