From 39ea90b2ff31760f93392634192c2a0614e20c82 Mon Sep 17 00:00:00 2001 From: Lizzy Hunt Date: Tue, 9 May 2023 21:49:06 -0700 Subject: export org mode to php; docker compose --- .dockerignore | 5 + docker-compose.yml | 25 ++++ export.sh | 5 + index.html | 386 ------------------------------------------------- index.org | 31 +++- index.php | 411 +++++++++++++++++++++++++++++++++++++++++++++++++++++ nginx.conf | 18 +++ 7 files changed, 493 insertions(+), 388 deletions(-) create mode 100644 .dockerignore create mode 100644 docker-compose.yml create mode 100755 export.sh delete mode 100644 index.html create mode 100644 index.php create mode 100644 nginx.conf diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..8793e2d --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +docker-compose.yml +*.conf +*.org +.git/ +*.sh diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..3fef4dc --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,25 @@ +version: '3.7' + +services: + web: + image: nginx:latest + ports: + - "8080:80" + volumes: + - ./nginx.conf:/etc/nginx/conf.d/default.conf + - ./:/var/www/html + depends_on: + - php + networks: + - app-network + + php: + image: php:7.4-fpm + volumes: + - ./:/var/www/html + networks: + - app-network + +networks: + app-network: + driver: bridge diff --git a/export.sh b/export.sh new file mode 100755 index 0000000..80499ca --- /dev/null +++ b/export.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +emacs index.org --batch -f org-html-export-to-html --kill +tail -n +4 index.html | tee index.php +rm index.html diff --git a/index.html b/index.html deleted file mode 100644 index 4e3e549..0000000 --- a/index.html +++ /dev/null @@ -1,386 +0,0 @@ - - - - - - - -simponic - - - - - - -
-

simponic

- - -
-

logo.svg -

-
- -
-

1. huh?

-
-

-yes, i stole that other guy's css. -

- -

-my name is elizabeth, or lizzy / liz if you're cool. i'm 19, president -of the USU FSLC, senior in computer science, blah blah blah… -also a filthy liberal :) -

- -

-sometimes, i make cool stuff that i'm proud of. like cheSSH! -

- -

-you didn't hear it here, but "swag" is one in active development. only -cool people know what it is, so keep it under wraps 🤫. -

-
- -
-

1.1. regulars be saddened, for we are now static

-
-

-i used to have a kinda cool site i built a few years back, to explore phoenix. -but i never ended up using the features i spent so -long making - a time card clock, contact form w/ captcha, dynamic blog -system with comments and roles, etc. it was one of my first full-stack -apps i did for fun, at the time; so pulling the plug was a little bittersweet. -

- -

-all you'll get here now, mostly, is black text and some of my takes. -whether they're good or bad is up to you, dear reader. -

-
-
-
- - - -
-

3. salaries

-
-

-i believe people would do good to openly share the money they make, to at -least "help" combat corporate greed. -

- - - - --- -- -- -- -- -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
agepositionstartendmonieswould work again?
19 - 19sde intern @ amazon pinpointmay 2023jul 2023$9180/month + ~$7k housing stipend for 12 weekscan't really say yet.
19 - 19student networking sdesep 2022may 2023 (coming back after summer '23)$18 / houryes. money is not great and i am underpaid, but the job is incredibly self motivating and chill. i work on cool stuff with cool people :)
18 - 18sde intern @ amazon pinpointmay 2022aug 2022$9180/month + ~$6k housing stipend for 12 weeksyes; i did
17 - 18contractor developer @ maiden voyageapr 2021nov 2021$13 / houreh, i was SEVERELY underpaid and thus bored, for the stuff i was doing in hindsight.
-
-
- -
-

4. things i like…

-
-
    -
  • elixir, lisp, c, (some aspects of) javascript. i don't really know how to feel about java, but i've used it the most out of anything.
  • -
  • math - algebra of abstract or linear variety, number theory, analysis, discrete. you name it. shove it in my brain already.
  • -
  • functional paradigms.
  • -
  • emacs.
  • -
  • linux.
  • -
  • chess.
  • -
  • minecraft.
  • -
  • democratic nations that practice social ideals to better the lives of its citizens rather than capital owners.
  • -
-
-
- -
-

5. things i'm not so much a fan of…

-
-
    -
  • c++ - when it's being cringe. which is unfortunately a lot of the fucking time.
  • -
  • "microshaft wangblows" - the phattest of sumos.
  • -
  • over-abstracted oop.
  • -
  • snap.
  • -
  • religion. but, like, only if it's mixed in with nationalism/conservatism. i have no qualms with religion or. -religious people in general, i just have some beef with mormons; mainly due to growing up very lds, in a small, -lds community.
  • -
  • cryptocurrency. actually, money in general lmao. not the biggest fan of markets i must say. though, i'm not smart -enough to find a good alternative in our fucked up world hehe.
  • -
-
-
-
- - \ No newline at end of file diff --git a/index.org b/index.org index 0098c69..f59b057 100644 --- a/index.org +++ b/index.org @@ -3,11 +3,38 @@ #+HTML_HEAD: #+HTML_HEAD_EXTRA: -#+OPTIONS: inlineimages +#+OPTIONS: inlineimages toc:nil #+STARTUP: fold + [[./img/logo.svg]] +#+BEGIN_EXPORT html + vim", + "functional programming on top", + "\"a baller, a shot caller, an arch linux installer\"", + "one distro to rule them all, and in the darkness bind them", + "proprietary software leads to anger, anger leads to hate, hate leads to suffering", + "i'll tell you once, and i'll tell you again. there's always a prime between n and 2n.", + "1. e4 e5 2. ke2", + ">++++++[<+++++++++>-]<.+++.-----.--.--.", + "it's certainly the year of the linux desktop", + "dwm is a sweet window manager", + "e^(iπ)+1 is cool!", + "lambda calculus isn't calculus!", + "also try minecraft!", + "the days are just packed", + "when will we have no-instruction-set-computing?", + "i'm r u r' u' and i know it" + ]; + echo "

" . $motds[array_rand($motds)] . "

"; +?> +#+END_EXPORT + + * huh? yes, i stole [[http://bettermotherfuckingwebsite.com][that other guy's css]]. @@ -20,7 +47,7 @@ sometimes, i make cool stuff that i'm proud of. like [[https://chessh.linux.usu. you didn't hear it here, but "swag" is one in active development. only cool people know what it is, so keep it under wraps 🤫. -** regulars be saddened, for we are now static +** regulars be saddened, for we are now (somewhat) static i used to have a kinda cool site i built a few years back, to explore [[https://www.phoenixframework.org/][phoenix]]. but i never ended up using the features i spent so long making - a time card clock, contact form w/ captcha, dynamic blog diff --git a/index.php b/index.php new file mode 100644 index 0000000..ad1c8e9 --- /dev/null +++ b/index.php @@ -0,0 +1,411 @@ + + + + + +simponic + + + + + + +
+

simponic

+ + +
+

logo.svg +

+
+ + vim", + "functional programming on top", + "\"a baller, a shot caller, an arch linux installer\"", + "one distro to rule them all, and in the darkness bind them", + "proprietary software leads to anger, anger leads to hate, hate leads to suffering", + "i'll tell you once, and i'll tell you again. there's always a prime between n and 2n.", + "1. e4 e5 2. ke2", + ">++++++[<+++++++++>-]<.+++.-----.--.--.", + "it's certainly the year of the linux desktop", + "dwm is a sweet window manager", + "e^(iπ)+1 is cool!", + "lambda calculus isn't calculus!", + "also try minecraft!", + "the days are just packed", + "when will we have no-instruction-set-computing?", + "i'm r u r' u' and i know it" + ]; + echo "

" . $motds[array_rand($motds)] . "

"; +?> + + +
+

1. huh?

+
+

+yes, i stole that other guy's css. +

+ +

+my name is elizabeth, or lizzy / liz if you're cool. i'm 19, president +of the USU FSLC, senior in computer science, blah blah blah… +also a filthy liberal :) +

+ +

+sometimes, i make cool stuff that i'm proud of. like cheSSH! +

+ +

+you didn't hear it here, but "swag" is one in active development. only +cool people know what it is, so keep it under wraps 🤫. +

+
+ +
+

1.1. regulars be saddened, for we are now (somewhat) static

+
+

+i used to have a kinda cool site i built a few years back, to explore phoenix. +but i never ended up using the features i spent so +long making - a time card clock, contact form w/ captcha, dynamic blog +system with comments and roles, etc. it was one of my first full-stack +apps i did for fun, at the time; so pulling the plug was a little bittersweet. +

+ +

+all you'll get here now, mostly, is black text and some of my takes. +whether they're good or bad is up to you, dear reader. +

+
+
+
+ + + +
+

3. salaries

+
+

+i believe people would do good to openly share the money they make, to at +least "help" combat corporate greed. +

+ + + + +++ ++ ++ ++ ++ ++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
agepositionstartendmonieswould work again?
19 - 19sde intern @ amazon pinpointmay 2023jul 2023$9180/month + ~$7k housing stipend for 12 weekscan't really say yet.
19 - 19student networking sdesep 2022may 2023 (coming back after summer '23)$18 / houryes. money is not great and i am underpaid, but the job is incredibly self motivating and chill. i work on cool stuff with cool people :)
18 - 18sde intern @ amazon pinpointmay 2022aug 2022$9180/month + ~$6k housing stipend for 12 weeksyes; i did
17 - 18contractor developer @ maiden voyageapr 2021nov 2021$13 / houreh, i was SEVERELY underpaid and thus bored, for the stuff i was doing in hindsight.
+
+
+ +
+

4. things i like…

+
+
    +
  • elixir, lisp, c, (some aspects of) javascript. i don't really know how to feel about java, but i've used it the most out of anything.
  • +
  • math - algebra of abstract or linear variety, number theory, analysis, discrete. you name it. shove it in my brain already.
  • +
  • functional paradigms.
  • +
  • emacs.
  • +
  • linux.
  • +
  • chess.
  • +
  • minecraft.
  • +
  • democratic nations that practice social ideals to better the lives of its citizens rather than capital owners.
  • +
+
+
+ +
+

5. things i'm not so much a fan of…

+
+
    +
  • c++ - when it's being cringe. which is unfortunately a lot of the fucking time.
  • +
  • "microshaft wangblows" - the phattest of sumos.
  • +
  • over-abstracted oop.
  • +
  • snap.
  • +
  • religion. but, like, only if it's mixed in with nationalism/conservatism. i have no qualms with religion or. +religious people in general, i just have some beef with mormons; mainly due to growing up very lds, in a small, +lds community.
  • +
  • cryptocurrency. actually, money in general lmao. not the biggest fan of markets i must say. though, i'm not smart +enough to find a good alternative in our fucked up world hehe.
  • +
+
+
+
+
+

Created: 2023-05-09 Tue 21:48

+

Validate

+
+ + diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..4b84b34 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,18 @@ +server { + listen 80; + index index.php index.html; + server_name localhost; + error_log /var/log/nginx/error.log; + access_log /var/log/nginx/access.log; + root /var/www/html; + + location ~ \.php$ { + try_files $uri =404; + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_pass php:9000; + fastcgi_index index.php; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param PATH_INFO $fastcgi_path_info; + } +} -- cgit v1.3