From 2140ab51deed88e90eafebf9520fa5f9995dc7c9 Mon Sep 17 00:00:00 2001 From: twells46 <173561638+twells46@users.noreply.github.com> Date: Wed, 31 Dec 2025 13:28:05 -0600 Subject: Migrate from stow --- private_dot_local/bin/executable_css-httpd.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 private_dot_local/bin/executable_css-httpd.sh (limited to 'private_dot_local/bin/executable_css-httpd.sh') diff --git a/private_dot_local/bin/executable_css-httpd.sh b/private_dot_local/bin/executable_css-httpd.sh new file mode 100644 index 0000000..4f4b8c8 --- /dev/null +++ b/private_dot_local/bin/executable_css-httpd.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +PORT=4646 +CSS_FILE="/home/tom/.local/share/nb/style.css" + +while true; do + { + printf 'HTTP/1.1 200 OK\r\n' + printf 'Content-Type: text/css\r\n' + printf 'Content-Length: %d\r\n' "$(wc -c < "$CSS_FILE")" + printf 'Connection: close\r\n' + printf '\r\n' + cat "$CSS_FILE" + } | nc -l "$PORT" +done -- cgit v1.2.3