WIP: updated about/resume sections with research interests.:

This commit is contained in:
2022-06-22 20:23:20 +02:00
parent b99cb5a509
commit 7b54e40c84
6 changed files with 176 additions and 34 deletions

View File

@ -1,5 +1,5 @@
---
title: "Building With SVG 🖼"
title: "Building With SVG"
date: 2021-08-28T11:53:54+02:00
draft: false
toc: true
@ -131,16 +131,3 @@ Note that this figure is quite a bit more compact but adding additional labels
or customizations outside the scope of the library will probably require
quite a bit of manual work. This could be a fun side project though.
# Using Hugo Short Codes
``` go
{< python-svg dest="/images/posts/test.svg" title="This is a pyuthon-svg exmaple." >}
railroad.Diagram("foo", railroad.Choice(0, "bar", "baz"), css=style)
{< /python-svg >}
```
{{< python-svg dest="/images/posts/test.svg" title="This is a python-svg exmaple." >}}
railroad.Diagram("foo", railroad.Choice(0, "bar", "baz"), css=style)
{{< /python-svg >}}

View File

@ -98,3 +98,12 @@ return [ link["href"]
This is probably the most common use case for the `BeautifulSoup` library and
it is very effective instead of sifting through any html data.
## Cloudflare Hosted Domains
A number sites will be hosted/backed by Cloudflare that tend to keep track of
the user session in combination with the session cookies. This means that
by-passing the anti-bot measures is slightly more inconvienient than usual.
Fortunately there are a few python-libraries that help to set the request
headers correctly.

View File

@ -0,0 +1,76 @@
---
title: "Hugo Short Codes"
date: 2022-06-14T19:36:18+02:00
draft: false
toc: false
tags:
- hugo
- code
---
## Inserting columns
``` go
<div class="flex flex-wrap">
<div style="width:10em; padding: 1em;">
<img src="{{ .Get "src" }}"
{{- if or (.Get "alt") (.Get "caption") }}
alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" | markdownify | plainify }}{{ end }}"
{{- end -}}
{{- with .Get "width" }} width="{{ . }}"{{ end -}}
{{- with .Get "height" }} height="{{ . }}"{{ end -}}
/>
</div>
<div class="flex-even markdown-inner">
{{ .Inner | markdownify }}
</div>
</div>
```
## Inserting SVG Figures
``` go
<figure{{ with .Get "class" }} class="{{ . }}"{{ end }}>
{{- if .Get "link" -}}
<a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }}>
{{- end -}}
{{- if false }} <!-- python src_code {{ .Inner }} --> {{ end -}}
<img src="{{ .Get "dest" }}"
{{- if or (.Get "alt") (.Get "caption") }}
alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" | markdownify | plainify }}{{ end }}"
{{- end -}}
{{- with .Get "width" }} width="{{ . }}"{{ end -}}
{{- with .Get "height" }} height="{{ . }}"{{ end -}}
/><!-- Closing img tag -->
{{- if .Get "link" }}</a>{{ end -}}
{{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}}
<figcaption>
{{ with (.Get "title") -}}
<h4>{{ . }}</h4>
{{- end -}}
{{- if or (.Get "caption") (.Get "attr") -}}<p>
{{- .Get "caption" | markdownify -}}
{{- with .Get "attrlink" }}
<a href="{{ . }}">
{{- end -}}
{{- .Get "attr" | markdownify -}}
{{- if .Get "attrlink" }}</a>{{ end }}</p>
{{- end }}
</figcaption>
{{- end }}
</figure>
```
``` go
{< python-svg dest="/images/posts/test.svg" title="This is a pyuthon-svg exmaple." >}
railroad.Diagram("foo", railroad.Choice(0, "bar", "baz"), css=style)
{< /python-svg >}
```
{{< python-svg dest="/images/posts/test.svg" title="This is a python-svg exmaple." >}}
railroad.Diagram("foo", railroad.Choice(0, "bar", "baz"), css=style)
{{< /python-svg >}}

View File

@ -0,0 +1,19 @@
---
title: "Raspberry Pi Build"
date: 2022-06-18T16:12:09+02:00
draft: true
toc: false
images:
tags:
- untagged
---
Change the port for pi-hole lighttpd to 7070
``` bash
apt install nginx postfix
apt install dovecot-imapd dovecot-pop3d
apt install aspell-en spellutils wdutch wbritish
apt install php-net-ldap2 php-crypt-gpg php-net-ldap3
```