From: Alexander Goussas Date: Thu, 30 Apr 2026 17:40:59 +0000 (-0500) Subject: add build script for CI X-Git-Tag: v0.0.3~12 X-Git-Url: http://git.frustrated-labs.net/?a=commitdiff_plain;h=1c07e65249246929299fd2dbe7abe52e7ed968c9;p=frustrated-functor.dev.git add build script for CI --- diff --git a/.gitignore b/.gitignore index 880cd5d..eb93b3f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ zig-out .zig-cache +public/*.html diff --git a/bin/blog-processor/src/html_formatter.zig b/bin/blog-processor/src/html_formatter.zig index c3b6c96..fd9ffb9 100644 --- a/bin/blog-processor/src/html_formatter.zig +++ b/bin/blog-processor/src/html_formatter.zig @@ -2,10 +2,6 @@ const std = @import("std"); const md = @import("./markdown_parser.zig"); const strings = @import("./string_utils.zig"); -const stdC = @cImport({ - @cInclude("stdio.h"); -}); - pub const Options = struct { template: ?[]const u8, }; diff --git a/public/2026-04-19-one-of-the-best-skills-ive-learned-as-a-programmer.md.html b/public/2026-04-19-one-of-the-best-skills-ive-learned-as-a-programmer.md.html deleted file mode 100644 index dcea1a3..0000000 --- a/public/2026-04-19-one-of-the-best-skills-ive-learned-as-a-programmer.md.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - Alexander Goussas - - - - -
-

One of the best Skills I've learned as a Programmer

-
- Last updated: 19 april 2026 -
-

There are many different skills one might invest it when getting into programming. -There is a plethora of programming languages, each with their unique appeal. -And within each language ecosystem, a plethora of web frameworks and stuff to learn.

-

But for me, one of the greatest investments came from something else altogether: -learning how to touch type.

-

For those of you that don't know, touch typing basically means typing without -looking at your keyboard. But I include in the definition typing with all your -fingers.

-

Before learning to touch type, I only used both my index fingers. I literally did -not use any other finger. One day, I decided to change that and started dedicating -a lot of time to acquiring the ability to touch type.

-

There was a free website I used for this, whose name I have since forgotten. -Something like typingrace of something like that.

-

Anywho, today, I can write at ~120 WPM, which is not a crazy speed, but pretty -respectable, if I may say so myself. Sometimes I just like typing whatever to feel -the vertigo as my fingers speed through my keyboard.

-

Also, this is a transferable skill, so if you can't touch type yet, I encourage you -to. -

-
- - diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100755 index 0000000..20c1d67 --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +set -e + +POSTS="$(realpath ./posts)" +EXE='bin/blog-processor/zig-out/bin/blog_processor' +WORKDIR="$(pwd)" +REPO='aloussase69/site' +TAG="$(git describe --tags)" +IMAGE="$REPO:$TAG" + +echo '[INFO] Building blog processor' +cd bin/blog-processor && zig build && cd "$WORKDIR" + +if [ ! -f "$EXE" ]; then + echo '[ERROR] Could not locate blog processor' + exit 1 +fi + +echo '[INFO] Processing blog' +"$EXE" "$POSTS" + +if [ $? -ne 0 ]; then + echo '[ERROR] Failed to build posts' + exit 1 +fi + +echo "[INFO] Building docker image $IMAGE" +docker build -t "$IMAGE" --push . + +echo "[INFO] Aliasing $IMAGE to $REPO:latest" +docker tag "$IMAGE" "$REPO:latest" +docker push "$REPO:latest" + +exit 0