tree-wide: Let prettier rip through and reformat all things

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2023-04-21 21:43:07 +02:00
parent 4c74bd5b51
commit 9f89bd901f
Signed by: c8h4
GPG key ID: 6817E9C75C0785D7
12 changed files with 83 additions and 71 deletions

7
.prettierignore Normal file
View file

@ -0,0 +1,7 @@
# Keep in sync with .gitignore!
public/
resources/
*.lock
# Somehow trips up prettier's parser
layouts/shortcodes/extlink.html

View file

@ -3,4 +3,3 @@ title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

View file

@ -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 >}}.

View file

@ -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 <masterkey-id>
gpg> addkey
@ -17,6 +19,7 @@ gpg> save
```
### Transfer subkey to other workstation:
```shell {lineanchors=transfer}
$ gpg --export --armor <masterkey-id> >masterkey-public.asc
$ gpg --export-secret-key --armor <subkey-id>! >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 <masterkey-id> \
| ssh <target-host> 'gpg --import'
@ -36,16 +40,19 @@ $ gpg --export-secret-key --armor <subkey-id>! \
```
### 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 <master-keygrip>' /bye
```
### Reorder UID priorities:
```shell {lineanchors=reorder}
# Suppose Bob has these three identities, in that order:
[ unknown] (1). Bob <bob@example.com>
@ -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)

View file

@ -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);
}

View file

@ -1,9 +1,10 @@
<!DOCTYPE html>
<html lang="en">
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
{{- block "main" . }}{{- end }}
{{- partial "footer.html" . -}}
</body>
{{- partial "head.html" . -}}
<body>
<!-- prettier-ignore -->
{{- partial "header.html" . -}}
{{- block "main" . }}{{- end }}
{{- partial "footer.html" . -}}
</body>
</html>

View file

@ -1,7 +1,5 @@
{{ define "main" }}
<main>
<article>
{{ .Content }}
</article>
<article>{{ .Content }}</article>
</main>
{{ end }}

View file

@ -1,3 +1 @@
<main>
{{ .Content }}
</main>
<main>{{ .Content }}</main>

View file

@ -1,5 +1,3 @@
{{ define "main" }}
<main>
{{ .Content }}
</main>
<main>{{ .Content }}</main>
{{ end }}

View file

@ -1,3 +1 @@
<footer>
made with &#x2764; by christoph heiss
</footer>
<footer>made with &#x2764; by christoph heiss</footer>

View file

@ -1,20 +1,28 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="language" content="english">
<meta name="author" content="Christoph Heiss">
<meta name="keywords" content="Christoph Heiss,c8h4,c8h4.io,personal,website,git,github,code,developer,hardware,software,postgresql,proxmox">
<meta name="city" content="Vienna">
<meta name="country" content="Austria">
<meta name="description" content="{{ .Description }}">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<meta name="language" content="english" />
<meta name="author" content="Christoph Heiss" />
<meta
name="keywords"
content="Christoph Heiss,c8h4,c8h4.io,personal,website,git,github,code,developer,hardware,software,postgresql,proxmox"
/>
<meta name="city" content="Vienna" />
<meta name="country" content="Austria" />
<meta name="description" content="{{ .Description }}" />
<!-- prettier-ignore -->
{{ template "_internal/opengraph.html" . }}
{{ $title := print .Title " | " .Site.Title }}
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
<title>{{ $title }}</title>
{{ $styles := resources.Get "scss/main.scss" | toCSS }}
<style>{{ $styles.Content | safeCSS }}</style>
<style>
{{ $styles.Content | safeCSS }}
</style>
</head>

View file

@ -3,17 +3,16 @@
<h1>{{ with .Params.heading }}{{ . }}{{ else }}{{ .Title }}{{ end }}</h1>
<ul>
{{ if not .IsHome }}
<li>
<a href="/">back to home</a>
</li>
{{ end }}
{{ range .Pages }}
<li>
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
</li>
<li>
<a href="/">back home</a>
</li>
{{ end }} {{ range .Pages }}
<li>
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
</li>
{{ end }}
</ul>
</nav>
<hr>
{{ with .Params.subheading }}{{ . }}{{ else }}{{ .Description }}{{ end }}
<hr />
{{ with .Params.subheading }} {{ . }} {{ else }} {{ .Description }} {{ end }}
</header>