I published source code for my #resume here, which is entirely made with Typst:
https://codeberg.org/jarkko/resume
I tried to take extra care properly cover everything with CC-BY-NC-SA-4.0 before publishing it.
The reason why I posted is however this nice small script that I did:
❯ cat scripts/license-photo.sh
#!/usr/bin/env sh
exiftool \
-XMP-xmpRights:UsageTerms="CC-BY-NC-SA-4.0" \
-XMP-xmpRights:WebStatement="https://creativecommons.org/licenses/by-nc-sa/4.0/" \
images/photo.jpg
exiftool images/photo.jpg | grep -E "^Usage Terms|^Web Statement"
The script injects CC-BY-NC-SA-4.0 as part of the EXIF metadata embedded to the image.
Not doing this would have caused my weird OCD symptoms and sleepless nights ;-)
Ya, and also in this my Git starts with a “merkle commit”:
❯ git log --oneline
21f8497 (HEAD -> main, origin/main, origin/HEAD) Initial commit
a79299e
I.e. “the empty set” is public domain and not enforced by CC-BY-NC-SA-4.0 ;-) I like licensing and security borders that are clear and visible…
Edited the repository a bit.
I find this cool way to create the first commit:
❯ git log --oneline
d210dc8 (HEAD -> main, origin/main, origin/HEAD) feat: ramp up `alacritty-install`
dfba58b
I.e. “merkle tree root” having neither commit message nor payload. my “autistic tendencies” really tickle for this ;-)
Alacritty upstream NAK’d my install script so I created a repository for it:
https://codeberg.org/jarkko/alacritty-install
I also modified it to install the icon and desktop file by default with the perfix ~/.local
.
Usage:
alacritty-install -h
usage: alacritty-install [-bhp]
-b <wayland|x11> select the rendering backend
-h usage information
-p <prefix> select the installation prefix (defaults to '/usr/local')
Just a convenient way to get the bleeding edge binary, which is convenient because typical Rust app is a single fat binary.
@ikkeT and LF is funded by private money so there’s no similar issue.
EU just came to mind from this quote: “The organization selected the European Union for their headquarters and computer infrastructure, due to members’ concerns that a software project repository hosted in the United States could be removed if a malicious actor made bad faith copyright claims under the Digital Millennium Copyright Act.”
It took me hours to figure out that I need a branch called pages
for deploying the generated content in .woodpecker.yml
.
Even after figuring out that I could not find any information on how to first initialize it, so here’s how I did it:
git checkout --orphan pages
git rm -rf .
git commit -a --allow-empty --allow-empty-message
This results nice empty commit, i.e. a commit which has neither payload nor commit message:
❯ git show
commit a6e593d5e8f3d75c3bb682762ac2940dc237080b (HEAD -> pages)
Author: Jarkko Sakkinen <jarkko.sakkinen@iki.fi>
Date: Tue Jun 18 06:02:33 2024 +0300
After a single CI run:
❯ git n log
commit 05e254e5d6b2dc8c29ac2d36ddfa68b9b1d56d2f (HEAD -> pages, origin/pages)
Author: Codeberg CI <jarkko.sakkinen@iki.fi>
Date: Tue Jun 18 03:08:27 2024 +0000
CI a7dc6158185fa87bc6d31431e417a10a00c6a6f8
commit a6e593d5e8f3d75c3bb682762ac2940dc237080b
Author: Jarkko Sakkinen <jarkko.sakkinen@iki.fi>
Date: Tue Jun 18 06:02:33 2024 +0300
Gives expected results so I guess this works :-)