From 8e09d75db41961ed72b0d12dcb5337049dda77ac Mon Sep 17 00:00:00 2001 From: Elizabeth Alexander Hunt Date: Thu, 23 Jul 2026 09:03:12 -0700 Subject: PHP --- Dockerfile | 20 +++----- html/index.html | 142 -------------------------------------------------------- html/index.php | 141 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ nginx.conf | 19 +++++++- 4 files changed, 165 insertions(+), 157 deletions(-) delete mode 100644 html/index.html create mode 100644 html/index.php diff --git a/Dockerfile b/Dockerfile index b6d642c..18fb23b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,14 @@ -#FROM node:22-alpine AS builder -# -#WORKDIR /app -# -#COPY package*.json ./ -#RUN npm install -# -#COPY . . -# -#RUN npm run build - FROM nginx:alpine AS lizdotcoffee -# COPY --from=builder /app/_site /usr/share/nginx/html +RUN apk add --no-cache php84 php84-fpm \ + && sed -i 's/^listen = .*/listen = 127.0.0.1:9000/' /etc/php84/php-fpm.d/www.conf \ + && sed -i 's/^user = .*/user = nginx/;s/^group = .*/group = nginx/' /etc/php84/php-fpm.d/www.conf + +RUN rm -f /usr/share/nginx/html/index.html /usr/share/nginx/html/50x.html + COPY html /usr/share/nginx/html COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80 -CMD ["nginx", "-g", "daemon off;"] +CMD ["sh", "-c", "php-fpm84 -D && nginx -g 'daemon off;'"] diff --git a/html/index.html b/html/index.html deleted file mode 100644 index 58f0f88..0000000 --- a/html/index.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - -liz.coffee - - - -

Elizabeth Hunt (she) (ca 2003)

-
- [me at Li(z) dot coffee (mailto)] · - [git hub] · - [linkedin] · - [instagram] · - [twitter] -
- - If you don't like the marquee tag then she will find you and she will blast you to smithereens. -
- -

She is not particularly exceptional at anything, but can functionally do a fair bit of stuff, of which extremely variable ability perhaps is the only exceptional thing about her.

-

Koupenchan becomes the color of what it drinks
- -

She is a programmer at a Big Ol' Tech™ company in Seattle (unfortunately, probably the one you're thinking of). And will continue to refer to herself in the third person for the remainder of this World Wide Web document, which you find yourself laying your eyes on. And in so doing, probably don't yet understand the context of the next words you are about to read. Except, that they are there. They take up space. And reading through them consumes YOUR oh-so-precious time - of which sup ∈ ℝ+, need she remind you.

-

penguin slop that would be populated if you had your EPIC JAVASCRIPT enabled

- -

She enjoys recreational programming and searching the space of math and CS outside of work; some of her current interests are in PLs, type theory, game programming (<3 pico8), and homelab stuff. She was an advocate of LISPy stuff while president of the USU Free Software and Linux Club, she still can't shake off Emacs and probably should augment her hand accordingly.

- -

When not doing computer stuff, she runs, bikes, watches anime, rides trains, reads, or bakes bread. She may be heard practicing violin or speedcubing. Penguins are absolutely fascinating to her, and she collects books on said species as well as plenty of stuffed animals, and visits them when possible. Maybe she will one day (soon?) reincarnate to be one.

- -

She is a vegetarian (except for when it comes to billionaires) arch user (you know because she just told you), bicycle, poly, and a bit fucked up.

- -

Gus! Bread!

-
-
-
- -
-
-

I jam to this so hard so I'm putting it on my website:

- -
- - - - - diff --git a/html/index.php b/html/index.php new file mode 100644 index 0000000..12660e8 --- /dev/null +++ b/html/index.php @@ -0,0 +1,141 @@ +%s', + $id, $next, $id, htmlspecialchars($forms[$p], ENT_QUOTES) + ); +} + +$words = [ + 'article' => ['the', 'a', 'every', 'some', 'one', 'that'], + 'adjective' => ['cute', 'waterproof', 'fluffy', 'yellow-eyed', 'sleepy', 'enormous', 'polite', + 'damp', 'well-loved', 'smug', 'round', 'salty', 'windswept', 'tiny'], + 'species' => ['fairy', 'rockhopper', 'adelie', 'gentoo', 'emperor', 'chinstrap', 'king', + 'macaroni', 'little blue'], + 'subject' => ['penguin', 'chick', 'colony', 'creche', 'huddle', 'raft', 'Pen Pen', + 'Koupenchan', 'flipper', 'beak', 'egg', 'nest'], + 'adverb' => ['quietly', 'eagerly', 'rarely', 'sideways', 'smugly', 'almost', 'solemnly', + 'briskly', 'suspiciously', 'twice'], + 'verb' => ['waddles', 'toboggans', 'steals', 'polishes', 'guards', 'misplaces', 'pecks at', + 'preens', 'dives for', 'cuddles', 'counts', 'hoards', 'trades'], + 'object' => ['a pebble', 'the nest', 'three krill', 'a shiny fish', 'its egg', 'the whole colony', + 'a stray feather', 'a spare flipper', 'the last herring', "someone's chick", + 'a very good rock', 'the ice shelf'], + 'ending' => ['after the endless summer', 'on the ice shelf', 'without warning', 'in the huddle', + 'for no reason', 'under a glacier', 'beneath the waves', + 'at the rookery', 'during the blizzard', 'again'], + 'end' => ['Squawk.', 'Noot?', 'Gak!', 'Shuffle.', 'Waddle.'], +]; + +$patterns = [ + ['article', 'adjective', 'species', 'subject', 'adverb', 'verb', 'object'], + ['article', 'species', 'subject', 'verb', 'object', 'ending'], + ['article', 'adjective', 'subject', 'verb', 'object', 'ending'], + ['article', 'subject', 'adverb', 'verb', 'object'], + ['article', 'adjective', 'subject', 'adverb', 'verb', 'object', 'ending'], +]; + +$rand = fn(array $list) => $list[array_rand($list)]; + +$gen = function () use ($words, $patterns, $rand) { + $text = implode(' ', array_map(fn($cat) => $rand($words[$cat]), $rand($patterns))); + $out = ucfirst($text) . '.'; + return mt_rand(0, 3) === 0 ? $out . ' ' . $rand($words['end']) : $out; +}; + +$n = 5 + mt_rand(0, 5); +$penguin = implode(' ', array_map($gen, range(1, $n))); +?> + + + + + + +liz.coffee + + + +

Hunt () (ca 2003)

+
+ [me at Li(z) dot coffee (mailto)] · + [git hub] · + [linkedin] · + [instagram] · + [twitter] +
+ + If you don't like the marquee tag then will find you and will blast you to smithereens. +
+ +

is not particularly exceptional at anything, but can functionally do a fair bit of stuff, of which extremely variable ability perhaps is the only exceptional thing about .

+

Koupenchan becomes the color of what it drinks
+ +

is a programmer at a Big Ol' Tech™ company in Seattle (unfortunately, probably the one you're thinking of). And will continue to refer to self in the third person for the remainder of this World Wide Web document, which you find yourself laying your eyes on. And in so doing, probably don't yet understand the context of the next words you are about to read. Except, that they are there. They take up space. And reading through them consumes YOUR oh-so-precious time - of which sup ∈ ℝ+, need remind you.

+

+ +

enjoys recreational programming and searching the space of math and CS outside of work; some of current interests are in PLs, type theory, game programming (<3 pico8), and homelab stuff. was an advocate of LISPy stuff while president of the USU Free Software and Linux Club, still can't shake off Emacs and probably should augment hand accordingly.

+ +

When not doing computer stuff, runs, bikes, watches anime, rides trains, reads, or bakes bread. may be heard practicing violin or speedcubing. Penguins are absolutely fascinating to , and collects books on said species as well as plenty of stuffed animals, and visits them when possible. Maybe will one day (soon?) reincarnate to be one.

+ +

is a vegetarian (except for when it comes to billionaires) arch user (you know because just told you), bicycle, poly, and a bit fucked up.

+ +

Gus! Bread!

+
+
+
+ +
+
+

I jam to this so hard so I'm putting it on my website:

+ +
+ + + + diff --git a/nginx.conf b/nginx.conf index 532232e..81c496c 100644 --- a/nginx.conf +++ b/nginx.conf @@ -2,7 +2,7 @@ server { listen 80; server_name _; root /usr/share/nginx/html; - index index.html; + index index.php index.html; location ~* \.html$ { add_header Cache-Control "no-cache, no-store, must-revalidate"; @@ -10,11 +10,26 @@ server { add_header Expires "0"; } + location ~* \.php$ { + add_header Cache-Control "no-cache, no-store, must-revalidate"; + add_header Pragma "no-cache"; + add_header Expires "0"; + + try_files $uri =404; + fastcgi_pass 127.0.0.1:9000; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + } + location = / { add_header Cache-Control "no-cache, no-store, must-revalidate"; add_header Pragma "no-cache"; add_header Expires "0"; - try_files /index.html =404; + + fastcgi_pass 127.0.0.1:9000; + fastcgi_param SCRIPT_FILENAME $document_root/index.php; + include fastcgi_params; } location ~* \.(jpg|jpeg|png|gif|ico|css|js|svg|woff|woff2|ttf|eot|mp4|webm)$ { -- cgit v1.3