fix: headers

This commit is contained in:
Barrett Ruth 2025-05-30 20:11:30 -05:00
parent e406a45f07
commit 0beb5b8fa1
4 changed files with 14 additions and 14 deletions

View file

@ -3,7 +3,7 @@ title: "designing this website"
date: "18/06/2024" date: "18/06/2024"
--- ---
## Update: Port to Astro (<span class="date">22/05/2025</span>) # Update: Port to Astro (<span class="date">22/05/2025</span>)
I'm expanding my website to included more detailed algorithms, implementations, write-ups, and low-level optimization case studies. I'm expanding my website to included more detailed algorithms, implementations, write-ups, and low-level optimization case studies.
@ -29,7 +29,7 @@ On the upside, I have around the same LOC, a dead-simple blog post setup ([here]
The choice of Astro was of no significance. It did the job and that's all that matters. I'm not quite a fan of the funky `---` syntax to separate HTML and JS, though. I find it counterintuitive to separate the UI and the frontend logic, which ought to be tightly coupled. I don't want to imagine working on larger files in Astro. The choice of Astro was of no significance. It did the job and that's all that matters. I'm not quite a fan of the funky `---` syntax to separate HTML and JS, though. I find it counterintuitive to separate the UI and the frontend logic, which ought to be tightly coupled. I don't want to imagine working on larger files in Astro.
## HTML, JavaScript, and CSS # HTML, JavaScript, and CSS
That's all there is to it. That's all there is to it.
@ -42,7 +42,7 @@ I thought about using the following frameworks:
But I did not actually _need_ any of them to make this site look decent. But I did not actually _need_ any of them to make this site look decent.
## What I've Learned # What I've Learned
Of course, most people build simple websites like these to learn a new technology or framework, not to use an optimal tool. That's actually why I [hosted this website on AWS](/posts/software/from-github-pages-to-aws.html). Of course, most people build simple websites like these to learn a new technology or framework, not to use an optimal tool. That's actually why I [hosted this website on AWS](/posts/software/from-github-pages-to-aws.html).

View file

@ -3,7 +3,7 @@ title: "from github pages to AWS"
date: "15/06/2024" date: "15/06/2024"
--- ---
## pages begone # pages begone
Though GitHub Pages may work for hosting your small, internal, static site, I don't think Pages is the right choice for _anyone_: Though GitHub Pages may work for hosting your small, internal, static site, I don't think Pages is the right choice for _anyone_:
@ -11,7 +11,7 @@ Though GitHub Pages may work for hosting your small, internal, static site, I do
2. Limited SEO control: not a downside if you don't want want traffic... 2. Limited SEO control: not a downside if you don't want want traffic...
3. Static & client-side only: keep your options open 3. Static & client-side only: keep your options open
## why aws? # why aws?
I used pages before because I had little knowledge of cloud computing. I used pages before because I had little knowledge of cloud computing.
@ -25,7 +25,7 @@ AWS is:
2. Secure: soon to be used by VISA, which holds security to a nearly stupid extent (seriously, I can't even clone a repository) 2. Secure: soon to be used by VISA, which holds security to a nearly stupid extent (seriously, I can't even clone a repository)
3. Well-documented: everything in the documentation worked _first try_. This is extremely rare in software, so compliments to Chef Bezos. 3. Well-documented: everything in the documentation worked _first try_. This is extremely rare in software, so compliments to Chef Bezos.
## the setup # the setup
This website is pure HTML, CSS, and JavaScript. This website is pure HTML, CSS, and JavaScript.
@ -46,7 +46,7 @@ A user request can be modelled as follows:
![system design of my portfolio website](/public/posts/from-github-pages-to-aws/website-design.webp) ![system design of my portfolio website](/public/posts/from-github-pages-to-aws/website-design.webp)
## difficulties # difficulties
The hardest part of hosting this website was interfacing with GoDaddy. The hardest part of hosting this website was interfacing with GoDaddy.

View file

@ -3,17 +3,17 @@ title: "hosting a git server"
date: "07/05/2025" date: "07/05/2025"
--- ---
## why # why
No reason. Perhaps to host personal files in the future. AWS's micro free tier is great, too. No reason. Perhaps to host personal files in the future. AWS's micro free tier is great, too.
## what # what
- Write my own git web ui - Write my own git web ui
- Support clones from my own website - Support clones from my own website
- Host private files on my git ui - Host private files on my git ui
## the process # the process
I detail self-hosting a git server on an AWS t2.micro instance ("free" for 1 year) as of May 2025. [Git's instructions](https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols) were vastly outdated so hopefully this saves a lucky reader some time. I detail self-hosting a git server on an AWS t2.micro instance ("free" for 1 year) as of May 2025. [Git's instructions](https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols) were vastly outdated so hopefully this saves a lucky reader some time.
@ -70,7 +70,7 @@ I detail self-hosting a git server on an AWS t2.micro instance ("free" for 1 yea
11. There are a variety of choices for web ui, including [cgit](https://git.zx2c4.com/cgit/), [gitweb](https://git-scm.com/docs/gitweb) (I do not recommend this—the scripts are ancient and require manual tuning), and some even heavier options that allow for further customization. I am not a fan of viewing code on the web, so you cannot in [my custom ui](https://git.barrettruth.com). I spin up a simple python server to walk the projects in `/srv/git` and configured a systemd service to run it in the ec2 box: 11. There are a variety of choices for web ui, including [cgit](https://git.zx2c4.com/cgit/), [gitweb](https://git-scm.com/docs/gitweb) (I do not recommend this—the scripts are ancient and require manual tuning), and some even heavier options that allow for further customization. I am not a fan of viewing code on the web, so you cannot in [my custom ui](https://git.barrettruth.com). I spin up a simple python server to walk the projects in `/srv/git` and configured a systemd service to run it in the ec2 box:
## lessons # lessons
- **It feels great to do things yourself**: I used GPT-4o for linux server command help, that was about it - **It feels great to do things yourself**: I used GPT-4o for linux server command help, that was about it
- **Always ask "what is this?" before using something**: this would've saved me hours of realizing a 12 year old perl script should not have been running my git ui. - **Always ask "what is this?" before using something**: this would've saved me hours of realizing a 12 year old perl script should not have been running my git ui.

View file

@ -5,7 +5,7 @@ date: "15/04/2025"
Source code [here](https://github.com/barrett-ruth/dots/blob/main/nvim/lua/cp.lua). Source code [here](https://github.com/barrett-ruth/dots/blob/main/nvim/lua/cp.lua).
## my goals # my goals
I wanted the following features in my competitive programming (cp) setup: I wanted the following features in my competitive programming (cp) setup:
@ -13,7 +13,7 @@ I wanted the following features in my competitive programming (cp) setup:
- Speed: instantaneous, non-blocking running/debugging; automatic environment configuration and easy code testing - Speed: instantaneous, non-blocking running/debugging; automatic environment configuration and easy code testing
- Editor-Agnostic: while I do provide first-in-class NeoVim integration for my setup, it should be easily portable to _any_ os/editor - Editor-Agnostic: while I do provide first-in-class NeoVim integration for my setup, it should be easily portable to _any_ os/editor
## the solution # the solution
Some (POSIX-compliant, of course) scripts and a `makefile` are more than enough. I created the following intuitive way to interact with my CP setup: Some (POSIX-compliant, of course) scripts and a `makefile` are more than enough. I created the following intuitive way to interact with my CP setup:
@ -24,7 +24,7 @@ Some (POSIX-compliant, of course) scripts and a `makefile` are more than enough.
That's it. The `makefile` relies on some scripts that compile code and run the corresponding executables. That's it. The `makefile` relies on some scripts that compile code and run the corresponding executables.
## neovim integration # neovim integration
![screenshot of my neovim competitive programming setup](/public/posts/my-cp-setup/cp-setup.webp) ![screenshot of my neovim competitive programming setup](/public/posts/my-cp-setup/cp-setup.webp)