From a5f5be5483d84e2460c9219a7e70bdb5895319bc Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Fri, 18 Dec 2020 02:51:31 +0000 Subject: [PATCH] more words Signed-off-by: Christine Dodrill --- journal/12-15-2020-quarantine-5.gmi | 36 +++++++++++++++++++++++ journal/12-16-2020-quarantine-6.gmi | 19 +++++++++++++ journal/12-17-2020-quarantine-7.gmi | 18 ++++++++++++ journal/atom.xml | 28 +++++++++--------- journal/index.gmi | 44 +++++++++++++++-------------- 5 files changed, 110 insertions(+), 35 deletions(-) create mode 100644 journal/12-16-2020-quarantine-6.gmi create mode 100644 journal/12-17-2020-quarantine-7.gmi diff --git a/journal/12-15-2020-quarantine-5.gmi b/journal/12-15-2020-quarantine-5.gmi index a3baeca..06b559a 100644 --- a/journal/12-15-2020-quarantine-5.gmi +++ b/journal/12-15-2020-quarantine-5.gmi @@ -21,3 +21,39 @@ I'm considering making a pubnix for a community I'm a part of. It'd have a few s This is probably gonna end up being a bad idea, but meh yolo. +## 21:30 + +I'm playing with my gemini framework in Go for Rhea[1] some more and I managed to implement reverse proxying in an impressively small amount of code: + +```go +package main + +import ( + "crypto/tls" + "fmt" + "io" + "math/rand" + + "github.com/Xe/rhea/gemini" +) + +type ReverseProxy struct { + To []string `json:"to"` + Domain string `json:"domain"` +} + +func (rp ReverseProxy) HandleGemini(w gemini.ResponseWriter, r *gemini.Request) { + conn, err := tls.Dial("tcp", rp.To[rand.Intn(len(rp.To))], &tls.Config{InsecureSkipVerify: true}) + if err != nil { + w.Status(gemini.StatusProxyError, err.Error()) + return + } + defer conn.Close() + + r.URL.Host = rp.Domain + fmt.Fprintf(conn, "%s\r\n", r.URL.String()) + io.Copy(w, conn) +} +``` + +That's it. I love how minimal this is. diff --git a/journal/12-16-2020-quarantine-6.gmi b/journal/12-16-2020-quarantine-6.gmi new file mode 100644 index 0000000..006c0fb --- /dev/null +++ b/journal/12-16-2020-quarantine-6.gmi @@ -0,0 +1,19 @@ +# Quarantine Diary Day 6 + +## 15:08 + +Almost halfway done with quarantine! I swear the moment I get out of quarantine I am going to have a meal from McDonalds. I'm gonna get my usual triple quarter pounder order with a McFlurry. + +I had leftover beans and rice from Day 4[1] for lunch. I need to cook the chicken today. I might make pasta tonight. + +=> ./12-14-2020-quarantine-4.gmi [1] Day 4 + +Still spinning up at work. I am told it will take about a month in total to spin up. I am not rushing it :). + +I kinda wish we stocked up on more snack food. Usually we go out for snacks about once per week, but we're in quarantine so we can't. I would kill for some BBQ chips. + +I've continued working on my Gemini server/framework and I've gotten close to the point where I want to throw it online and test it in the real world. It's surprisingly little code to implement a Gemini server. If you want to use my framework in its current state, check out the types here[1]. + +=> https://godoc.org/github.com/Xe/rhea/gemini [1] github.com/Xe/rhea/gemini + +It's really rough at the moment, but I'm working on cleaning it up. diff --git a/journal/12-17-2020-quarantine-7.gmi b/journal/12-17-2020-quarantine-7.gmi new file mode 100644 index 0000000..d31d0ba --- /dev/null +++ b/journal/12-17-2020-quarantine-7.gmi @@ -0,0 +1,18 @@ +# Quarantine Diary Day 7 + +## 20:05 + +Halfway done! Good god it feels like this has been going on for forever. Next friday I'll be free. I plan to celebrate with a trip to McDonalds for a burger. + +I just realized I said that yesterday, lol. I've been really craving having food that I didn't have to cook. + +Tonight's dinner was stir fry. I took a chicken breast and cut it up into chunks then added that to a pan with some frozen veggies. I let it cook in avacado oil until everything heated up, then I dumped in a healthy amount of General Tao sauce and soy sauce for flavor. I let it cook until it was boiling in the pan, then I cut heat. I served it on plates. It was really good. If the instant pot was ready I would have used that to make rice to go with it, however I didn't have it clean at the time and didn't feel like washing it. + +I got to an ending in Cyberpunk 2077 today and boy do I have opinions on it. I'm gonna go into more detail in a future post, but I had low standards and they couldn't even meet that. + +I had cinnamon in my coffee today. It was probably a mistake. I will probably have a monster tomorrow. + +Tomorrow is the holiday party for work. It involves a cooking part. I can only imagine what kind of a clusterfuck that will end up as. I hope I have the right pans for it. + +I'm continuing to work on the wedding chapel in my animal crossing island. Bootstrapping a new character can be really annoying. There is so much snow there, but there's practically zero snow outside right now. This time last year there was a crapton of snow, but it's all melted away. + diff --git a/journal/atom.xml b/journal/atom.xml index 6aa6b99..ba31149 100644 --- a/journal/atom.xml +++ b/journal/atom.xml @@ -2,7 +2,7 @@ gemini://cetacean.club/journal/ Flight Journal - 2020-12-16T00:26:36.353965+00:00 + 2020-12-18T01:22:55.292095+00:00 Cadey Alicia Ratio cadey@firemail.cc @@ -10,18 +10,6 @@ python-feedgen - - gemini://cetacean.club/journal/immigration.gmi - Immigration - 2020-12-05T00:34:03.218631+00:00 - - - - gemini://cetacean.club/journal/you-complete-me.gmi - You Complete Me - 2020-12-06T02:10:04.636023+00:00 - - gemini://cetacean.club/journal/new-you.gmi New You @@ -67,7 +55,19 @@ gemini://cetacean.club/journal/12-15-2020-quarantine-5.gmi Quarantine Diary Day 5 - 2020-12-16T00:26:36.353965+00:00 + 2020-12-16T02:32:24.241705+00:00 + + gemini://cetacean.club/journal/12-16-2020-quarantine-6.gmi + Quarantine Diary Day 6 + 2020-12-16T20:46:22.018414+00:00 + + + + gemini://cetacean.club/journal/12-17-2020-quarantine-7.gmi + Quarantine Diary Day 7 + 2020-12-18T01:22:55.292095+00:00 + + diff --git a/journal/index.gmi b/journal/index.gmi index ac7c192..8694110 100644 --- a/journal/index.gmi +++ b/journal/index.gmi @@ -6,27 +6,29 @@ Want to stay up to date? Follow the atom feed! ## Personal Logs These logs will contain thoughts, feelings, major events in my life and other such things. The topics covered will range from programming to spirituality and more. -=> 07-26-2020-beginning.gmi 7/26/2020 - The Beginning -=> 07-27-2020-6e-notes.gmi 7/27/2020 - 6E Notes -=> 07-27-2020-majc-0-2-0.gmi 7/27/2020 - [ANN] majc 0.2.0 -=> 07-28-2020-dreams-favicons-more.gmi 7/28/2020 - Favicon, Weird Dreams and More -=> 07-28-2020-majc-0-2-1.gmi 7/28/2020 - [ANN] majc 0.2.1 -=> 07-29-2020-book-published.gmi 7/29/2020 - My Book is Published! -=> 07-29-2020-flavortext.gmi 7/29/2020 - Some Hacks for Writing Scenery and Characters -=> 07-31-2020-newsbook.gmi 7/31/2020 - Newsbook Experiment -=> 08-01-2020-hosted-with-maj.gmi 8/1/2020 - This site is hosted with Maj -=> 08-05-2020-lewa-development.gmi 8/5/2020 - L'ewa Development -=> 08-05-2020-rpg-backstory-gen.gmi 8/5/2020 - RPG Character Backstory Generator -=> 08-08-2020-maj-cgi-support.gmi 8/8/2020 - Maj CGI Support -=> 08-11-2020-keyboard-thonks.gmi 8/11/2020 - Keyboard Thonks -=> 08-15-2020-the-source-draft.gmi 8/15/2020 - The Source 0.2.0 -=> 09-12-2020-origami-king.gmi 9/12/2020 - My Thoughts on Paper Mario and the Origami King -=> 12-10-2020-mod-dh.gmi 12/10/2020 - Colemak Mod-DH -=> 12-11-2020-quarantine-1.gmi 12/11/2020 - Quarantine Diary Day 1 -=> 12-12-2020-quarantine-2.gmi 12/12/2020 - Quarantine Diary Day 2 -=> 12-13-2020-quarantine-3.gmi 12/13/2020 - Quarantine Diary Day 3 -=> 12-14-2020-quarantine-4.gmi 12/14/2020 - Quarantine Diary Day 4 -=> 12-15-2020-quarantine-5.gmi 12/15/2020 - Quarantine Diary Day 5 +=> 07-26-2020-beginning.gmi 07-26-2020 - The Beginning +=> 07-27-2020-6e-notes.gmi 07-27-2020 - 6E Notes +=> 07-27-2020-majc-0-2-0.gmi 07-27-2020 - [ANN] majc 0.2.0 +=> 07-28-2020-dreams-favicons-more.gmi 07-28-2020 - Favicon, Weird Dreams and More +=> 07-28-2020-majc-0-2-1.gmi 07-28-2020 - [ANN] majc 0.2.1 +=> 07-29-2020-book-published.gmi 07-29-2020 - My Book is Published! +=> 07-29-2020-flavortext.gmi 07-29-2020 - Some Hacks for Writing Scenery and Characters +=> 07-31-2020-newsbook.gmi 07-31-2020 - Newsbook Experiment +=> 08-01-2020-hosted-with-maj.gmi 08-01-2020 - This site is hosted with Maj +=> 08-05-2020-lewa-development.gmi 08-05-2020 - L'ewa Development +=> 08-05-2020-rpg-backstory-gen.gmi 08-05-2020 - RPG Character Backstory Generator +=> 08-08-2020-maj-cgi-support.gmi 08-08-2020 - Maj CGI Support +=> 08-11-2020-keyboard-thonks.gmi 08-11-2020 - Keyboard Thonks +=> 08-15-2020-the-source-draft.gmi 08-15-2020 - The Source 0.2.0 +=> 09-12-2020-origami-king.gmi 09-12-2020 - My Thoughts on Paper Mario and the Origami King +=> 12-10-2020-mod-dh.gmi 12-10-2020 - Colemak Mod-DH +=> 12-11-2020-quarantine-1.gmi 12-11-2020 - Quarantine Diary Day 1 +=> 12-12-2020-quarantine-2.gmi 12-12-2020 - Quarantine Diary Day 2 +=> 12-13-2020-quarantine-3.gmi 12-13-2020 - Quarantine Diary Day 3 +=> 12-14-2020-quarantine-4.gmi 12-14-2020 - Quarantine Diary Day 4 +=> 12-15-2020-quarantine-5.gmi 12-15-2020 - Quarantine Diary Day 5 +=> 12-16-2020-quarantine-6.gmi 12-16-2020 - Quarantine Diary Day 6 +=> 12-17-2020-quarantine-7.gmi 12-17-2020 - Quarantine Diary Day 7 ## Stories Occasionally I write little stories that are not really connected to anything. I have not really had a good place to publish these in the past. This place seems as good as any.