diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-03-14 00:58:29 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-03-14 00:58:29 +0900 |
commit | 6d736375380ac1471180e3662abea613914ecf2b (patch) | |
tree | 8cdab03e9418fe3a3988fb8dd4527c9fcbf5fb5b /blog | |
parent | c7f75303e740fed8bd96e894ed92f90be1d27d49 (diff) | |
download | site-6d736375380ac1471180e3662abea613914ecf2b.tar.gz |
Self-host standalone git repos
Diffstat (limited to 'blog')
-rw-r--r-- | blog/advent.md | 37 | ||||
-rw-r--r-- | blog/butter.md | 2 | ||||
-rw-r--r-- | blog/dedep.md | 4 | ||||
-rw-r--r-- | blog/threa.md | 2 |
4 files changed, 23 insertions, 22 deletions
diff --git a/blog/advent.md b/blog/advent.md index 048dd13..1d02f8a 100644 --- a/blog/advent.md +++ b/blog/advent.md @@ -30,9 +30,10 @@ with its implementation using `nix-shell` or `guix shell` without the fear of bloating up my systems. I'm running [NixOS on my laptop](/blog/butter) with [nixpkgs] being one of the largest downstream repositories, including everything but the kitchen sink. On the work desktop, I installed Guix System -which has a decent [set of packages][gnu] and [nix service][gnix] in case -something is missing. Every update, I run [garbage] [collection] and get rid -of all unnecessary software, i.e. those not [declared][guix] [in my config][nix]. +which has a decent [set of packages][gnu] and [nix service][gnix] +in case something is missing. Every update, I run [garbage] [collection] +and get rid of all unnecessary software, i.e. those not [declared][guix] +[in my config][nix]. ## Day One @@ -52,7 +53,7 @@ I was a teaching assistant for. The [second problem][p02] didn't ramp up much in difficulty. It only called for some rather [simple arithmetic][s02], -and the input format regularity convinced me to finally give [Hare] a try. +and the input format's regularity convinced me to finally give [Hare] a try. For just a taste, Hare is boring in a good way. I was excited for the tagged union of [error which can include and propagate @@ -64,7 +65,7 @@ I'm looking forward to a chance to write more Hare in the future. The [task for day 3][p03] was literally day $1 + 2$ in scope. I went for another *better C* that is [Nim]. My first impression with it -wasn't positive: Nim insists on considering each source file as a model +wasn't positive: Nim insists on considering each source file as a module and does not allow hyphens in identifier name, so [filenames mustn't have any hyphen][hyphen] either. This had led me to piping the source code to `nim c -` and executing `~/.cache/nim/stdinfile_d/stdinfile` to keep @@ -191,17 +192,17 @@ also give it a try, who knows, it could be much [gay]er than you'd expect! [Advent of Code]: https://adventofcode.com [nixpkgs]: https://search.nixos.org/packages [gnu]: https://packages.guix.gnu.org -[gnix]: https://git.sr.ht/~cnx/dotfiles/tree/b53f96565b8c/item/guix/system.scm#L51 +[gnix]: https://trong.loang.net/~cnx/dotfiles/tree/guix/system.scm?id=b53f96565b8c#n51 [garbage]: https://nixos.org/manual/nix/stable/command-ref/nix-collect-garbage.html [collection]: https://guix.gnu.org/manual/en/html_node/Invoking-guix-gc.html -[guix]: https://git.sr.ht/~cnx/dotfiles/tree/master/item/guix -[nix]: https://git.sr.ht/~cnx/dotfiles/tree/master/item/nix +[guix]: https://trong.loang.net/~cnx/dotfiles/tree/guix +[nix]: https://trong.loang.net/~cnx/dotfiles/tree/nix [Vim]: https://www.vim.org [Born Again]: https://www.youtube.com/watch?v=k5E6CExu204 [p01]: https://adventofcode.com/2022/day/1 -[s01]: https://git.sr.ht/~cnx/cp/commit/ff0bb53c15dd +[s01]: https://trong.loang.net/~cnx/cp/commit/ff0bb53c15dd [sed]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html [dc]: https://linux.die.net/man/1/dc [sort]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/sort.html @@ -209,30 +210,30 @@ also give it a try, who knows, it could be much [gay]er than you'd expect! [grade an assignment]: https://larkspur.one/notice/AQALVP69wAiotsVmgC [p02]: https://adventofcode.com/2022/day/2 -[s02]: https://git.sr.ht/~cnx/cp/commit/ada3a69b15ff +[s02]: https://trong.loang.net/~cnx/cp/commit/ada3a69b15ff [Hare]: https://harelang.org [error]: https://harelang.org/tutorials/introduction/#defining-new-error-types [p03]: https://adventofcode.com/2022/day/3 -[s03]: https://git.sr.ht/~cnx/cp/commit/eeb9a45346a8 +[s03]: https://trong.loang.net/~cnx/cp/commit/eeb9a45346a8 [Nim]: https://nim-lang.org [hyphen]: https://forum.nim-lang.org/t/5024 [UFCS]: https://en.wikipedia.org/wiki/Uniform_Function_Call_Syntax [camelCase]: http://www.cs.kent.edu/~jmaletic/papers/ICPC2010-CamelCaseUnderScoreClouds.pdf [p04]: https://adventofcode.com/2022/day/4 -[s04]: https://git.sr.ht/~cnx/cp/commit/8941f621840f +[s04]: https://trong.loang.net/~cnx/cp/commit/8941f621840f [Julia]: https://julialang.org [p05]: https://adventofcode.com/2022/day/5 -[s05]: https://git.sr.ht/~cnx/cp/commit/aa7616140a8b +[s05]: https://trong.loang.net/~cnx/cp/commit/aa7616140a8b [Lisp impression]: https://www.codesections.com/blog/raku-lisp-impression [free software]: https://www.gnu.org/philosophy/free-sw.html [sigils]: https://raku-advent.blog/2022/12/20/sigils [weeaboo]: https://en.wikipedia.org/wiki/Japanophilia#21st_century [p06]: https://adventofcode.com/2022/day/6 -[s06]: https://git.sr.ht/~cnx/cp/commit/f82f0b1a08f1 +[s06]: https://trong.loang.net/~cnx/cp/commit/f82f0b1a08f1 [Better C]: https://dlang.org/spec/betterc.html [D]: https://dlang.org [basic data type]: https://dlang.org/spec/type.html#basic-data-types @@ -242,18 +243,18 @@ also give it a try, who knows, it could be much [gay]er than you'd expect! [p07]: https://adventofcode.com/2022/day/7 [Janet]: https://janet-lang.org [PEG module]: https://janet-lang.org/docs/peg.html -[s07]: https://git.sr.ht/~cnx/cp/commit/38d8920c7d7c +[s07]: https://trong.loang.net/~cnx/cp/commit/38d8920c7d7c [grammar]: https://docs.raku.org/language/grammars [Fennel]: https://fennel-lang.org [p08]: https://adventofcode.com/2022/day/8 -[s08]: https://git.sr.ht/~cnx/cp/commit/f8b0528d933f +[s08]: https://trong.loang.net/~cnx/cp/commit/f8b0528d933f [p09]: https://adventofcode.com/2022/day/9 -[s09]: https://git.sr.ht/~cnx/cp/commit/cde44cdda55d +[s09]: https://trong.loang.net/~cnx/cp/commit/cde44cdda55d [p10]: https://adventofcode.com/2022/day/10 -[s10]: https://git.sr.ht/~cnx/cp/commit/5e4395eab495 +[s10]: https://trong.loang.net/~cnx/cp/commit/5e4395eab495 [Oops!… I did it again.]: https://en.wikipedia.org/wiki/Oops!..._I_Did_It_Again_(album) [in the end]: https://www.youtube.com/watch?v=eVTXPUF4Oz4 diff --git a/blog/butter.md b/blog/butter.md index 1009273..9876c17 100644 --- a/blog/butter.md +++ b/blog/butter.md @@ -229,7 +229,7 @@ in case I forget anything. [elis]: https://elis.nu/blog/2020/05/nixos-tmpfs-as-root [impermanence]: https://github.com/nix-community/impermanence [christine]: https://christine.website/blog/paranoid-nixos-2021-07-18 -[my Nix configurations]: https://git.sr.ht/~cnx/dotfiles/tree/master/item/nix +[my Nix configurations]: https://trong.loang.net/~cnx/dotfiles/tree/nix [NixOS unstable live image]: https://channels.nixos.org/nixos-unstable [LUKS]: https://gitlab.com/cryptsetup/cryptsetup [Btrfs Wiki]: https://btrfs.wiki.kernel.org/index.php/Incremental_Backup diff --git a/blog/dedep.md b/blog/dedep.md index d31ad88..a77dee7 100644 --- a/blog/dedep.md +++ b/blog/dedep.md @@ -127,9 +127,9 @@ join me in a De-Dependency December and fight for the users! [go]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/go/module.nix [node2nix]: https://github.com/svanderburg/node2nix -[Phylactery]: https://git.sr.ht/~cnx/phylactery +[Phylactery]: https://trong.loang.net/phylactery [CBZ]: https://en.wikipedia.org/wiki/Comic_book_archive -[Fead]: https://git.sr.ht/~cnx/fead +[Fead]: https://trong.loang.net/~cnx/fead [SSG]: https://en.wikipedia.org/wiki/Static_site_generator [power]: https://www.youtube.com/watch?v=3Mpyias9ek4 [context]: https://media.handmade-seattle.com/context-is-everything diff --git a/blog/threa.md b/blog/threa.md index e0c9d70..b60c7a3 100644 --- a/blog/threa.md +++ b/blog/threa.md @@ -379,7 +379,7 @@ and I really hope my words can convince someone new to try it out! [dmenu]: https://tools.suckless.org/dmenu [clipnotify]: https://github.com/cdown/clipnotify [Zig]: https://ziglang.org -[clipbuzz]: https://git.sr.ht/~cnx/clipbuzz +[clipbuzz]: https://trong.loang.net/~cnx/clipbuzz [vicious]: https://vicious.rtfd.io [Raku]: https://raku.org [run]: https://docs.raku.org/routine/run |