format with prettier
Signed-off-by: Soc Virnyl Estela <contact@uncomfyhalomacro.pl>
This commit is contained in:
parent
ab7177f4b0
commit
7823ca7c38
|
@ -1,4 +1,3 @@
|
|||
---
|
||||
title: A Gist of Useful Code Snippets
|
||||
---
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ if (ls $env.CACHE_PATH | is-empty) or (ls $env.CACHE_PATH | get -i size | any {
|
|||
http get "https://lobste.rs/newest.rss" | save -f $env.RECENT_RSS
|
||||
http get "https://lobste.rs/comments.rss" | save -f $env.COMMENTS_RSS
|
||||
}
|
||||
} else if (ls $env.CACHE_PATH | get -i modified | all { |i| $i < (date now) } ) {
|
||||
} else if (ls $env.CACHE_PATH | get -i modified | all { |i| $i < (date now) } ) {
|
||||
http get "https://lobste.rs/rss" | save -f $env.ACTIVE_RSS
|
||||
http get "https://lobste.rs/newest.rss" | save -f $env.RECENT_RSS
|
||||
http get "https://lobste.rs/comments.rss" | save -f $env.COMMENTS_RSS
|
||||
|
@ -26,7 +26,7 @@ if (ls $env.CACHE_PATH | is-empty) or (ls $env.CACHE_PATH | get -i size | any {
|
|||
|
||||
let section = ($sections | to text | str trim | MENU -p "choose lobsters section>")
|
||||
let active_list = ( open --raw $env.ACTIVE_RSS | query xml //item | get //item )
|
||||
let comment_list = ( open --raw $env.COMMENTS_RSS | query xml //item | get //item )
|
||||
let comment_list = ( open --raw $env.COMMENTS_RSS | query xml //item | get //item )
|
||||
let recent_list = ( open --raw $env.RECENT_RSS | query xml //item | get //item )
|
||||
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@ date: 2024-03-05
|
|||
#!/usr/bin/nu
|
||||
alias MENU = fuzzel -d
|
||||
|
||||
let subbed_channels = [
|
||||
|
||||
let subbed_channels = [
|
||||
|
||||
chrisbiscardi
|
||||
Coderized
|
||||
CodeAesthetic
|
||||
|
@ -19,7 +19,7 @@ let subbed_channels = [
|
|||
freecodecamp
|
||||
LearnLinuxTV
|
||||
LowLevelLearning
|
||||
niccoloveslinux
|
||||
niccoloveslinux
|
||||
NoBoilerplate
|
||||
_noisecode
|
||||
RustVideos
|
||||
|
@ -54,11 +54,10 @@ for $video_title in $video_titles --numbered {
|
|||
}
|
||||
if ($chosen_video_title in $video_titles) and ($chosen_video_title in $video_title.item) {
|
||||
notify-send --icon mpv --app-name mpv $"Opening '($video_title.item)' in mpv"
|
||||
let ytflags = "(mp4,webm)[height<?1080]+bestaudio/best"
|
||||
let ytflags = "(mp4,webm)[height<?1080]+bestaudio/best"
|
||||
setsid /bin/sh -c $'mpv --slang=en --ytdl-raw-options=ignore-config=,sub-lang=en,write-auto-sub= --ytdl-format="($ytflags)" --no-fs "https://youtube.com/watch?v=($video_hashes | get $video_title.index)"'
|
||||
sleep 0.3sec
|
||||
exit 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ date: 2024-06-27
|
|||
|
||||
# Introduction
|
||||
|
||||
I'm Soc Virnyl Estela (aka ***uncomfyhalomacro***). I like to discuss about
|
||||
I'm Soc Virnyl Estela (aka **_uncomfyhalomacro_**). I like to discuss about
|
||||
Linux, Wayland, and various programming languages such as Julia, and Rust.
|
||||
|
||||
I'm a package maintainer for the [openSUSE](https://get.opensuse.org)
|
||||
|
@ -32,7 +32,7 @@ on [Sourcehut](https://sr.ht/~uncomfy) and
|
|||
- [Foot](https://codeberg.org/dnkl/foot)
|
||||
- [RiverWM](https://github.com/riverwm/river)
|
||||
- Distrobox. A podman/docker frontend.
|
||||
|
||||
|
||||
## Programming Languages I am really familiar with
|
||||
|
||||
- [Julia](https://julialang.org)
|
||||
|
|
4
index.md
4
index.md
|
@ -5,7 +5,7 @@ date: 2024-06-27
|
|||
|
||||
# Introduction
|
||||
|
||||
I'm Soc Virnyl Estela (aka ***uncomfyhalomacro***). I like to discuss about
|
||||
I'm Soc Virnyl Estela (aka **_uncomfyhalomacro_**). I like to discuss about
|
||||
Linux, Wayland, and various programming languages such as Julia, and Rust.
|
||||
|
||||
I'm a package maintainer for the [openSUSE](https://get.opensuse.org)
|
||||
|
@ -31,7 +31,7 @@ on [Sourcehut](https://sr.ht/~uncomfy) and
|
|||
- [Foot](https://codeberg.org/dnkl/foot)
|
||||
- [RiverWM](https://github.com/riverwm/river)
|
||||
- Distrobox. A podman/docker frontend.
|
||||
|
||||
|
||||
## Programming Languages I am really familiar with
|
||||
|
||||
- [Julia](https://julialang.org)
|
||||
|
|
|
@ -14,7 +14,7 @@ const config: QuartzConfig = {
|
|||
analytics: null,
|
||||
locale: "en-US",
|
||||
baseUrl: "zettel.uncomfyhalomacro.pl",
|
||||
ignorePatterns: ["private", "templates", ".obsidian", ".zk",],
|
||||
ignorePatterns: ["private", "templates", ".obsidian", ".zk"],
|
||||
defaultDateType: "created",
|
||||
theme: {
|
||||
fontOrigin: "typeof",
|
||||
|
|
|
@ -2,73 +2,69 @@ import { PageLayout, SharedLayout } from "./quartz/cfg"
|
|||
import * as Component from "./quartz/components"
|
||||
import { pathToRoot } from "../util/path"
|
||||
|
||||
|
||||
// components shared across all pages
|
||||
export const sharedPageComponents: SharedLayout = {
|
||||
head: Component.Head(),
|
||||
header: [
|
||||
Component.PageTitle(),
|
||||
Component.Darkmode(),
|
||||
Component.Search(),
|
||||
],
|
||||
footer: Component.Footer({
|
||||
}),
|
||||
header: [Component.PageTitle(), Component.Darkmode(), Component.Search()],
|
||||
footer: Component.Footer({}),
|
||||
}
|
||||
|
||||
// components for pages that display a single page (e.g. a single note)
|
||||
export const defaultContentPageLayout: PageLayout = {
|
||||
beforeBody: [
|
||||
Component.Graph({
|
||||
localGraph: {
|
||||
drag: true, // whether to allow panning the view around
|
||||
zoom: true, // whether to allow zooming in and out
|
||||
depth: 1, // how many hops of notes to display
|
||||
scale: 1.2, // default view scale
|
||||
repelForce: 0.5, // how much nodes should repel each other
|
||||
centerForce: 1.0, // how much force to use when trying to center the nodes
|
||||
linkDistance: 30, // how long should the links be by default?
|
||||
fontSize: 0.6, // what size should the node labels be?
|
||||
opacityScale: 1, // how quickly do we fade out the labels when zooming out?
|
||||
removeTags: [], // what tags to remove from the graph
|
||||
showTags: true, // whether to show tags in the graph
|
||||
},
|
||||
globalGraph: {
|
||||
drag: true,
|
||||
zoom: true,
|
||||
depth: -1,
|
||||
scale: 1.2,
|
||||
repelForce: 0.2,
|
||||
centerForce: 1.3,
|
||||
linkDistance: 15,
|
||||
fontSize: 0.6,
|
||||
opacityScale: 1,
|
||||
removeTags: [], // what tags to remove from the graph
|
||||
showTags: true, // whether to show tags in the graph
|
||||
},
|
||||
localGraph: {
|
||||
drag: true, // whether to allow panning the view around
|
||||
zoom: true, // whether to allow zooming in and out
|
||||
depth: 1, // how many hops of notes to display
|
||||
scale: 1.2, // default view scale
|
||||
repelForce: 0.5, // how much nodes should repel each other
|
||||
centerForce: 1.0, // how much force to use when trying to center the nodes
|
||||
linkDistance: 30, // how long should the links be by default?
|
||||
fontSize: 0.6, // what size should the node labels be?
|
||||
opacityScale: 1, // how quickly do we fade out the labels when zooming out?
|
||||
removeTags: [], // what tags to remove from the graph
|
||||
showTags: true, // whether to show tags in the graph
|
||||
},
|
||||
globalGraph: {
|
||||
drag: true,
|
||||
zoom: true,
|
||||
depth: -1,
|
||||
scale: 1.2,
|
||||
repelForce: 0.2,
|
||||
centerForce: 1.3,
|
||||
linkDistance: 15,
|
||||
fontSize: 0.6,
|
||||
opacityScale: 1,
|
||||
removeTags: [], // what tags to remove from the graph
|
||||
showTags: true, // whether to show tags in the graph
|
||||
},
|
||||
}),
|
||||
Component.Breadcrumbs(),
|
||||
Component.ArticleTitle(),
|
||||
Component.ContentMeta(),
|
||||
Component.TagList(),
|
||||
],
|
||||
left: [
|
||||
Component.MobileOnly(Component.Spacer()),
|
||||
Component.DesktopOnly(Component.Explorer()),
|
||||
],
|
||||
left: [Component.MobileOnly(Component.Spacer()), Component.DesktopOnly(Component.Explorer())],
|
||||
right: [
|
||||
Component.Webring({
|
||||
links: {
|
||||
"Why People are Angry over Go 1.23 Iterators": "https://www.gingerbill.org/article/2024/06/17/go-iterator-design/",
|
||||
"My RSS feed has been upgraded ✨": "https://www.roboleary.net/blog/feed-update/",
|
||||
"Programming at the edge with Fastly Compute": "https://www.integralist.co.uk/posts/fastly-compute-caching/",
|
||||
"israeli national police found trying to purchase stalkerware - #FuckStalkerware pt. 7": "https://maia.crimew.gay/posts/fuckstalkerware-7/",
|
||||
"Obsidian Freeform": "https://macwright.com/2024/06/02/freeform.html",
|
||||
"Defending myself against defensive writing": "https://pcloadletter.dev/blog/bad-networks/",
|
||||
"Writing a Unix clone in about a month": "https://drewdevault.com/2024/05/24/2024-05-24-Bunnix.html",
|
||||
"Quadlet: Running Podman containers under systemd": "https://mo8it.com/blog/quadlet/",
|
||||
"Regex engine internals as a library": "https://blog.burntsushi.net/regex-internals/",
|
||||
"Eradicating image authentication injection from the entire internet": "https://samcurry.net/eradicating-image-authentication-injection-from-the-entire-internet",
|
||||
},
|
||||
links: {
|
||||
"Why People are Angry over Go 1.23 Iterators":
|
||||
"https://www.gingerbill.org/article/2024/06/17/go-iterator-design/",
|
||||
"My RSS feed has been upgraded ✨": "https://www.roboleary.net/blog/feed-update/",
|
||||
"Programming at the edge with Fastly Compute":
|
||||
"https://www.integralist.co.uk/posts/fastly-compute-caching/",
|
||||
"israeli national police found trying to purchase stalkerware - #FuckStalkerware pt. 7":
|
||||
"https://maia.crimew.gay/posts/fuckstalkerware-7/",
|
||||
"Obsidian Freeform": "https://macwright.com/2024/06/02/freeform.html",
|
||||
"Defending myself against defensive writing": "https://pcloadletter.dev/blog/bad-networks/",
|
||||
"Writing a Unix clone in about a month":
|
||||
"https://drewdevault.com/2024/05/24/2024-05-24-Bunnix.html",
|
||||
"Quadlet: Running Podman containers under systemd": "https://mo8it.com/blog/quadlet/",
|
||||
"Regex engine internals as a library": "https://blog.burntsushi.net/regex-internals/",
|
||||
"Eradicating image authentication injection from the entire internet":
|
||||
"https://samcurry.net/eradicating-image-authentication-injection-from-the-entire-internet",
|
||||
},
|
||||
}),
|
||||
Component.DesktopOnly(Component.TableOfContents()),
|
||||
Component.Backlinks(),
|
||||
|
|
|
@ -14,32 +14,59 @@ export default ((opts?: Options) => {
|
|||
return (
|
||||
<footer class={`${displayClass ?? ""}`}>
|
||||
<hr />
|
||||
<p> {i18n(cfg.locale).components.footer.createdWith}{" "}
|
||||
<a href="https://quartz.jzhao.xyz/">Quartz v{version}</a> © {year}</p>
|
||||
<p>
|
||||
<span>
|
||||
<a class="withicon" rel="me" href="https://fosstodon.org/@uncomfyhalomacro" target="_blank">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="40" width="40" viewBox="0 0 448 512">
|
||||
<path opacity="1" d="M433 179.1c0-97.2-63.7-125.7-63.7-125.7-62.5-28.7-228.6-28.4-290.5 0 0 0-63.7 28.5-63.7 125.7 0 115.7-6.6 259.4 105.6 289.1 40.5 10.7 75.3 13 103.3 11.4 50.8-2.8 79.3-18.1 79.3-18.1l-1.7-36.9s-36.3 11.4-77.1 10.1c-40.4-1.4-83-4.4-89.6-54a102.5 102.5 0 0 1 -.9-13.9c85.6 20.9 158.7 9.1 178.8 6.7 56.1-6.7 105-41.3 111.2-72.9 9.8-49.8 9-121.5 9-121.5zm-75.1 125.2h-46.6v-114.2c0-49.7-64-51.6-64 6.9v62.5h-46.3V197c0-58.5-64-56.6-64-6.9v114.2H90.2c0-122.1-5.2-147.9 18.4-175 25.9-28.9 79.8-30.8 103.8 6.1l11.6 19.5 11.6-19.5c24.1-37.1 78.1-34.8 103.8-6.1 23.7 27.3 18.4 53 18.4 175z"/>
|
||||
</svg>
|
||||
</a>
|
||||
</span> <span>
|
||||
<a class="withicon" href="https://codeberg.org/uncomfyhalomacro" target="_blank">
|
||||
<svg height="40" width="40" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#aaa" d="M12 1A11 11 0 0 0 1 12a11 11 0 0 0 1.7 6.4L12 6l9.3 12.4A11 11 0 0 0 23 12 11 11 0 0 0 12 1Z"/><path fill="#555" d="M21.3 18.4 12 6l4.4 16.8a11 11 0 0 0 4.9-4.4Z"/></svg>
|
||||
</a>
|
||||
</span> <span>
|
||||
<a class="withicon" href="https://sr.ht/~uncomfy" target="_blank">
|
||||
<svg height="38" width="40" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200z"></path></svg>
|
||||
</a>
|
||||
</span> <span>
|
||||
<a class="withicon" href="https://github.com/uncomfyhalomacro" target="_blank">
|
||||
<svg height="40" width="40" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>
|
||||
</a>
|
||||
</span> <span>
|
||||
<a class="withicon" href="https://www.linkedin.com/in/socvirnylestela" target="_blank">
|
||||
<svg height="40" width="40" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"/></svg>
|
||||
</a>
|
||||
</span>
|
||||
{" "}
|
||||
{i18n(cfg.locale).components.footer.createdWith}{" "}
|
||||
<a href="https://quartz.jzhao.xyz/">Quartz v{version}</a> © {year}
|
||||
</p>
|
||||
<p>
|
||||
<span>
|
||||
<a
|
||||
class="withicon"
|
||||
rel="me"
|
||||
href="https://fosstodon.org/@uncomfyhalomacro"
|
||||
target="_blank"
|
||||
>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="40" width="40" viewBox="0 0 448 512">
|
||||
<path
|
||||
opacity="1"
|
||||
d="M433 179.1c0-97.2-63.7-125.7-63.7-125.7-62.5-28.7-228.6-28.4-290.5 0 0 0-63.7 28.5-63.7 125.7 0 115.7-6.6 259.4 105.6 289.1 40.5 10.7 75.3 13 103.3 11.4 50.8-2.8 79.3-18.1 79.3-18.1l-1.7-36.9s-36.3 11.4-77.1 10.1c-40.4-1.4-83-4.4-89.6-54a102.5 102.5 0 0 1 -.9-13.9c85.6 20.9 158.7 9.1 178.8 6.7 56.1-6.7 105-41.3 111.2-72.9 9.8-49.8 9-121.5 9-121.5zm-75.1 125.2h-46.6v-114.2c0-49.7-64-51.6-64 6.9v62.5h-46.3V197c0-58.5-64-56.6-64-6.9v114.2H90.2c0-122.1-5.2-147.9 18.4-175 25.9-28.9 79.8-30.8 103.8 6.1l11.6 19.5 11.6-19.5c24.1-37.1 78.1-34.8 103.8-6.1 23.7 27.3 18.4 53 18.4 175z"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
</span>{" "}
|
||||
<span>
|
||||
<a class="withicon" href="https://codeberg.org/uncomfyhalomacro" target="_blank">
|
||||
<svg height="40" width="40" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||
<path
|
||||
fill="#aaa"
|
||||
d="M12 1A11 11 0 0 0 1 12a11 11 0 0 0 1.7 6.4L12 6l9.3 12.4A11 11 0 0 0 23 12 11 11 0 0 0 12 1Z"
|
||||
/>
|
||||
<path fill="#555" d="M21.3 18.4 12 6l4.4 16.8a11 11 0 0 0 4.9-4.4Z" />
|
||||
</svg>
|
||||
</a>
|
||||
</span>{" "}
|
||||
<span>
|
||||
<a class="withicon" href="https://sr.ht/~uncomfy" target="_blank">
|
||||
<svg height="38" width="40" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200z"></path>
|
||||
</svg>
|
||||
</a>
|
||||
</span>{" "}
|
||||
<span>
|
||||
<a class="withicon" href="https://github.com/uncomfyhalomacro" target="_blank">
|
||||
<svg height="40" width="40" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512">
|
||||
<path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z" />
|
||||
</svg>
|
||||
</a>
|
||||
</span>{" "}
|
||||
<span>
|
||||
<a class="withicon" href="https://www.linkedin.com/in/socvirnylestela" target="_blank">
|
||||
<svg height="40" width="40" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
|
||||
<path d="M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z" />
|
||||
</svg>
|
||||
</a>
|
||||
</span>
|
||||
</p>
|
||||
<ul>
|
||||
{Object.entries(links).map(([text, link]) => (
|
||||
|
|
|
@ -36,7 +36,7 @@ export default (() => {
|
|||
<meta property="og:width" content="1200" />
|
||||
<meta property="og:height" content="675" />
|
||||
<link rel="icon" href={iconPath} />
|
||||
<script src="/static/bannedReferrers.js"/>
|
||||
<script src="/static/bannedReferrers.js" />
|
||||
<meta name="description" content={description} />
|
||||
<meta name="generator" content="Quartz" />
|
||||
{css.map((href) => (
|
||||
|
|
|
@ -12,13 +12,13 @@ export default ((opts?: Options) => {
|
|||
const links = opts?.links ?? []
|
||||
return (
|
||||
<div class="webring">
|
||||
<h3>
|
||||
Webring
|
||||
</h3>
|
||||
<h3>Webring</h3>
|
||||
<ul class="overflow">
|
||||
{Object.entries(links).map(([text, link]) => (
|
||||
<li>
|
||||
<a href={link} target="_blank">{text}</a>
|
||||
<a href={link} target="_blank">
|
||||
{text}
|
||||
</a>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
|
|
@ -13,14 +13,14 @@ footer {
|
|||
margin-top: -1rem;
|
||||
}
|
||||
img {
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
background-color: var(--bg);
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
background-color: var(--bg);
|
||||
}
|
||||
a {
|
||||
padding-right: 1rem;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
a.withicon:hover{
|
||||
filter: drop-shadow(4px 4px 50px #FFFFFF) contrast(200%);
|
||||
a.withicon:hover {
|
||||
filter: drop-shadow(4px 4px 50px #ffffff) contrast(200%);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,8 +15,8 @@ div.webring {
|
|||
gap: 1rem;
|
||||
margin-top: -1rem;
|
||||
& > li {
|
||||
margin-top: 0.55rem;
|
||||
line-height: 1.5rem;
|
||||
margin-top: 0.55rem;
|
||||
line-height: 1.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
try{
|
||||
const bannedReferrers = [/news\.ycombinator\.com/i, /reddit\.com/i];
|
||||
if (document.referrer) {
|
||||
const ref = new URL(document.referrer);
|
||||
if (
|
||||
!/bad-networks/i.test(window.location.href) &&
|
||||
bannedReferrers.some((r) => r.test(ref.host))
|
||||
) {
|
||||
window.location.href = "https://www.pcloadletter.dev/blog/bad-networks";
|
||||
}
|
||||
try {
|
||||
const bannedReferrers = [/news\.ycombinator\.com/i, /reddit\.com/i]
|
||||
if (document.referrer) {
|
||||
const ref = new URL(document.referrer)
|
||||
if (
|
||||
!/bad-networks/i.test(window.location.href) &&
|
||||
bannedReferrers.some((r) => r.test(ref.host))
|
||||
) {
|
||||
window.location.href = "https://www.pcloadletter.dev/blog/bad-networks"
|
||||
}
|
||||
}
|
||||
} catch (e) {}
|
||||
|
||||
|
|
68
sample.ts
68
sample.ts
|
@ -8,16 +8,21 @@ export const sharedPageComponents: SharedLayout = {
|
|||
footer: Component.Footer({
|
||||
links: {
|
||||
"About Me": "https://uncomfyhalomacro.pl",
|
||||
"Why People are Angry over Go 1.23 Iterators": "https://www.gingerbill.org/article/2024/06/17/go-iterator-design/",
|
||||
"Why People are Angry over Go 1.23 Iterators":
|
||||
"https://www.gingerbill.org/article/2024/06/17/go-iterator-design/",
|
||||
"My RSS feed has been upgraded ✨": "https://www.roboleary.net/blog/feed-update/",
|
||||
"Programming at the edge with Fastly Compute": "https://www.integralist.co.uk/posts/fastly-compute-caching/",
|
||||
"israeli national police found trying to purchase stalkerware - #FuckStalkerware pt. 7": "https://maia.crimew.gay/posts/fuckstalkerware-7/",
|
||||
"Programming at the edge with Fastly Compute":
|
||||
"https://www.integralist.co.uk/posts/fastly-compute-caching/",
|
||||
"israeli national police found trying to purchase stalkerware - #FuckStalkerware pt. 7":
|
||||
"https://maia.crimew.gay/posts/fuckstalkerware-7/",
|
||||
"Obsidian Freeform": "https://macwright.com/2024/06/02/freeform.html",
|
||||
"Defending myself against defensive writing": "https://pcloadletter.dev/blog/bad-networks/",
|
||||
"Writing a Unix clone in about a month": "https://drewdevault.com/2024/05/24/2024-05-24-Bunnix.html",
|
||||
"Writing a Unix clone in about a month":
|
||||
"https://drewdevault.com/2024/05/24/2024-05-24-Bunnix.html",
|
||||
"Quadlet: Running Podman containers under systemd": "https://mo8it.com/blog/quadlet/",
|
||||
"Regex engine internals as a library": "https://blog.burntsushi.net/regex-internals/",
|
||||
"Eradicating image authentication injection from the entire internet": "https://samcurry.net/eradicating-image-authentication-injection-from-the-entire-internet",
|
||||
"Eradicating image authentication injection from the entire internet":
|
||||
"https://samcurry.net/eradicating-image-authentication-injection-from-the-entire-internet",
|
||||
},
|
||||
}),
|
||||
}
|
||||
|
@ -39,32 +44,32 @@ export const defaultContentPageLayout: PageLayout = {
|
|||
],
|
||||
right: [
|
||||
Component.Graph({
|
||||
localGraph: {
|
||||
drag: true, // whether to allow panning the view around
|
||||
zoom: true, // whether to allow zooming in and out
|
||||
depth: 1, // how many hops of notes to display
|
||||
scale: 2.1, // default view scale
|
||||
repelForce: 0.5, // how much nodes should repel each other
|
||||
centerForce: 1.0, // how much force to use when trying to center the nodes
|
||||
linkDistance: 30, // how long should the links be by default?
|
||||
fontSize: 0.6, // what size should the node labels be?
|
||||
opacityScale: 1, // how quickly do we fade out the labels when zooming out?
|
||||
removeTags: [], // what tags to remove from the graph
|
||||
showTags: true, // whether to show tags in the graph
|
||||
},
|
||||
globalGraph: {
|
||||
drag: true,
|
||||
zoom: true,
|
||||
depth: -1,
|
||||
scale: 1.2,
|
||||
repelForce: 0.5,
|
||||
centerForce: 1.3,
|
||||
linkDistance: 30,
|
||||
fontSize: 0.6,
|
||||
opacityScale: 1,
|
||||
removeTags: [], // what tags to remove from the graph
|
||||
showTags: true, // whether to show tags in the graph
|
||||
},
|
||||
localGraph: {
|
||||
drag: true, // whether to allow panning the view around
|
||||
zoom: true, // whether to allow zooming in and out
|
||||
depth: 1, // how many hops of notes to display
|
||||
scale: 2.1, // default view scale
|
||||
repelForce: 0.5, // how much nodes should repel each other
|
||||
centerForce: 1.0, // how much force to use when trying to center the nodes
|
||||
linkDistance: 30, // how long should the links be by default?
|
||||
fontSize: 0.6, // what size should the node labels be?
|
||||
opacityScale: 1, // how quickly do we fade out the labels when zooming out?
|
||||
removeTags: [], // what tags to remove from the graph
|
||||
showTags: true, // whether to show tags in the graph
|
||||
},
|
||||
globalGraph: {
|
||||
drag: true,
|
||||
zoom: true,
|
||||
depth: -1,
|
||||
scale: 1.2,
|
||||
repelForce: 0.5,
|
||||
centerForce: 1.3,
|
||||
linkDistance: 30,
|
||||
fontSize: 0.6,
|
||||
opacityScale: 1,
|
||||
removeTags: [], // what tags to remove from the graph
|
||||
showTags: true, // whether to show tags in the graph
|
||||
},
|
||||
}),
|
||||
Component.DesktopOnly(Component.TableOfContents()),
|
||||
Component.Backlinks(),
|
||||
|
@ -84,4 +89,3 @@ export const defaultListPageLayout: PageLayout = {
|
|||
center: [],
|
||||
right: [],
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue