diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..f34aa85 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,7 @@ +# Keep in sync with .gitignore! +public/ +resources/ +*.lock + +# Somehow trips up prettier's parser +layouts/shortcodes/extlink.html diff --git a/archetypes/default.md b/archetypes/default.md index 00e77bd..26f317f 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -3,4 +3,3 @@ title: "{{ replace .Name "-" " " | title }}" date: {{ .Date }} draft: true --- - diff --git a/content/_index.md b/content/_index.md index 7d22dd6..fd98479 100644 --- a/content/_index.md +++ b/content/_index.md @@ -5,39 +5,37 @@ subheading: open source advocate. embracing the unix philosophy. description: Personal website of Christoph Heiss date: 2022-12-08T14:53:30+01:00 --- + ## about me. I am a 24 year old computer science student at the Technical University of Vienna, Austria. -I got a passion for embedded systems, bare-bones and low-level system programming, compiler +I got a passion for embedded systems, bare-bones and low-level system programming, compiler engineering and anything of that sort. From time to time I also like to get into reverse-engineering some stuff. Currently focusing primarily on x86(\_64) and RISC-V. Rust is my language of choice. Efficient in C/C++ as well. -As balance between all that I love getting caught up in devops and infrastructure management +As balance between all that I love getting caught up in devops and infrastructure management and generally anything involving networks. ## my work. -Currently I'm part-time employed at -{{< extlink href="https://proxmox.com/" title="Proxmox Server Solutions GmbH" >}} - Proxmox -{{< /extlink >}} as Linux software developer. +Currently I'm part-time employed at +{{< extlink href="https://proxmox.com/" title="Proxmox Server Solutions GmbH" >}}Proxmox{{< /extlink >}} +as Linux software developer. Some useful projects I work on and maintain in my free time include: - {{< extlink - href="https://git.sr.ht/~c8h4/bwtui" - title="'A terminal-based vault browser for Bitwarden' - sourcehut" - >}} - bwtui + href="https://git.sr.ht/~c8h4/bwtui" + title="'A terminal-based vault browser for Bitwarden' - sourcehut" >}} + bwtui {{< /extlink >}}, a terminal client for Bitwarden. - {{< extlink - href="https://git.sr.ht/~c8h4/teuthida" - title="'An in-order, 5-stage RISC-V (toy) implementation in Amaranth HDL.' - sourcehut" - >}} - teuthida + href="https://git.sr.ht/~c8h4/teuthida" + title="'An in-order, 5-stage RISC-V (toy) implementation in Amaranth HDL.' - sourcehut" >}} + teuthida {{< /extlink >}}, a [WIP] in-order 5-stage RISC-V (toy) implementation. I also maintain a few NixOS and Home Manager packages/modules and overall try @@ -56,15 +54,10 @@ You can also find me on: - {{< extlink href="https://www.linkedin.com/in/christoph-heiss" relAdd="me" >}}LinkedIn{{< /extlink >}} PGP fingerprint: [9C56 1D64 30B2 8D6B DCBC 9CEB 73D5 E7FD EE3D E49A](gpg.asc) - + ## support me. If you like my work, you can support me on -{{< extlink - href="https://www.buymeacoffee.com/christoph.heiss" - title="Christoph Heiss on Buy Me a Coffee" - relAdd="me" ->}} - Buy Me a Coffee +{{< extlink href="https://www.buymeacoffee.com/christoph.heiss" title="Christoph Heiss on Buy Me a Coffee" relAdd="me" >}} +Buy Me a Coffee {{< /extlink >}}. - diff --git a/content/gpg-cheatsheet.md b/content/gpg-cheatsheet.md index 2bee197..66d633f 100644 --- a/content/gpg-cheatsheet.md +++ b/content/gpg-cheatsheet.md @@ -4,11 +4,13 @@ date: 2023-04-21T16:40:56+02:00 --- ### List secret key with all subkeys: + ```shell {lineanchors=list} $ gpg --list-secret-keys --keyid-format long ``` ### Add a new subkey: + ```shell {lineanchors=add} $ gpg --edit-key gpg> addkey @@ -17,6 +19,7 @@ gpg> save ``` ### Transfer subkey to other workstation: + ```shell {lineanchors=transfer} $ gpg --export --armor >masterkey-public.asc $ gpg --export-secret-key --armor ! >subkey-private.asc @@ -28,6 +31,7 @@ shred -u subkey-private.asc ``` ### Or, transfer over ssh directly (might not work depending on setup): + ```shell {lineanchors=transfer-ssh} $ gpg --export --armor \ | ssh 'gpg --import' @@ -36,16 +40,19 @@ $ gpg --export-secret-key --armor ! \ ``` ### Check what keys are available on target: + ```shell {lineanchors=check} $ gpg --list-secret-keys --with-keygrip ``` ### If the secret master key (`sec`) is available (no `#` suffix), delete it: + ```shell {lineanchors=delete-sec} $ gpg-connect-agent 'DELETE_KEY ' /bye ``` ### Reorder UID priorities: + ```shell {lineanchors=reorder} # Suppose Bob has these three identities, in that order: [ unknown] (1). Bob @@ -73,4 +80,5 @@ gpg> save ``` ### Some more useful links/explanations: + - [How to un-revoke an key/uid](https://lists.gnupg.org/pipermail/gnupg-users/2007-April/030724.html) diff --git a/themes/hacker/assets/scss/main.scss b/themes/hacker/assets/scss/main.scss index 415388d..e724a86 100644 --- a/themes/hacker/assets/scss/main.scss +++ b/themes/hacker/assets/scss/main.scss @@ -9,9 +9,10 @@ html { background-color: var(--background); color: var(--text); - font-family: system-ui, -apple-system, BlinkMacSystemFont,'Segoe UI', 'Roboto', 'Oxygen', - 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 'Segoe UI Emoji', - 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; + font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", + "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", + "Helvetica Neue", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", + sans-serif; font-size: 12pt; max-width: 45em; margin: 0 auto; @@ -25,7 +26,8 @@ html { } } -h1, h2 { +h1, +h2 { line-height: 1.2; } @@ -35,7 +37,7 @@ h1 { } h3 { - margin: 1em 0 .2em .5em; + margin: 1em 0 0.2em 0.5em; font-size: 12pt; font-weight: 500; } @@ -46,7 +48,7 @@ p { main { ul { - list-style-type: '*'; + list-style-type: "*"; } li { @@ -56,7 +58,7 @@ main { header { ul { - list-style-type: ''; + list-style-type: ""; margin: 0; } @@ -66,7 +68,8 @@ header { justify-content: space-between; } - a, a:visited { + a, + a:visited { color: var(--text); text-decoration: none; white-space: nowrap; @@ -90,7 +93,9 @@ a { padding: 2px; margin: 0 -2px; - &, &:visited, &:link { + &, + &:visited, + &:link { color: var(--link); } diff --git a/themes/hacker/layouts/_default/baseof.html b/themes/hacker/layouts/_default/baseof.html index 5dc4b24..07530f2 100644 --- a/themes/hacker/layouts/_default/baseof.html +++ b/themes/hacker/layouts/_default/baseof.html @@ -1,9 +1,10 @@ - {{- partial "head.html" . -}} - - {{- partial "header.html" . -}} - {{- block "main" . }}{{- end }} - {{- partial "footer.html" . -}} - + {{- partial "head.html" . -}} + + + {{- partial "header.html" . -}} + {{- block "main" . }}{{- end }} + {{- partial "footer.html" . -}} + diff --git a/themes/hacker/layouts/_default/single.html b/themes/hacker/layouts/_default/single.html index 952d150..76ddeec 100644 --- a/themes/hacker/layouts/_default/single.html +++ b/themes/hacker/layouts/_default/single.html @@ -1,7 +1,5 @@ {{ define "main" }}
-
- {{ .Content }} -
+
{{ .Content }}
{{ end }} diff --git a/themes/hacker/layouts/_default/taxonomy.html b/themes/hacker/layouts/_default/taxonomy.html index f10d9a0..ab6f884 100644 --- a/themes/hacker/layouts/_default/taxonomy.html +++ b/themes/hacker/layouts/_default/taxonomy.html @@ -1,3 +1 @@ -
- {{ .Content }} -
+
{{ .Content }}
diff --git a/themes/hacker/layouts/index.html b/themes/hacker/layouts/index.html index b7b3d54..fff0cc2 100644 --- a/themes/hacker/layouts/index.html +++ b/themes/hacker/layouts/index.html @@ -1,5 +1,3 @@ {{ define "main" }} -
- {{ .Content }} -
+
{{ .Content }}
{{ end }} diff --git a/themes/hacker/layouts/partials/footer.html b/themes/hacker/layouts/partials/footer.html index fa69564..309fd50 100644 --- a/themes/hacker/layouts/partials/footer.html +++ b/themes/hacker/layouts/partials/footer.html @@ -1,3 +1 @@ -
- made with ❤ by christoph heiss -
+
made with ❤ by christoph heiss
diff --git a/themes/hacker/layouts/partials/head.html b/themes/hacker/layouts/partials/head.html index 8a535d9..8c870a1 100644 --- a/themes/hacker/layouts/partials/head.html +++ b/themes/hacker/layouts/partials/head.html @@ -1,20 +1,28 @@ - - - - - - - - - + + + + + + + + + + {{ template "_internal/opengraph.html" . }} {{ $title := print .Title " | " .Site.Title }} - {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} + + {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} + {{ $title }} {{ $styles := resources.Get "scss/main.scss" | toCSS }} - + diff --git a/themes/hacker/layouts/partials/header.html b/themes/hacker/layouts/partials/header.html index 6e10f6e..77dddb0 100644 --- a/themes/hacker/layouts/partials/header.html +++ b/themes/hacker/layouts/partials/header.html @@ -3,17 +3,16 @@

{{ with .Params.heading }}{{ . }}{{ else }}{{ .Title }}{{ end }}

-
- {{ with .Params.subheading }}{{ . }}{{ else }}{{ .Description }}{{ end }} +
+ {{ with .Params.subheading }} {{ . }} {{ else }} {{ .Description }} {{ end }}