From 96573664a6e9a7f863abf44620f544367572e7e3 Mon Sep 17 00:00:00 2001 From: ryfrd Date: Wed, 20 Aug 2025 15:19:24 +0100 Subject: [PATCH] . --- config.toml | 19 +- content/info/index.md | 2 +- .../posts/making-nix-colors-talk-to-neovim.md | 1 + content/posts/multi-user-qtile-fiddling.md | 2 +- .../nixos-remote-auto-static-site-deploy.md | 1 + content/posts/zen-twitch-viewing-script.md | 5 +- content/search/_index.md | 3 + layouts/_default/search.html | 36 + layouts/_default/single.html | 6 +- layouts/index.html | 8 +- layouts/partials/footer.html | 4 +- layouts/partials/header.html | 5 - layouts/partials/results.html | 5 - layouts/partials/search.html | 1 - public/404.html | 2 +- .../index.html | 31 +- public/bread-dough-for-lazy-boys/index.html | 31 +- public/categories/index.html | 29 +- public/categories/index.xml | 116 +- public/css/main.css | 84 +- .../index.html | 31 +- .../index.html | 31 +- .../index.html | 36 +- public/index.html | 116 +- public/index.json | 2 +- public/info/index.html | 33 +- public/js/search.js | 7 +- .../index.html | 31 +- .../index.html | 31 +- .../index.html | 34 +- public/multi-user-qtile-fiddling/index.html | 31 +- .../index.html | 38 +- public/posts/index.html | 29 +- public/posts/index.xml | 116 +- public/python-podcast-scripting/index.html | 31 +- .../index.html | 31 +- public/search/index.html | 255 ++- public/search/index.xml | 1524 +++++++++++++++++ public/search/page/1/index.html | 10 + public/search/page/2/index.html | 81 + public/search/page/3/index.html | 60 + .../index.html | 31 +- public/sitemap.xml | 94 +- .../index.html | 31 +- public/tags/bash-script-twitch/index.html | 29 +- public/tags/bash-script-twitch/index.xml | 116 +- public/tags/bash/index.html | 29 +- public/tags/bash/index.xml | 116 +- public/tags/caddy/index.html | 29 +- public/tags/caddy/index.xml | 116 +- public/tags/chess/index.html | 29 +- public/tags/chess/index.xml | 116 +- public/tags/cooking/index.html | 29 +- public/tags/cooking/index.xml | 116 +- public/tags/css/index.html | 29 +- public/tags/css/index.xml | 116 +- public/tags/docker/index.html | 29 +- public/tags/docker/index.xml | 116 +- public/tags/emacs/index.html | 29 +- public/tags/emacs/index.xml | 116 +- public/tags/home-manager/index.html | 29 +- public/tags/home-manager/index.xml | 116 +- public/tags/index.html | 29 +- public/tags/index.xml | 116 +- public/tags/javascript/index.html | 29 +- public/tags/javascript/index.xml | 116 +- public/tags/lua/index.html | 29 +- public/tags/lua/index.xml | 116 +- public/tags/music/index.html | 29 +- public/tags/music/index.xml | 116 +- public/tags/neovim/index.html | 29 +- public/tags/neovim/index.xml | 116 +- public/tags/nix-colors/index.html | 29 +- public/tags/nix-colors/index.xml | 116 +- public/tags/nixos/index.html | 29 +- public/tags/nixos/index.xml | 116 +- public/tags/podman/index.html | 29 +- public/tags/podman/index.xml | 116 +- public/tags/python/index.html | 29 +- public/tags/python/index.xml | 116 +- public/tags/qtile/index.html | 29 +- public/tags/qtile/index.xml | 116 +- public/tags/self-hosting/index.html | 29 +- public/tags/self-hosting/index.xml | 116 +- public/tags/tailscale/index.html | 29 +- public/tags/tailscale/index.xml | 116 +- .../index.html | 31 +- .../teeny-tiny-bash-fetch-script/index.html | 31 +- .../index.html | 31 +- .../index.html | 31 +- public/translating-docker-to-nix/index.html | 31 +- .../index.html | 31 +- .../index.html | 31 +- static/css/main.css | 84 +- static/js/search.js | 7 +- 95 files changed, 4130 insertions(+), 2328 deletions(-) create mode 100644 content/search/_index.md create mode 100644 layouts/_default/search.html create mode 100644 public/search/index.xml create mode 100644 public/search/page/1/index.html create mode 100644 public/search/page/2/index.html create mode 100644 public/search/page/3/index.html diff --git a/config.toml b/config.toml index fd54b33..6e412f6 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,5 @@ baseURL = "https://nonsense.dymc.win" title = "James' Blog" -# theme = "etch" languageCode = "en-GB" enableInlineShortcodes = true pygmentsCodeFences = true @@ -12,17 +11,17 @@ pygmentsUseClasses = true [menu] [[menu.main]] - identifier = "--help" - name = "--help" - title = "--help" + identifier = "👋" + name = "👋" + title = "👋" url = "/info/" weight = 20 - # [[menu.main]] - # identifier = "search" - # name = "search" - # title = "search" - # url = "/search/" - # weight = 20 + [[menu.main]] + identifier = "🔎" + name = "🔎" + title = "🔎" + url = "/search/" + weight = 20 [permalinks] posts = "/:title/" diff --git a/content/info/index.md b/content/info/index.md index f49b687..3b0449b 100644 --- a/content/info/index.md +++ b/content/info/index.md @@ -2,4 +2,4 @@ This is a place to document bits and bobs I've been up to that have interested m Expect linux and self-hosting tinkering, some novice programming, and maybe the occasional recipe. I tend to be a fool so take anything written here with a pinch of salt :) -- [rss HERE!!](../index.xml) +[rss feed here!](../index.xml) diff --git a/content/posts/making-nix-colors-talk-to-neovim.md b/content/posts/making-nix-colors-talk-to-neovim.md index dd43b76..2eb3388 100644 --- a/content/posts/making-nix-colors-talk-to-neovim.md +++ b/content/posts/making-nix-colors-talk-to-neovim.md @@ -11,6 +11,7 @@ draft: false I recently started fiddling around with home-managerifying my neovim config. After moving across most of my stuff I came across the problem of how to hook things up with with [nix-colors](https://github.com/misterio77/nix-colors) so that my neovim theme would follow color changes in home-manager. + Luckily, I came across [this](https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-base16.md) handy little plugin from the lovely [mini.nvim](https://github.com/echasnovski/mini.nvim) suite of plugins which lets you create your own theme with your custom colors. diff --git a/content/posts/multi-user-qtile-fiddling.md b/content/posts/multi-user-qtile-fiddling.md index 9bbd7cf..ed01a8f 100644 --- a/content/posts/multi-user-qtile-fiddling.md +++ b/content/posts/multi-user-qtile-fiddling.md @@ -1,6 +1,6 @@ --- title: Multi user qtile fiddling -date: 2022-12-20 +date: 2022-12-20 tags: - qtile - python diff --git a/content/posts/nixos-remote-auto-static-site-deploy.md b/content/posts/nixos-remote-auto-static-site-deploy.md index 03e6f18..3ac9872 100644 --- a/content/posts/nixos-remote-auto-static-site-deploy.md +++ b/content/posts/nixos-remote-auto-static-site-deploy.md @@ -9,6 +9,7 @@ draft: false As is traditional with people hosting their own blog I'm going to do a post detailing EXACTLY how I'm hosting my blog. Down to the last dirty detail. I have nothing better to talk about. + Here is a diagram I edited to illustrate (credit to xkcd I think?). ![self-hosting](/image/self-hosting.png) diff --git a/content/posts/zen-twitch-viewing-script.md b/content/posts/zen-twitch-viewing-script.md index fd667f7..5b355da 100644 --- a/content/posts/zen-twitch-viewing-script.md +++ b/content/posts/zen-twitch-viewing-script.md @@ -12,6 +12,7 @@ I'm declining cookies. I'm getting spammed with notifications to claim a sick new overwatch skin. There's a little channel point button twerking for me to click it. You get the idea; it's a heavy noisy experience. + As a result I set out to devise a solution which does spark joy. I came up with a script which leans on DIY desktop staples (dunst, tofi, mpv) and the very nice cli utility [streamlink](https://github.com/streamlink/streamlink). @@ -71,7 +72,7 @@ if [[ -n "$choice" ]]; then # get first column from selection aka stream name meat=$(echo "$choice" | awk '{print $1}') "${NOTIFY}" "twitch -- launching twitch.tv/$meat" - streamlink twitch.tv/"$meat" 1080p60 --player $"{PLAYER}" + streamlink twitch.tv/"$meat" 1080p60 --player "${PLAYER}" fi ``` @@ -104,3 +105,5 @@ fi - no chat (you might want to spam LUL) - takes a second to talk to the internet so things don't launch immediately - have to faff with getting api key - [how to get one btw](https://dev.twitch.tv/docs/api/get-started/) + +Hope you enjoyed bye diff --git a/content/search/_index.md b/content/search/_index.md new file mode 100644 index 0000000..c7dd7f6 --- /dev/null +++ b/content/search/_index.md @@ -0,0 +1,3 @@ +--- +layout: "search" +--- diff --git a/layouts/_default/search.html b/layouts/_default/search.html new file mode 100644 index 0000000..a458d63 --- /dev/null +++ b/layouts/_default/search.html @@ -0,0 +1,36 @@ +{{ define "main" }} + +

This is not a very clever search. It simply looks if the content of a post contains your query.

+ + + + + +

Alternatively, this is everything.

+ +{{ $pages := where site.RegularPages "Type" "posts" }} +{{ $years := $pages.GroupByDate "2006" }} + + +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index f0facf2..09e8033 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,12 +1,12 @@ {{ define "main" }}
-

{{ .Title }}

+

{{ .Title }}

{{- if isset .Params "date" -}} {{ if eq .Lastmod .Date }} - +

{{ .Date | time.Format (i18n "post.created") }}

{{ else }} - +

{{ .Lastmod | time.Format (i18n "post.updated") }}

{{ end }} {{- end -}}
diff --git a/layouts/index.html b/layouts/index.html index d868b30..20d5767 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,3 +1,9 @@ {{ define "main" }} -{{ partial "results.html" . }} +{{ range first 5 (where .Site.RegularPages "Type" "in" site.Params.mainSections) }} +
+

{{ .Title }}

+

{{ .Date.Format "Jan 2, 2006" }}

+

{{ .Summary }}

+
+{{ end }} {{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 151a640..7fe9603 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,8 +1,6 @@ -
- made with hugo and my bastardised version of - this nice theme + made with hugo diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 874d6ed..3c10d64 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,6 +1,5 @@ diff --git a/layouts/partials/results.html b/layouts/partials/results.html index efa3088..e69de29 100644 --- a/layouts/partials/results.html +++ b/layouts/partials/results.html @@ -1,5 +0,0 @@ -
    - {{ range where site.RegularPages "Type" "in" site.Params.mainSections }} -
  • {{ .Title }}
  • - {{ end }} -
diff --git a/layouts/partials/search.html b/layouts/partials/search.html index 4472006..e69de29 100644 --- a/layouts/partials/search.html +++ b/layouts/partials/search.html @@ -1 +0,0 @@ - diff --git a/public/404.html b/public/404.html index d8fa191..326ef8b 100644 --- a/public/404.html +++ b/public/404.html @@ -1 +1 @@ -

uhoh 404 :/

+

uhoh 404 :/

diff --git a/public/achieve-peak-rice-with-nix-colors/index.html b/public/achieve-peak-rice-with-nix-colors/index.html index 3b262d5..a7ffb3d 100644 --- a/public/achieve-peak-rice-with-nix-colors/index.html +++ b/public/achieve-peak-rice-with-nix-colors/index.html @@ -1,38 +1,38 @@ - + - + - + Achieve peak rice with nix-colors
-

Achieve peak rice with nix-colors

+

Achieve peak rice with nix-colors

- +

March 13, 2023

As I fall deeper and deeper down the nixos rabbit hole, I find myself becoming more and more obsessed with controlling every little thing on my computers declaratively. It starts with: ‘oh this is cool I can specify which desktop environment to use in my configuration.nix’. Next thing you know you’ve discovered home-manager and every program on every linux system you use needs to be controlled in your nix-config. Of course this slightly insane approach has its downsides; it also opens some doors though.

Nix-colors lets you dyanmically change the theming of programs controlled in your nix config. So when you want to change the color of everything and have it match and all be pretty lol, you are able to do so with one word as opposed to poring over everything changing each individual color. For a certain type of person, this is very nice!

@@ -124,12 +124,9 @@

That’s it for today. Thank you to the hero that made this.

- -
-

-----------------

+
- made with hugo and my bastardised version of - this nice theme + made with hugo diff --git a/public/bread-dough-for-lazy-boys/index.html b/public/bread-dough-for-lazy-boys/index.html index 83f4752..896f137 100644 --- a/public/bread-dough-for-lazy-boys/index.html +++ b/public/bread-dough-for-lazy-boys/index.html @@ -1,38 +1,38 @@ - + - + - + Bread dough for lazy boys
-

Bread dough for lazy boys

+

Bread dough for lazy boys

- +

January 22, 2023

INGREDIENTI

    @@ -71,12 +71,9 @@
- -
-

-----------------

+
- made with hugo and my bastardised version of - this nice theme + made with hugo diff --git a/public/categories/index.html b/public/categories/index.html index 808ba0f..adc039b 100644 --- a/public/categories/index.html +++ b/public/categories/index.html @@ -1,31 +1,31 @@ - + - - + + - + Categories
@@ -71,12 +71,9 @@ Rudimentary local scrobbling with bash
- -
-

-----------------

+
- made with hugo and my bastardised version of - this nice theme + made with hugo diff --git a/public/categories/index.xml b/public/categories/index.xml index fe40dfd..74e5829 100644 --- a/public/categories/index.xml +++ b/public/categories/index.xml @@ -2,21 +2,21 @@ Categories on James' Blog - http://localhost:1313/categories/ + https://nonsense.dymc.win/categories/ Recent content in Categories on James' Blog Hugo -- gohugo.io en-GB - + Handy script for a more zen twitch experience - http://localhost:1313/handy-script-for-a-more-zen-twitch-experience/ + https://nonsense.dymc.win/handy-script-for-a-more-zen-twitch-experience/ Wed, 13 Aug 2025 00:00:00 +0000 - http://localhost:1313/handy-script-for-a-more-zen-twitch-experience/ + https://nonsense.dymc.win/handy-script-for-a-more-zen-twitch-experience/ <p>I like to watch twitch streams. Watching them in the browser at <code>twitch.tv</code> is generally not an experience which sparks joy though. I&rsquo;m buffering. @@ -80,7 +80,7 @@ Here it is:</p> </span></span><span class="line"><span class="cl"> <span class="c1"># get first column from selection aka stream name</span> </span></span><span class="line"><span class="cl"> <span class="nv">meat</span><span class="o">=</span><span class="k">$(</span><span class="nb">echo</span> <span class="s2">&#34;</span><span class="nv">$choice</span><span class="s2">&#34;</span> <span class="p">|</span> awk <span class="s1">&#39;{print $1}&#39;</span><span class="k">)</span> </span></span><span class="line"><span class="cl"> <span class="s2">&#34;</span><span class="si">${</span><span class="nv">NOTIFY</span><span class="si">}</span><span class="s2">&#34;</span> <span class="s2">&#34;twitch -- launching twitch.tv/</span><span class="nv">$meat</span><span class="s2">&#34;</span> -</span></span><span class="line"><span class="cl"> streamlink twitch.tv/<span class="s2">&#34;</span><span class="nv">$meat</span><span class="s2">&#34;</span> 1080p60 --player <span class="s2">$&#34;{PLAYER}&#34;</span> +</span></span><span class="line"><span class="cl"> streamlink twitch.tv/<span class="s2">&#34;</span><span class="nv">$meat</span><span class="s2">&#34;</span> 1080p60 --player <span class="s2">&#34;</span><span class="si">${</span><span class="nv">PLAYER</span><span class="si">}</span><span class="s2">&#34;</span> </span></span><span class="line"><span class="cl"><span class="k">fi</span> </span></span></code></pre></div><h3 id="what-it-does">What it does:</h3> <ul> @@ -111,22 +111,22 @@ Here it is:</p> <li>takes a second to talk to the internet so things don&rsquo;t launch immediately</li> <li>have to faff with getting api key - <a href="https://dev.twitch.tv/docs/api/get-started/">how to get one btw</a></li> </ul> - +<p>Hope you enjoyed bye</p> Over-engineered (?) nixos blog deployment setup - http://localhost:1313/over-engineered-nixos-blog-deployment-setup/ + https://nonsense.dymc.win/over-engineered-nixos-blog-deployment-setup/ Mon, 11 Aug 2025 00:00:00 +0000 - http://localhost:1313/over-engineered-nixos-blog-deployment-setup/ + https://nonsense.dymc.win/over-engineered-nixos-blog-deployment-setup/ <p>As is traditional with people hosting their own blog I&rsquo;m going to do a post detailing EXACTLY how I&rsquo;m hosting my blog. Down to the last dirty detail. -I have nothing better to talk about. -Here is a diagram I edited to illustrate (credit to xkcd I think?).</p> -<p><img src="http://localhost:1313/image/self-hosting.png" alt="self-hosting"></p> +I have nothing better to talk about.</p> +<p>Here is a diagram I edited to illustrate (credit to xkcd I think?).</p> +<p><img src="https://nonsense.dymc.win/image/self-hosting.png" alt="self-hosting"></p> <p>I host my site on a hetzner vps running nixos. I also have a git repo where all the static files for my blog live. I had previously been manually rsyncing the website up to my vps from my laptop. @@ -204,18 +204,17 @@ That&rsquo;s the directory of the git repo that the website source lives.< <li>Update the <code>rev</code> and <code>sha256</code> to the new commit (this is annoying and I&rsquo;m trying to work out a good way to automate it)</li> <li>Rebuild vps from laptop</li> </ul> -<p>Not necessarily faster than the old rsync method but it&rsquo;s pretty damn declarative, that&rsquo;s for sure.</p> - +<p>Not necessarily faster than the old rsync method but it&rsquo;s pretty damn declarative, that&rsquo;s for sure.</p> So you want to write a neovim plugin with lua - http://localhost:1313/so-you-want-to-write-a-neovim-plugin-with-lua/ + https://nonsense.dymc.win/so-you-want-to-write-a-neovim-plugin-with-lua/ Sat, 06 Apr 2024 00:00:00 +0000 - http://localhost:1313/so-you-want-to-write-a-neovim-plugin-with-lua/ + https://nonsense.dymc.win/so-you-want-to-write-a-neovim-plugin-with-lua/ <p>I&rsquo;ve recently been messing around with writing neovim plugins. When I initially got going I found it a little tricky to know how to get started. There&rsquo;s the <a href="https://neovim.io/doc">official neovim docs</a> which are great; but in my beginner experience exhaustive to the point of slight impenetrability. @@ -289,10 +288,10 @@ As a little coda, this is how you can use your fancy new plugin using <a href Making nix-colors talk to neovim - http://localhost:1313/making-nix-colors-talk-to-neovim/ + https://nonsense.dymc.win/making-nix-colors-talk-to-neovim/ Fri, 18 Aug 2023 00:00:00 +0000 - http://localhost:1313/making-nix-colors-talk-to-neovim/ + https://nonsense.dymc.win/making-nix-colors-talk-to-neovim/ <p>I recently started fiddling around with home-managerifying my neovim config. After moving across most of my stuff I came across the problem of how to hook things up with with <a href="https://github.com/misterio77/nix-colors">nix-colors</a> so that my neovim theme would follow color changes in home-manager.</p> <p>Luckily, I came across <a href="https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-base16.md">this</a> handy little plugin from the lovely <a href="https://github.com/echasnovski/mini.nvim">mini.nvim</a> suite of plugins which lets you create your own theme with your custom colors.</p> @@ -335,18 +334,17 @@ After moving across most of my stuff I came across the problem of how to hook th </span></span><span class="line"><span class="cl"> <span class="p">];</span> </span></span><span class="line"><span class="cl"> <span class="p">};</span> </span></span><span class="line"><span class="cl"><span class="p">}</span> -</span></span></code></pre></div><p>Happy theming!</p> - +</span></span></code></pre></div><p>Happy theming!</p> Vanilla javascript theme toggle for simpletons - http://localhost:1313/vanilla-javascript-theme-toggle-for-simpletons/ + https://nonsense.dymc.win/vanilla-javascript-theme-toggle-for-simpletons/ Mon, 26 Jun 2023 00:00:00 +0000 - http://localhost:1313/vanilla-javascript-theme-toggle-for-simpletons/ + https://nonsense.dymc.win/vanilla-javascript-theme-toggle-for-simpletons/ <p>Sometimes when I&rsquo;m trawling the internet and happen upon a particularly nice looking website, I develop css and javascript FOMO. The thing I&rsquo;ve been lusting after above all else is one of those fancy little dark theme toggle buttons. As you can probably tell from the website you&rsquo;re looking at my web dev skills are limited. As a result of this I had assumed such niceties were out of reach.</p> <p>Last week though I decided it was time for this to change! I would do a teeny bit of javascript. I could have nice things. This is a rundown of the very simple implementation I came up with.</p> <h3 id="html">HTML</h3> @@ -430,10 +428,10 @@ After moving across most of my stuff I came across the problem of how to hook th Tailscale, caddy, and nixos containers - http://localhost:1313/tailscale-caddy-and-nixos-containers/ + https://nonsense.dymc.win/tailscale-caddy-and-nixos-containers/ Tue, 16 May 2023 00:00:00 +0000 - http://localhost:1313/tailscale-caddy-and-nixos-containers/ + https://nonsense.dymc.win/tailscale-caddy-and-nixos-containers/ <p>For a little while now I&rsquo;ve been running some services (jellyfin etc.) on an old laptop in my house. I&rsquo;m not trying to sound like a podcast ad but as a networking novice, the simplicity <a href="https://tailscale.com/">tailscale</a> brings to accessing these services remotely is very nice. Until recently though, I had been accessing my services like a heathen with http and port numbers (eg http://tailscale-ip:service-port). This works and is perfectly secure thanks to tailscale though it lacks a certain finesse. In an ideal world you&rsquo;d have a reverse proxy and set up SSL certs so your browser doesn&rsquo;t get stressed and you dont have to rememeber ip addresses and port numbers.</p> <p>When I initially looked at how to do this it seemed like it was above my paygrade and not worth the stress; that was until I came across <a href="https://caddy.community/t/https-in-your-vpn-caddy-now-uses-tls-certificates-from-tailscale/15380">this</a>. This works great and is as simple as advertised though there is one drawback: you can only reverse proxy one service per host. So for my usecase of the laptop with multiple services running on it I could only use the magic caddy tailscale auto-https thing for one of them.</p> <h3 id="what-to-do">what to do?</h3> @@ -499,10 +497,10 @@ After moving across most of my stuff I came across the problem of how to hook th Learning about qtile widgets with cricket - http://localhost:1313/learning-about-qtile-widgets-with-cricket/ + https://nonsense.dymc.win/learning-about-qtile-widgets-with-cricket/ Mon, 03 Apr 2023 00:00:00 +0000 - http://localhost:1313/learning-about-qtile-widgets-with-cricket/ + https://nonsense.dymc.win/learning-about-qtile-widgets-with-cricket/ <p>I&rsquo;m a person who has spent an unreasonable amount of time making minute changes to the appearance of my bar in qtile. Despite the very nice selection of widgets availabe by default with qtile, it was only a matter of time before I decided I wanted to experiment with making my own custom widget. Fortunately, if you can do a bit of python this is quite an approachable undertaking.</p> <p>The dream widget I was lacking was a little live crikcet score ticker type thing; something which would scroll along on my bar showing me the score in live cricket matches. I&rsquo;m sure this will interest very few people but I learnt some good stuff along the way.</p> <h3 id="hello-world">Hello World?!</h3> @@ -611,10 +609,10 @@ After moving across most of my stuff I came across the problem of how to hook th Achieve peak rice with nix-colors - http://localhost:1313/achieve-peak-rice-with-nix-colors/ + https://nonsense.dymc.win/achieve-peak-rice-with-nix-colors/ Mon, 13 Mar 2023 00:00:00 +0000 - http://localhost:1313/achieve-peak-rice-with-nix-colors/ + https://nonsense.dymc.win/achieve-peak-rice-with-nix-colors/ <p>As I fall deeper and deeper down the nixos rabbit hole, I find myself becoming more and more obsessed with controlling every little thing on my computers declaratively. It starts with: &lsquo;oh this is cool I can specify which desktop environment to use in my configuration.nix&rsquo;. Next thing you know you&rsquo;ve discovered <a href="https://github.com/nix-community/home-manager">home-manager</a> and every program on every linux system you use needs to be controlled in your nix-config. Of course this slightly insane approach has its downsides; it also opens some doors though.</p> <p><a href="https://sr.ht/~misterio/nix-colors/">Nix-colors</a> lets you dyanmically change the theming of programs controlled in your nix config. So when you want to change the color of everything and have it match and all be pretty lol, you are able to do so with one word as opposed to poring over everything changing each individual color. For a certain type of person, this is very nice!</p> <h3 id="how-to-make-it-work">how to make it work</h3> @@ -710,10 +708,10 @@ After moving across most of my stuff I came across the problem of how to hook th Translating docker to nix?! - http://localhost:1313/translating-docker-to-nix/ + https://nonsense.dymc.win/translating-docker-to-nix/ Tue, 28 Feb 2023 00:00:00 +0000 - http://localhost:1313/translating-docker-to-nix/ + https://nonsense.dymc.win/translating-docker-to-nix/ <p>In my opinion, there are moments when the convenience of docker and its surrounding ecosystem can&rsquo;t be beat. I&rsquo;ve been dabbling in the self hosting world and oftentimes the best maintained packaging option is a docker image. As a result of this I&rsquo;ve been playing around with the nixos approach to managing docker containers.</p> <h3 id="nix---docker-compose---docker-run">nix -&gt; docker compose -&gt; docker run</h3> <p>To illustrate how to translate a simple example from the world of docker to nix let&rsquo;s have a look at the config for my <a href="https://docs.searxng.org/">searxng</a> instance.</p> @@ -764,10 +762,10 @@ After moving across most of my stuff I came across the problem of how to hook th Simple nixos config for vps static site - http://localhost:1313/simple-nixos-config-for-vps-static-site/ + https://nonsense.dymc.win/simple-nixos-config-for-vps-static-site/ Sun, 29 Jan 2023 00:00:00 +0000 - http://localhost:1313/simple-nixos-config-for-vps-static-site/ + https://nonsense.dymc.win/simple-nixos-config-for-vps-static-site/ <p>Setting up a little static site is something I&rsquo;ve done a few different times on a few different operating systems. It&rsquo;s a slightly fiddly task with a few disparate jobs that all need looking after: ssh, let&rsquo;s encrypt, nginx. In my opinion, it is one of the moments where consolidating all the little bits and bobs you need to setup into one common configuration is very useful.</p> <p>I&rsquo;m going to go through a bit of the nixos config I&rsquo;ve got for my vps.</p> <h3 id="ssh">SSH</h3> @@ -824,10 +822,10 @@ After moving across most of my stuff I came across the problem of how to hook th Python podcast scripting - http://localhost:1313/python-podcast-scripting/ + https://nonsense.dymc.win/python-podcast-scripting/ Tue, 24 Jan 2023 00:00:00 +0000 - http://localhost:1313/python-podcast-scripting/ + https://nonsense.dymc.win/python-podcast-scripting/ <p>I have an old sad android phone with 2GB of ram which nowadays seems struggles these days. As a result of this I have been &lsquo;podcast-player-hopping&rsquo; without success for the last couple of months trying to find something which doesn&rsquo;t nuke my phone whenever I use it. In a moment of desperation it occured to me that a creative solution might be required. The gameplan was this:</p> <ul> <li>write python script to download podcasts</li> @@ -916,10 +914,10 @@ After moving across most of my stuff I came across the problem of how to hook th Bread dough for lazy boys - http://localhost:1313/bread-dough-for-lazy-boys/ + https://nonsense.dymc.win/bread-dough-for-lazy-boys/ Sun, 22 Jan 2023 00:00:00 +0000 - http://localhost:1313/bread-dough-for-lazy-boys/ + https://nonsense.dymc.win/bread-dough-for-lazy-boys/ <h3 id="ingredienti">INGREDIENTI</h3> <ul> <li>flour (ideally bread flour but if you don&rsquo;t have it, it&rsquo;s not the end of the world)</li> @@ -962,10 +960,10 @@ After moving across most of my stuff I came across the problem of how to hook th Multi user qtile fiddling - http://localhost:1313/multi-user-qtile-fiddling/ + https://nonsense.dymc.win/multi-user-qtile-fiddling/ Tue, 20 Dec 2022 00:00:00 +0000 - http://localhost:1313/multi-user-qtile-fiddling/ + https://nonsense.dymc.win/multi-user-qtile-fiddling/ <p>This post is going to detail how I solved a very particular problem I had created for myself. First, a quick description of the problem. I use home-manager on nixos to declaratively configure what happens on my computer. In the cases where home-manager does not expose sufficient configuration options for my liking (qtile for example), I instead link a configuration file from my nixos config to where it belongs in my home using <code>xdg.configFile</code>. This is what I do with my qtile <code>config.py</code>. I use qtile on my desktop and laptop but I dont want an identical setup on the two machines. I have jumped through many different slightly silly hoops in my nixos config sort of solving this problem until the other day it occured to me this could all be achieved with my python in my qtile config.</p> <h3 id="the-nub-of-the-problem">THE NUB OF THE PROBLEM</h3> <p>I basically just want the config to work out which computer it&rsquo;&rsquo;s on and then change some things accordingly. This can be achieved by getting the hostname with the socket module:</p> @@ -1042,10 +1040,10 @@ After moving across most of my stuff I came across the problem of how to hook th Teeny tiny bash fetch script - http://localhost:1313/teeny-tiny-bash-fetch-script/ + https://nonsense.dymc.win/teeny-tiny-bash-fetch-script/ Sat, 10 Dec 2022 00:00:00 +0000 - http://localhost:1313/teeny-tiny-bash-fetch-script/ + https://nonsense.dymc.win/teeny-tiny-bash-fetch-script/ <p>This is my attempt at a neofetch, pfetch, whateverfetch style system info utility. My main concern was making something which looked nice, was easily configurable, and as portable as possible (I didn&rsquo;t really try that hard with the portability). I didn&rsquo;t think much about performance; I&rsquo;m personally not a man who stresses too much when a command takes a quarter of a second instead of a tenth. The basic gameplan was to get an array of bash commands which would fetch various bits and bobs, then loop through this array formatting the text with ANSI escape codes. First things first, this was the associative array I came up with:</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">declare</span> -A <span class="nv">fetch</span><span class="o">=(</span> </span></span><span class="line"><span class="cl"> <span class="o">[</span>user<span class="o">]=</span><span class="s2">&#34;</span><span class="nv">$USER</span><span class="s2">&#34;</span> @@ -1114,7 +1112,7 @@ After moving across most of my stuff I came across the problem of how to hook th </span></span><span class="line"><span class="cl"> <span class="nb">echo</span> -e <span class="s2">&#34;</span><span class="k">$(</span>random_color<span class="k">)</span><span class="s2"> \e[0;1;3m</span><span class="nv">$info</span><span class="s2">\e[0m</span><span class="si">${</span><span class="nv">sep</span><span class="si">}${</span><span class="nv">fetch</span><span class="p">[</span><span class="nv">$info</span><span class="p">]</span><span class="si">}</span><span class="s2">&#34;</span> </span></span><span class="line"><span class="cl"><span class="k">done</span> </span></span></code></pre></div><p>This had the happy unintended consequence of allowing you to very easily configure which items you wanted in the fetch by simply commenting out keys from the order array. You can check out the script in its entirety <a href="https://gitlab.com/robbygozzarder/golazo">here</a>. This is a pretty picture of a few variations.</p> -<p><img src="http://localhost:1313/image/golazo.png" alt="golazo"></p> +<p><img src="https://nonsense.dymc.win/image/golazo.png" alt="golazo"></p> @@ -1122,10 +1120,10 @@ After moving across most of my stuff I came across the problem of how to hook th Get the thoughts out of your head and into a digital format with this python journalling script - http://localhost:1313/get-the-thoughts-out-of-your-head-and-into-a-digital-format-with-this-python-journalling-script/ + https://nonsense.dymc.win/get-the-thoughts-out-of-your-head-and-into-a-digital-format-with-this-python-journalling-script/ Thu, 01 Dec 2022 00:00:00 +0000 - http://localhost:1313/get-the-thoughts-out-of-your-head-and-into-a-digital-format-with-this-python-journalling-script/ + https://nonsense.dymc.win/get-the-thoughts-out-of-your-head-and-into-a-digital-format-with-this-python-journalling-script/ <p>Since getting going with emacs I&rsquo;ve gone down the org-mode rabbit hole a little bit. In particular the very nice <a href="https://github.com/bastibe/org-journal">org-journal</a> package. It basically does what it says on the tin: maintains a journal with a selection of org files. This has been very nice for me. I have often thought about journalling but never really got up a head of steam. Somehow having an entry a keybinding away while I&rsquo;m doing something with my text editor makes it a lot more palletable.</p> <p>Having said all this, I am not completely converted to the church of emacs. Thus, I thoght it would be nice to write a little editor agnostic script which would emulate some of org-journal&rsquo;s features but allow you to use whatever editor you like with markdown.</p> <h3 id="whats-the-time">WHAT&rsquo;S THE TIME?</h3> @@ -1186,10 +1184,10 @@ After moving across most of my stuff I came across the problem of how to hook th Lowkey emacs setup bits and bobs - http://localhost:1313/lowkey-emacs-setup-bits-and-bobs/ + https://nonsense.dymc.win/lowkey-emacs-setup-bits-and-bobs/ Fri, 18 Nov 2022 00:00:00 +0000 - http://localhost:1313/lowkey-emacs-setup-bits-and-bobs/ + https://nonsense.dymc.win/lowkey-emacs-setup-bits-and-bobs/ <p>About a month ago I was a little bored and thought I&rsquo;d give emacs a go. There&rsquo;s something fun about trying out these mythical pieces of software that have been around forever; kind of like watching The Godfather for the first time. Like many extensible, super configurable programs, emacs seems kind of impenetrable at first glance. I tried doing the tutorial but kind of glazed over after a while with the endless stream of C-a C-b C-c. There&rsquo;s also the quite jarring default theme which wasn&rsquo;t vibing with the lovely screenshots I had seen on the internet. Anyway, after quite a bit of fiddling I&rsquo;ve landed on a simple little setup that I&rsquo;ve been quite enjoying. Here are a few little pointers to hopefully ease you in.</p> <h3 id="aesthetic-niceties">AESTHETIC NICETIES</h3> <p>First things first, assuming you&rsquo;re on linux emacs is configured with a file at <code>~/.emacs.d/init.el</code>. As a terrible aesthete, the first thing I was worried about was changing the theme. This can be achieved with <code>M-x load-theme</code>; if you want the setting to persist though you can add this to you init.el:</p> @@ -1262,7 +1260,7 @@ After moving across most of my stuff I came across the problem of how to hook th <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-lisp" data-lang="lisp"><span class="line"><span class="cl"><span class="p">(</span><span class="nf">use-package</span> <span class="nv">smart-comment</span> </span></span><span class="line"><span class="cl"> <span class="ss">:bind</span> <span class="p">(</span><span class="s">&#34;M-c&#34;</span> <span class="o">.</span> <span class="nv">smart-comment</span><span class="p">))</span> </span></span></code></pre></div><p>Here&rsquo;s a little pic of the current setup :)</p> -<p><img src="http://localhost:1313/image/emacs.png" alt="emacs"></p> +<p><img src="https://nonsense.dymc.win/image/emacs.png" alt="emacs"></p> @@ -1270,10 +1268,10 @@ After moving across most of my stuff I came across the problem of how to hook th The search for en passant checkmates 2: Electric Boogaloo - http://localhost:1313/the-search-for-en-passant-checkmates-2-electric-boogaloo/ + https://nonsense.dymc.win/the-search-for-en-passant-checkmates-2-electric-boogaloo/ Tue, 08 Nov 2022 00:00:00 +0000 - http://localhost:1313/the-search-for-en-passant-checkmates-2-electric-boogaloo/ + https://nonsense.dymc.win/the-search-for-en-passant-checkmates-2-electric-boogaloo/ <p>Last time we worked out how to get info for all the games played by titled players in a particular month. Today, we have three objectives:</p> <ul> <li>Parse this info for the pgn (portable game notation) of each game.</li> @@ -1296,7 +1294,7 @@ After moving across most of my stuff I came across the problem of how to hook th </span></span><span class="line"><span class="cl"> <span class="k">for</span> <span class="n">pgn</span> <span class="ow">in</span> <span class="n">pgns</span><span class="p">:</span> </span></span><span class="line"><span class="cl"> <span class="n">f</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="n">pgn</span><span class="p">)</span> </span></span></code></pre></div><p>Now a pgn looks something like this if it&rsquo;s just printed as a string:</p> -<p><img src="http://localhost:1313/image/pgn.webp" alt="image alt text"></p> +<p><img src="https://nonsense.dymc.win/image/pgn.webp" alt="image alt text"></p> <p>It contains lots of very useful info but for our purposes of finding en passant checkmates, we would ideally just have a list of each move looking something like this:</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">moves</span> <span class="o">=</span> <span class="p">[</span> <span class="s1">&#39;e4&#39;</span><span class="p">,</span> <span class="s1">&#39;e5&#39;</span><span class="p">,</span> <span class="s1">&#39;Bc4&#39;</span><span class="p">,</span> <span class="s1">&#39;Nc6&#39;</span><span class="p">,</span> <span class="s1">&#39;Qh5&#39;</span><span class="p">,</span> <span class="s1">&#39;Nf6&#39;</span><span class="p">,</span> <span class="s1">&#39;Qxf7#&#39;</span><span class="p">]</span> </span></span></code></pre></div><p>We don&rsquo;t need the headers, we don&rsquo;t need the result, and we don&rsquo;t really need the move numbers (these can be deduced from the list indexes). So the challenge is how to convert the pgn to a list; this is the slightly janky solution I came up wtih.</p> @@ -1325,10 +1323,10 @@ After moving across most of my stuff I came across the problem of how to hook th The search for en passant checkmates - http://localhost:1313/the-search-for-en-passant-checkmates/ + https://nonsense.dymc.win/the-search-for-en-passant-checkmates/ Wed, 26 Oct 2022 00:00:00 +0000 - http://localhost:1313/the-search-for-en-passant-checkmates/ + https://nonsense.dymc.win/the-search-for-en-passant-checkmates/ <p>The chess.com API gives you access to a crazy amount of data on games played on the site. Armed with the knowledge that this data was at my fingertips, I set out to do what any sane person would do: find en passant checkmates. For those not in the know, en passant check mate is kind of the king of moves in chess meme circles. So some sort of python script that identified en passant check mates that occured on the site would be of great value to me.</p> <p>First things first, I would need a method of grabbing lots of games from the api. This would be achieved by looking at players on the site and searching their game archives. As I couldn&rsquo;t think of any obvious way to get completely random players on the site, I used the API&rsquo;s lists of all titled players (GM, IM, WIM, etc.) on the site. This is what I came up with -&gt;</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"> <span class="k">def</span> <span class="nf">get_archive_urls</span><span class="p">(</span><span class="n">titled_urls</span><span class="p">):</span> @@ -1363,7 +1361,7 @@ After moving across most of my stuff I came across the problem of how to hook th </span></span><span class="line"><span class="cl"> <span class="s1">&#39;https://api.chess.com/pub/titled/WGM&#39;</span> </span></span><span class="line"><span class="cl"> <span class="p">]))</span> </span></span></code></pre></div><p>We get a very long list of json objects (is that the right phrase? um). Each corresponding to one of games played by GMs and WGMs on chess.com during May of 2022. Come back next time to see what we can do with this very long list. Here&rsquo;s a taster of what the list looks like printed to a terminal - lots of possiblities.</p> -<p><img src="http://localhost:1313/image/output.webp" alt="image alt text"></p> +<p><img src="https://nonsense.dymc.win/image/output.webp" alt="image alt text"></p> @@ -1371,10 +1369,10 @@ After moving across most of my stuff I came across the problem of how to hook th Declarative firefox config with home-manager on nixos - http://localhost:1313/declarative-firefox-config-with-home-manager-on-nixos/ + https://nonsense.dymc.win/declarative-firefox-config-with-home-manager-on-nixos/ Sun, 02 Oct 2022 00:00:00 +0000 - http://localhost:1313/declarative-firefox-config-with-home-manager-on-nixos/ + https://nonsense.dymc.win/declarative-firefox-config-with-home-manager-on-nixos/ <p>As a man who finds himself reinstalling his OS more than is probably sensible, any opportunity to minimise the post install admin of sorting out all your settings is an attractive one. With that in mind lets take a look at some of the firefox (my current browser of choice) configuration options avilable to you through home-manager. This assumes you have some sort of home-manager setup working. If you do not I found <a href="https://github.com/misterio77/nix-starter-configs">this</a> friendly githubber&rsquo;s templates to be very helpful.</p> <p>First of all you&rsquo;ll need to enable firefox with <code>programs.firefox.enable = true;</code></p> <h3 id="extensions">EXTENSIONS</h3> @@ -1437,10 +1435,10 @@ After moving across most of my stuff I came across the problem of how to hook th Upgrade your qtile setup with a cute dropdown terminal - http://localhost:1313/upgrade-your-qtile-setup-with-a-cute-dropdown-terminal/ + https://nonsense.dymc.win/upgrade-your-qtile-setup-with-a-cute-dropdown-terminal/ Fri, 23 Sep 2022 00:00:00 +0000 - http://localhost:1313/upgrade-your-qtile-setup-with-a-cute-dropdown-terminal/ + https://nonsense.dymc.win/upgrade-your-qtile-setup-with-a-cute-dropdown-terminal/ <p>I didn&rsquo;t know you could do this until recently, very fun and playful little feature. How you want to do it will depend slightly on how you have your groups set up but I start with importing the relevant libraries and defining an empty list.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">libqtile.config</span> <span class="kn">import</span> <span class="n">Dropdown</span><span class="p">,</span> <span class="n">Scratchpad</span> </span></span><span class="line"><span class="cl"> @@ -1457,7 +1455,7 @@ After moving across most of my stuff I came across the problem of how to hook th </span></span><span class="line"><span class="cl"> <span class="p">),</span> </span></span><span class="line"><span class="cl"><span class="p">)</span> </span></span></code></pre></div><p>This gives you a terminal (kitty in this case) with a little tranparency. By default, it will pop up with this size:</p> -<p><img src="http://localhost:1313/image/dropdown.webp" alt="alt"></p> +<p><img src="https://nonsense.dymc.win/image/dropdown.webp" alt="alt"></p> <p>Though this can easily be altered with the x, y, height, and width keys:</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">groups</span><span class="o">.</span><span class="n">append</span><span class="p">(</span> </span></span><span class="line"><span class="cl"> <span class="n">ScratchPad</span><span class="p">(</span><span class="s2">&#34;scratchpad&#34;</span><span class="p">,</span> <span class="p">[</span> @@ -1473,7 +1471,7 @@ After moving across most of my stuff I came across the problem of how to hook th </span></span><span class="line"><span class="cl"> <span class="p">])</span> </span></span><span class="line"><span class="cl"><span class="p">)</span> </span></span></code></pre></div><p>This gives us a little boxy guy in the top left corner:</p> -<p><img src="http://localhost:1313/image/dropdown2.webp" alt="alt"></p> +<p><img src="https://nonsense.dymc.win/image/dropdown2.webp" alt="alt"></p> <p>We also have the option to set keybindings to toggle the appearance of the window. I&rsquo;ve got this in my config.py now:</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">keys</span> <span class="o">=</span> <span class="p">[</span> </span></span><span class="line"><span class="cl"> <span class="n">Key</span><span class="p">([</span><span class="n">m</span><span class="p">,</span> <span class="s2">&#34;shift&#34;</span><span class="p">],</span> <span class="s2">&#34;Return&#34;</span><span class="p">,</span> @@ -1489,10 +1487,10 @@ After moving across most of my stuff I came across the problem of how to hook th Rudimentary local scrobbling with bash - http://localhost:1313/rudimentary-local-scrobbling-with-bash/ + https://nonsense.dymc.win/rudimentary-local-scrobbling-with-bash/ Tue, 13 Sep 2022 00:00:00 +0000 - http://localhost:1313/rudimentary-local-scrobbling-with-bash/ + https://nonsense.dymc.win/rudimentary-local-scrobbling-with-bash/ <p>There are lots of music players on linux. I have used lots of them, I quite like some of them. But for some reason I decided I wanted more. With this in mind, over the past few months I have been constructing a sprawling ecosystem of bash scripts all geared towards delivering a customised listening experience tailored perfectly to my every need. In short, the setup uses a simple dmenu file manager to browse my local files and mpv to play them. Today I&rsquo;ll be talking specifically about my setup for recording the albums I&rsquo;ve been listening to.</p> <h3 id="lets-get-down-to-business">LET&rsquo;S GET DOWN TO BUSINESS</h3> <p>Whenever I select a file to be played with my script I am effectively selecting a path to a file or a path to a directory with files in it which is then fed to mpv. For example, if I&rsquo;m playing the classic album Lemonade by Beyonce it would look like this:</p> diff --git a/public/css/main.css b/public/css/main.css index 4182dd5..5715efb 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -12,10 +12,19 @@ body { color: var(--fg); padding: 0 1rem; /* layout */ - max-width: 800px; + max-width: 700px; margin: 0 auto; } +body a { + color: magenta; +} + +body pre { + padding:1rem; + margin-bottom: 1rem; +} + /* ===== Typography ===== */ h1, h2, h3, h4 { line-height: 1.3; @@ -24,6 +33,7 @@ h1, h2, h3, h4 { } p { + margin-top: 1.3rem; margin-bottom: 1.3rem; } @@ -37,51 +47,73 @@ img { /* ===== Navigation ===== */ nav { display: flex; - justify-content: space-between; - align-items: center; - padding: 1rem 0; - flex-wrap: wrap; + /* justify-content: space-between; */ + /* align-items: center; */ + /* padding: 1rem 0; */ + /* flex-wrap: wrap; */ } nav a { - margin: 0.5rem; -} - -.home { - font-size: 24px; + margin-right: 1.5rem; + font-size: 3rem; text-decoration: none; } +.home { +} + .toggle-button { - font-size: 24px; + font-size: 3rem; border: none; background-color: var(--bg); cursor: pointer; } -.toggle-button:hover { - transform: scale(1.2); -} - -/* .search-container { */ -/* text-align: center; */ -/* } */ - #search { width: 100%; background-color: var(--bg); color: var(--fg); + border: 1px solid var(--fg); + padding: 1rem; + margin-bottom: 1.3rem; } -/* #results li { */ -/* list-style: none; */ -/* padding: 20px; */ -/* font-size: 1.2rem; */ -/* } */ +#results li { + list-style: none; + margin-bottom: 1rem; +} + +/* archive tree */ + +.tree, .tree ul { + list-style: none; + margin: 0; + position: relative; +} + +.tree ul { + margin-left: 0.5rem; +} + +.tree li { + margin: 0; + padding: 0.25rem 0 0.25rem 1rem; + position: relative; +} + +.tree li::before { + content: ""; + position: absolute; + top: 0; + left: 0; + border-left: 1px solid var(--fg); + border-bottom: 1px solid var(--fg); + width: 1rem; + height: 1rem; +} footer { - padding-bottom: 20px; - text-align: center; + padding-bottom: 2rem; } /* ===== Responsive ===== */ diff --git a/public/declarative-firefox-config-with-home-manager-on-nixos/index.html b/public/declarative-firefox-config-with-home-manager-on-nixos/index.html index 1c2d1fc..2e14e57 100644 --- a/public/declarative-firefox-config-with-home-manager-on-nixos/index.html +++ b/public/declarative-firefox-config-with-home-manager-on-nixos/index.html @@ -1,38 +1,38 @@ - + - + - + Declarative firefox config with home-manager on nixos
-

Declarative firefox config with home-manager on nixos

+

Declarative firefox config with home-manager on nixos

- +

October 2, 2022

As a man who finds himself reinstalling his OS more than is probably sensible, any opportunity to minimise the post install admin of sorting out all your settings is an attractive one. With that in mind lets take a look at some of the firefox (my current browser of choice) configuration options avilable to you through home-manager. This assumes you have some sort of home-manager setup working. If you do not I found this friendly githubber’s templates to be very helpful.

First of all you’ll need to enable firefox with programs.firefox.enable = true;

@@ -91,12 +91,9 @@

Of course I am sure there are many more exciting things that could be done here but this is as far as I have got. For all avilable options you can check out this or alternatively run a man home-configuration.nix. Hope this has been helpful :)

- -
-

-----------------

+
- made with hugo and my bastardised version of - this nice theme + made with hugo diff --git a/public/get-the-thoughts-out-of-your-head-and-into-a-digital-format-with-this-python-journalling-script/index.html b/public/get-the-thoughts-out-of-your-head-and-into-a-digital-format-with-this-python-journalling-script/index.html index 5bf942a..47fbd3a 100644 --- a/public/get-the-thoughts-out-of-your-head-and-into-a-digital-format-with-this-python-journalling-script/index.html +++ b/public/get-the-thoughts-out-of-your-head-and-into-a-digital-format-with-this-python-journalling-script/index.html @@ -1,38 +1,38 @@ - + - + - + Get the thoughts out of your head and into a digital format with this python journalling script
-

Get the thoughts out of your head and into a digital format with this python journalling script

+

Get the thoughts out of your head and into a digital format with this python journalling script

- +

December 1, 2022

Since getting going with emacs I’ve gone down the org-mode rabbit hole a little bit. In particular the very nice org-journal package. It basically does what it says on the tin: maintains a journal with a selection of org files. This has been very nice for me. I have often thought about journalling but never really got up a head of steam. Somehow having an entry a keybinding away while I’m doing something with my text editor makes it a lot more palletable.

Having said all this, I am not completely converted to the church of emacs. Thus, I thoght it would be nice to write a little editor agnostic script which would emulate some of org-journal’s features but allow you to use whatever editor you like with markdown.

@@ -89,12 +89,9 @@

As simple as it is, it works reasonalby well as it stands. I would though like to add the ability to customise the file format you want to use so you could have org, plain text, markdown, or whatever. I’ve got the script set to just run with a keybinding at the moment so it fulfils the immediacy I was enjoying with org-journal. You can find the script here atm. BYEBYE xxx

- -
-

-----------------

+
- made with hugo and my bastardised version of - this nice theme + made with hugo diff --git a/public/handy-script-for-a-more-zen-twitch-experience/index.html b/public/handy-script-for-a-more-zen-twitch-experience/index.html index 015151f..db7de82 100644 --- a/public/handy-script-for-a-more-zen-twitch-experience/index.html +++ b/public/handy-script-for-a-more-zen-twitch-experience/index.html @@ -1,40 +1,38 @@ - + - + - + Handy script for a more zen twitch experience
-

Handy script for a more zen twitch experience

+

Handy script for a more zen twitch experience

- +

August 13, 2025

I like to watch twitch streams. Watching them in the browser at twitch.tv is generally not an experience which sparks joy though. @@ -99,7 +97,7 @@ Here it is:

# get first column from selection aka stream name meat=$(echo "$choice" | awk '{print $1}') "${NOTIFY}" "twitch -- launching twitch.tv/$meat" - streamlink twitch.tv/"$meat" 1080p60 --player $"{PLAYER}" + streamlink twitch.tv/"$meat" 1080p60 --player "${PLAYER}" fi

What it does:

    @@ -130,13 +128,11 @@ Here it is:

  • takes a second to talk to the internet so things don’t launch immediately
  • have to faff with getting api key - how to get one btw
-
+

Hope you enjoyed bye

- -