diff --git a/.aspell.en.pws b/.aspell.en.pws index 2ed063e..11b9701 100644 --- a/.aspell.en.pws +++ b/.aspell.en.pws @@ -54,3 +54,8 @@ OnePlus PostMarketOS Termux Uno +gitea +repo +SDL +otto +drupals diff --git a/.githooks/pre-commit b/.githooks/pre-commit index 9021742..c37c4e3 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -1,9 +1,13 @@ #!/usr/bin/env bash -set -e +GREEN='\033[0;32m' +NC='\033[0m' # No Color echo "Running pre-commit checks..." +# Track overall success/failure +OVERALL_RESULT=0 + # Get list of staged markdown files STAGED_MD_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep -E '\.md$' || true) @@ -16,10 +20,12 @@ echo "Checking markdown files..." # Check markdown formatting with markdownlint-cli if command -v markdownlint &> /dev/null; then - markdownlint $STAGED_MD_FILES || { - echo "❌ Markdown linting failed. Fix issues or use 'git commit --no-verify' to skip." - exit 1 - } + if ! markdownlint $STAGED_MD_FILES; then + echo "❌ Markdown linting failed." + OVERALL_RESULT=1 + else + echo -e "${GREEN}✅ Markdownlint passed!${NC}" + fi else echo "⚠️ markdownlint not found, skipping markdown linting" fi @@ -59,14 +65,31 @@ if command -v aspell &> /dev/null; then fi done if [ $MISSPELLED -eq 1 ]; then - echo "Review spelling errors above. Add correct terms to .aspell.personal" - echo "Use 'git commit --no-verify' to skip if needed." - exit 1 + echo "❌ Spell check failed." + OVERALL_RESULT=1 fi fi else echo "⚠️ aspell not found, skipping spell check" fi -echo "✅ Pre-commit checks passed!" -exit 0 +# Link validation +if [ -x "./scripts/check-links.sh" ]; then + echo "Running link validation..." + if ! ./scripts/check-links.sh $STAGED_MD_FILES; then + echo "❌ Link validation failed." + OVERALL_RESULT=1 + fi +else + echo "⚠️ Link checker script not found or not executable, skipping link validation" +fi + +# Final result +if [ $OVERALL_RESULT -eq 0 ]; then + echo "✅ Pre-commit checks passed!" + exit 0 +else + echo "" + echo "❌ Some pre-commit checks failed. Fix issues or use 'git commit --no-verify' to skip." + exit 1 +fi diff --git a/.markdownlint.jsonc b/.markdownlint.jsonc index a7367d4..7914a8a 100644 --- a/.markdownlint.jsonc +++ b/.markdownlint.jsonc @@ -139,10 +139,7 @@ // MD032/blanks-around-lists : Lists should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md032.md "MD032": true, // MD033/no-inline-html : Inline HTML : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md033.md - "MD033": { - // Allowed elements - "allowed_elements": [] - }, + "MD033": false, // MD034/no-bare-urls : Bare URL used : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md034.md "MD034": true, // MD035/hr-style : Horizontal rule style : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md035.md @@ -266,7 +263,7 @@ // MD056/table-column-count : Table column count : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md056.md "MD056": true, // MD058/blanks-around-tables : Tables should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md058.md - "MD058": true, + "MD058": false, // MD059/descriptive-link-text : Link text should be descriptive : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md059.md "MD059": { // Prohibited link texts diff --git a/content/posts/my-first-real-job.md b/content/posts/my-first-real-job.md index 84b70c8..19b21cc 100644 --- a/content/posts/my-first-real-job.md +++ b/content/posts/my-first-real-job.md @@ -73,7 +73,7 @@ completely outside your control, hiring freeze, nepotism, off by one error, lazy During this hiring process, they took a lot of my expertise and experience by my word, and I can only assume they did so because it seemed that my word was one they could trust. I think experience is great; lots of experience gives you the confidence to answer questions about previous problems you have solved, but experience isn't all, or possibly even, -the majority of what gets you hired. I think alot of it comes down to your interpersonal skills, your charisma stat, +the majority of what gets you hired. I think a lot of it comes down to your interpersonal skills, your charisma stat, how chiseled your chin looks. Some of that you can't change easily, I think I was born with an above average emotional intelligence. But, I can't stress enough how important it is that you appear confident but not overbearing, and eager to learn and work. With everything today getting people to get as far away from socializing I R L, not having any grounded diff --git a/content/projects.md b/content/projects.md index 528bf1a..142df51 100644 --- a/content/projects.md +++ b/content/projects.md @@ -1,10 +1,13 @@ --- title: "Projects" type: "page" +lastmod: 2025-10-03T16:19:07-06:00 --- -Worked on frequently, updated on occassion. +Worked on frequently, updated on occasion. -- ## [Game in Zig & SDL2 ⚡️](/projects/zig-sdl) -- ## [Gaining 15 Pounds in 2025 :muscle:]() -- ## [Drones :video_game: :helicopter:]() +- # [Game in Zig & SDL2 ⚡️](/projects/zig-sdl) + + + + diff --git a/content/projects/zig-sdl.md b/content/projects/zig-sdl.md index 6d2f42f..52a5428 100644 --- a/content/projects/zig-sdl.md +++ b/content/projects/zig-sdl.md @@ -2,15 +2,17 @@ title: "SDL Game in Zig" image: "" type: "page" +date: "2025-01-10" +lastmod: 2025-10-03T16:19:07-06:00 --- # Zig Game Dev with SDL2 -I'm making a game in Zig! +I'm (was) making a game in Zig! Currently getting back into Zig. -Watch me stream it [here](https://twitch.tv/fosscat), or below! +Watch me [stream on Twitch](https://twitch.tv/fosscat), or the embed below! -Repo for the project is [here](https://git.fosscat.com/n8r/zsdl) +Repo for the project is [on my gitea](https://git.fosscat.com/n8r/zsdl)
diff --git a/content/tils/hunter-gatherers-were-not-dumb.md b/content/tils/hunter-gatherers-were-not-dumb.md new file mode 100644 index 0000000..1e9bcee --- /dev/null +++ b/content/tils/hunter-gatherers-were-not-dumb.md @@ -0,0 +1,30 @@ +--- +date: 2025-10-05T20:08:25-06:00 +description: "" +lastmod: 2025-10-05T20:08:25-06:00 +showTableOfContents: true +type: "tils" +title: "TIL: Hunter Gatherers Were Not Dumb" +image: "" +image_credit: "" +image_alt: "" +tags: ["history", ""] +--- + +# Context + +[As I mentioned](/tils/we-created-dogs-and-dogs-created-us), I'm really enjoying the +[Sapiens](https://en.wikipedia.org/wiki/Sapiens:_A_Brief_History_of_Humankind) book. I was shocked to discover that +hunter gatherer societies were comprised of extremely intelligent humans! + +# Reflection + +Because of my biases (and probably seeing many depictions of foolish looking cave men), I had +assumed that what caused the human to "pull themselves out" of the wild animal stage and into +the industrial age was them finally reaching a point of intelligence to do so. When, [the +reality](https://www.bbc.com/future/article/20240517-the-human-brain-has-been-shrinking-and-no-one-quite-knows-why) is +actually the opposite! The hunter gatherer people had to be so intimately familiar with their surroundings to survive. +Weather patterns, migration patterns of many different animals, which foods were safe to eat, and how to prepare the +foods for consumption. The variety of foods they gathered was also greater than the average person today eating cereal +grains and one of four different meats. History is so fascinating. I find time and time again, my assumption of how or +what something must have been is frequently proven completely wrong. diff --git a/content/tils/we-created-dogs-and-dogs-created-us.md b/content/tils/we-created-dogs-and-dogs-created-us.md index bcc5f79..c87a9dc 100644 --- a/content/tils/we-created-dogs-and-dogs-created-us.md +++ b/content/tils/we-created-dogs-and-dogs-created-us.md @@ -15,7 +15,7 @@ tags: ["life", "dogs", "history"] I started listening to [_Sapiens: A Brief History of Human kind_](https://en.wikipedia.org/wiki/Sapiens:_A_Brief_History_of_Humankind) and was struck at the significance of dogs -in human history. I [realized](https://fosscat.com/tils/people-are-actually-right/) that dogs really are man's best +in human history. I [realized](/tils/people-are-actually-right) that dogs really are man's best friend, and only animal that has evolved alongside us since the hunter gatherer period. Its incredible! # Reflection diff --git a/layouts/partials/page.html b/layouts/partials/page.html new file mode 100644 index 0000000..bf022ad --- /dev/null +++ b/layouts/partials/page.html @@ -0,0 +1,25 @@ ++ {{ if eq .Date .Lastmod }} + {{ dateFormat (or .Site.Params.dateFormat "January 2, 2006") .Date}} + {{ end }} + {{ if lt .Date .Lastmod }} + Updated {{ dateFormat (or .Site.Params.dateFormat "January 2, 2006") .Lastmod }} + {{ end }} +
+ {{ end }} +