This commit is contained in:
Phil Bajsicki 2024-11-18 20:13:04 +01:00
parent 1d6222c694
commit f499797fac
34 changed files with 110 additions and 33 deletions

View file

@ -1,7 +1,7 @@
+++
title = "Home"
layout = "index"
lastmod = 2024-11-18T20:11:50+01:00
lastmod = 2024-11-18T20:12:59+01:00
draft = false
[menu]
[menu.nav]

View file

@ -1,7 +1,7 @@
+++
title = "I really, really like Emacs"
publishDate = 2022-10-01T00:00:00+02:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:12:59+01:00
tags = ["orgmode"]
categories = ["emacs", "tech"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "Note about LLM's and training data"
publishDate = 2023-03-09T00:00:00+01:00
lastmod = 2024-11-18T20:11:50+01:00
lastmod = 2024-11-18T20:12:59+01:00
tags = ["copyright", "thieves"]
categories = ["llm", "tech"]
draft = false

View file

@ -1,6 +1,6 @@
+++
title = "Blog"
lastmod = 2024-11-18T20:11:50+01:00
lastmod = 2024-11-18T20:12:59+01:00
draft = false
meta = true
type = "list"
@ -687,6 +687,8 @@ Anyway. Things are working, jankily yet so.
Next: I am praying that I find some time/ brainpower to fix up the CSS on this website. The misaligned sidenotes are quite irritating.
<span class="underline">[Join the FSF.](https://my.fsf.org/join)</span>
## Mind <span class="tag"><span class="_mind">@mind</span></span> {#mind}

View file

@ -1,7 +1,7 @@
+++
title = "A kind view of business"
publishDate = 2024-01-25T00:00:00+01:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:13:00+01:00
tags = ["mindset", "rant"]
categories = ["business"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "A new look: ox-tufte"
publishDate = 2023-10-23T00:00:00+02:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:12:59+01:00
tags = ["orgmode", "web", "css", "tufte"]
categories = ["emacs", "tech"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "On Avoidance in Business"
publishDate = 2023-05-04T00:00:00+02:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:13:00+01:00
tags = ["psychology", "riskmanagement", "avoidance", "fear"]
categories = ["business"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "Trying out some brain supplements, pt. 2"
publishDate = 2022-11-20T00:00:00+01:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:13:00+01:00
tags = ["supplements", "nootropics"]
categories = ["mind"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "Brain supplements: A two month summary"
publishDate = 2023-01-06T00:00:00+01:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:12:59+01:00
tags = ["supplements", "nootropics"]
categories = ["mind"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "Trying out some brain supplements"
publishDate = 2022-11-18T00:00:00+01:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:13:00+01:00
tags = ["supplements", "nootropics"]
categories = ["mind"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "On the value of calling it a day (and how to get there)"
publishDate = 2022-09-30T00:00:00+02:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:13:00+01:00
tags = ["psychology", "work", "projectmanagement"]
categories = ["business"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "Efficient computer use"
publishDate = 2022-11-12T00:00:00+01:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:12:59+01:00
tags = ["ergonomics", "keyboards", "typing", "speed", "efficency"]
categories = ["tech"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "Considerations on FOSS and subscription models"
publishDate = 2022-10-02T00:00:00+02:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:12:59+01:00
tags = ["business", "foss", "vendorlock", "proprietary", "saas", "scam"]
categories = ["tech"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "Heaps of fun (Yakuza)"
publishDate = 2022-10-17T00:00:00+02:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:13:00+01:00
tags = ["yakuza", "review"]
categories = ["videogames"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "Haxe, heaps, and VSCode (small rant)"
publishDate = 2022-10-10T00:00:00+02:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:12:59+01:00
tags = ["proprietary", "vscode", "vendorlock"]
categories = ["software", "tech"]
draft = false

View file

@ -0,0 +1,75 @@
+++
title = "Some improvements for my ox-hugo set-up"
lastmod = 2024-11-18T20:12:59+01:00
tags = ["hugo", "web", "orgmode"]
categories = ["tech", "emacs"]
draft = false
meta = true
type = "list"
[menu]
[menu.posts]
weight = 3013
identifier = "some-improvements-for-my-ox-hugo-set-up"
+++
Probably not the most inventive thing I've done, but I slightly improved my set-up quite a bit.
It's all in this little snippet of elisp:
```emacs-lisp
(delete-directory "~/git/phil/bajsicki.com/content" :recursive)
(org-hugo-export-wim-to-md :all-subtrees)
(cd "~/git/phil/bajsicki.com")
(pwd)
(magit-call-git "commit" "-a" "-m" "Update")
(magit-call-git "push")
```
One thing that bothered me somewhat about the way ox-hugo handles straggler files is that if I ever removed, renamed or otherwise messed with the structure that already existed, it wouldn't handle the redundant files for me.
E.g. if I deleted a post in my org-mode file (from which this website is generated), ox-hugo would happily leave it hanging in my \`content/\` directory, damning me to eternal suffering.
However, using this simple elisp, I can easily delete the content directory, and rebuild it from scratch to ensure that my website is _always_ up to date.
I have yet to put it into a function, or do anything. `C-c C-c` works just fine for me, as it's sitting at the top of the file in a \`:noexport:\` block.
Another issue I solved was that the git `post-receive` hook wouldn't run properly. It took me a short bit but eventually I found that I need to run it in a subshell, and unset the \`GIT_\` env variables to ensure that git doesn't get confused about where to pull the updates from.
```sh
#!/bin/bash
# Directory on the server where the website will be mapped.
export GIT_WORK_TREE=/srv/bajsicki.com/
cd $GIT_WORK_TREE
echo "post-receive: Generating https://bajsicki.com with Hugo in $(pwd)"
# Remove any files already in the public directory, a fresh copy will be generated by hugo
echo "post-receive: Cleaning the /public and /content directory to ensure we're in line."
rm -rf public/ && echo "removing /public in $(pwd)"
rm -rf content/ && echo "removing /content in $(pwd)"
# Update the modules in case of changes and pull the new pages
echo "post-receive: pulling git repo and submodules in $(pwd) w/ subshell"
(
unset $(env | sed -ne 's/^\(GIT_.*\)=.*/\1/p')
cd /srv/bajsicki.com
git pull origin main --recurse-submodules --force
)
# Generate the site with hugo
echo "post-receive: running hugo in $(pwd)"
hugo
# Fix any permission problems.
echo "post-receive: fixing permissions in $(pwd)"
find public -type f -print | xargs -d '\n' chmod 644
find public -type d -print | xargs -d '\n' chmod 755
echo "post-receive: Hugo site deployment in $(pwd) complete"
```
This is my current `post-receive` hook, and it works quite well, I think.
Anyway. Things are working, jankily yet so.
Next: I am praying that I find some time/ brainpower to fix up the CSS on this website. The misaligned sidenotes are quite irritating.
<span class="underline">[Join the FSF.](https://my.fsf.org/join)</span>

View file

@ -1,7 +1,7 @@
+++
title = "[Happy Holidays!] On posting lists for self-promotion"
publishDate = 2022-12-25T00:00:00+01:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:13:00+01:00
tags = ["badmarketing", "linkedin"]
categories = ["business"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "Weekend thoughts - Mastering Emacs by Mickey Petersen"
publishDate = 2022-10-08T00:00:00+02:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:13:00+01:00
tags = ["emacs", "review"]
categories = ["books"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "MissKey: Resetting Admin Password"
publishDate = 2023-08-11T00:00:00+02:00
lastmod = 2024-11-18T20:11:50+01:00
lastmod = 2024-11-18T20:12:59+01:00
tags = ["misskey", "admin", "postgres"]
categories = ["tech"]
draft = false

View file

@ -1,6 +1,6 @@
+++
title = "Moving to Hugo"
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:12:59+01:00
tags = ["hugo", "web", "orgmode", "css", "tufte"]
categories = ["tech", "emacs"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "My favorite Factorio mods"
publishDate = 2023-07-24T00:00:00+02:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:13:00+01:00
tags = ["factorio", "mods"]
categories = ["videogames"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "Learning a new keyboard layout"
publishDate = 2022-08-18T00:00:00+02:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:13:00+01:00
tags = ["ergonomics", "keyboard", "colemak", "typing"]
categories = ["body"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "On Problems"
publishDate = 2022-11-21T00:00:00+01:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:13:00+01:00
tags = ["psychology", "problems"]
categories = ["mind"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "Overcoming typing-related RSI"
publishDate = 2022-09-22T00:00:00+02:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:13:00+01:00
tags = ["ergonomics", "keyboard", "typing", "rsi", "health"]
categories = ["body"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "Realistic deadlines"
publishDate = 2022-09-30T00:00:00+02:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:13:00+01:00
tags = ["projectmanagement", "work"]
categories = ["business"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "Some thoughts on SaaS and business applications of Free Software"
publishDate = 2022-09-28T00:00:00+02:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:13:00+01:00
tags = ["saas", "scam", "vendorlock", "interoperability"]
categories = ["business"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "Shared hosting is a scam"
publishDate = 2023-03-29T00:00:00+02:00
lastmod = 2024-11-18T20:11:50+01:00
lastmod = 2024-11-18T20:12:59+01:00
tags = ["sharedhosting", "saas", "scam"]
categories = ["tech"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "Shiny objects, and learning"
publishDate = 2024-04-24T00:00:00+02:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:13:00+01:00
tags = ["mindset", "attitude", "rant"]
categories = ["business"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "VPS is my new friend"
publishDate = 2022-10-07T00:00:00+02:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:12:59+01:00
tags = ["vps", "sysadmin", "servers", "ssh", "sshfs", "foss", "vendorlock"]
categories = ["tech"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "VPS set-up"
publishDate = 2022-08-18T00:00:00+02:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:12:59+01:00
tags = ["vps", "sysadmin", "servers"]
categories = ["tech"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "Wisdom from a Satyr"
publishDate = 2023-03-30T00:00:00+02:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:12:59+01:00
tags = ["ethics", "suffering", "buddhism"]
categories = ["wisdom", "mind"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "Some words in a moment of peace"
publishDate = 2023-04-04T00:00:00+02:00
lastmod = 2024-11-18T20:11:51+01:00
lastmod = 2024-11-18T20:12:59+01:00
tags = ["language", "words", "meaning", "clarity", "communication"]
categories = ["mind"]
draft = false

View file

@ -1,6 +1,6 @@
+++
title = "On Mark Zuckerberg's recent claims"
lastmod = 2024-11-18T20:11:50+01:00
lastmod = 2024-11-18T20:12:59+01:00
tags = ["copyright", "zuckerberg"]
categories = ["tech", "llm"]
draft = false

View file

@ -1,7 +1,7 @@
+++
title = "Contact"
publishDate = 2023-06-20T00:35:00+02:00
lastmod = 2024-11-18T20:11:50+01:00
lastmod = 2024-11-18T20:12:59+01:00
draft = false
hidefromhome = true
meta = false