diff --git a/index.html b/index.html index 77695b5..64acdd2 100644 --- a/index.html +++ b/index.html @@ -1,11 +1,11 @@ -Alex Mikhailov
+Alex Mikhailov

avatar.jpg

-
-

 

-
+
+

 

+

Full stack engineer FP-curious | λ-affected @@ -13,9 +13,9 @@ Wanna be rustacean 🦀 and/or secops guy 🔒

-
-

Experience

-
+
+

Experience

+
  • Current position @SamsungFood. Internal tools engineer for data platform ➡ Internal tools engineer for developers.
  • @@ -24,9 +24,9 @@ Fullstack engineer.
-
-

Technologies

-
+
+

Technologies

+

Work with:

@@ -43,9 +43,9 @@ Work with:
-
-

Contacts

-
+
+

Contacts

+

Contact me via:

@@ -64,4 +64,4 @@ Social:
-
+
diff --git a/posts.html b/posts.html index 5575068..92f51f2 100644 --- a/posts.html +++ b/posts.html @@ -1,7 +1,7 @@ -Alex Mikhailov - Blog
-
-

Posts

-
+Alex Mikhailov - Blog
+
+

Posts

+
-
+ + + +
diff --git a/posts/about_blog.html b/posts/about_blog.html index aa94639..5673cb9 100644 --- a/posts/about_blog.html +++ b/posts/about_blog.html @@ -1,45 +1,45 @@ -Org to HTML and back
+Org to HTML and back

Org to HTML and back

Blog post about publishing my blog with Org Mode

-
-

Disclaimer

-
+
+

Disclaimer

+

I'm neither proficient in Org Mode (further on "Org"), nor a good front-end engineer. I think that a simple solution is better than no solution. If you see a mistake, you can contact me via iam@fidonode.me.

-
-

What is Org?

-
+
+

What is Org?

+

Your life in plain text @@ -55,9 +55,9 @@ Everything you can do in Org is to write a text. With a special markup, of cours

-
-

Why Org Mode?

-
+
+

Why Org Mode?

+
  1. Plain text. Plain text as a data source offers significant versatility. You can read and understand what happens in org files without needing Emacs.
  2. @@ -69,16 +69,16 @@ I do not have a habit of collecting and keeping information. I believe that disc
-
-

Render Org to blog or whatever

-
+
+

Render Org to blog or whatever

+

Org already has a way to render files into HTML, allowing you to create simple HTML files with minimal styling. I'm not interesting in styling from org, so I decide to use picocss framework.

-
-

Render HTML

-
+
+

Render HTML

+

I want to change some templates here and there. I've found esxml package. It is a decent DSL for writing XML/HTML. Here is how page header and footer look in this DSL. @@ -183,9 +183,9 @@ So everything is almost done. Time to use our custom publishing function in proj

-
-

Static files

-
+
+

Static files

+

Yep, you may want to publish some photos with your blog or any other static files.

@@ -205,9 +205,9 @@ Looks self explanatory.

-
-

Whole build script

-
+
+

Whole build script

+

Here is the whole elisp script which I use to publish my blog. It have some additional quirks to work with doomscript ./build-site.el.

@@ -365,9 +365,9 @@ Here is the whole elisp script which I use to publish my blog. It have some addi
-
-

Publish through GitHub Action

-
+
+

Publish through GitHub Action

+

With all previous preparations, this step sounds simple like: emacs -Q --script ./build-site.el I've chosen a pretty standard way to publish static sites through GitHub Pages. Since I keep my Org files in a private repo, I need some additional steps to address it. I use the peaceiris/actions-gh-pages@v3 action to publish from my Org repo to the Pages repo. @@ -375,9 +375,9 @@ However, since I use Doom Emacs as my configuration framework, we n

-
-

Install Emacs

-
+
+

Install Emacs

+

If you want to run Emacs Lisp, you need the whole Emacs, at least without GUI. In a GitHub Action, you can simply run:

@@ -388,9 +388,9 @@ This way has a downside - you will install Emacs on each action run since the sy

-
-

Just bring everything

-
+
+

Just bring everything

+

I need to take extra steps since I use Doom Emacs and have my configs in Org. You may also need to install dependencies for your configuration.

@@ -426,9 +426,9 @@ Of course, I use a caching step to make the whole process faster:
-
-

BTW I use GNU Emacs

-
+
+

BTW I use GNU Emacs

+

Here's the whole publishing workflow.

@@ -507,21 +507,21 @@ jobs:
-
-

What is next

-
+
+

What is next

+

I have a plans to make posts about next features:

-
+
diff --git a/posts/add_rss_to_blog.html b/posts/add_rss_to_blog.html index 787500b..c37b839 100644 --- a/posts/add_rss_to_blog.html +++ b/posts/add_rss_to_blog.html @@ -1,35 +1,35 @@ -Org blog with RSS
+Org blog with RSS

Org blog with RSS

Let's add RSS feed to blog

-
-

Why do you even need RSS?

-
+
+

Why do you even need RSS?

+

RSS might seem like an outdated, marginal thing. But it still has at least one benefit—you can use an RSS feed as a sitemap for search engines. Plus, it's pretty geeky.

-
-

Add RSS feed

-
+
+

Add RSS feed

+

So, what's happening here? Let's start by integrating our templating functions into the build.

-
-

Use sitemap backend in the build

-
+
+

Use sitemap backend in the build

+
(setq org-publish-project-alist
       (list
        (list "blog-rss"
@@ -59,9 +59,9 @@ How does it work? As you can see, we use the default sitemap generator from Org
 

-
-

Publishing and formatting functions

-
+
+

Publishing and formatting functions

+

We need a mandatory dependency because we don't want to mess with forming correct XML by ourselves.

@@ -129,4 +129,4 @@ Voila! Now you have an rss.xml in your export path.
-
+
diff --git a/posts/add_tags_to_blog.html b/posts/add_tags_to_blog.html new file mode 100644 index 0000000..d066684 --- /dev/null +++ b/posts/add_tags_to_blog.html @@ -0,0 +1 @@ +Tags in posts

Tags in posts

Let's add tags to blog posts

diff --git a/posts/improve_code_blocks.html b/posts/improve_code_blocks.html index ef902b7..fb9547e 100644 --- a/posts/improve_code_blocks.html +++ b/posts/improve_code_blocks.html @@ -1,34 +1,34 @@ -Improve code blocks
+Improve code blocks

Improve code blocks

Use highlight.js for code syntax highlighting

-
-

What is the problem with default highlighting?

-
+
+

What is the problem with default highlighting?

+

Htmlize works poorly with headless publishing. It lacks extensibility, including features like line numbers, a copy button, and the ability to highlight predefined parts of the code.

-
-

Highlight.js

-
+
+

Highlight.js

+
-
-

Change code block template

-
+
+

Change code block template

+

We need to make small changes in how code blocks are rendered. By default, Org Export exports code blocks as <pre></pre>. For Highlight.js, we need <pre><code></code></pre>. Additionally, we need to set the correct language name in the class attribute. Since Highlight.js does not support elisp, I rewrite it to regular lisp using the my/replace-substring function.

@@ -69,9 +69,9 @@ CONTENTS is nil. INFO is a plist holding contextual information."
-
-

Plug Highlight.js

-
+
+

Plug Highlight.js

+

I do not want to load Highlight.js on every page, so I need to check if the initial Org file contains code blocks. Depending on this, we will render the part of the tree with JavaScript or not.

@@ -105,9 +105,9 @@ I do not want to load Highlight.js on every page, so I need to check if the init
-
-

Respect prefers-color-scheme

-
+
+

Respect prefers-color-scheme

+

Additionally, I think it's a good idea to respect the prefers-color-scheme property of the user's browser. We can switch CSS files based on this property. We should also subscribe to changes in this property to handle the edge case when it switches while reading the page.

@@ -142,9 +142,9 @@ window
-
-

Whole config

-
+
+

Whole config

+

In between posts I've switched from sxml to esxml so here is the current config.

@@ -454,4 +454,4 @@ PUB-DIR is when the output will be placed."
-
+
diff --git a/posts/keeb.html b/posts/keeb.html index 399d71d..531ef39 100644 --- a/posts/keeb.html +++ b/posts/keeb.html @@ -1,52 +1,52 @@ -My keyboard journey
+My keyboard journey

My keyboard journey

Blog post about my keyboards

-
-

My end-game (at least I hope) keyboard

-
+
+

My end-game (at least I hope) keyboard

+
-
-

Keebs path

-
+
+

Keebs path

+

Sometimes I think about the long journey I've made with keebs. In childhood, I had decent membrane keyboards, most of which had an ergonomic profile like the MS. Not sure if it somehow affected my taste because I started my career with the simplest, cheapest board and typed countless lines of code on such keebs. Then I heard about clickity-clack mechanical keyboards and decided to try one. It was a simple Chinese keeb with a thick metal body, double-shot caps, and Cherry Brown switches. A decent thing to annoy everyone around you. I think this purchase marked my dive into mech keebs I'm not a geeky aficionado who thinks you can fix everything with a new keyboard, but I built a couple of them. I hope I've finally built the last one for quite some time.

-
-

Dactyl manuform

-
+
+

Dactyl manuform

+

Almost all of the time, I struggle with my maximalism. So I decided to build the ultimate mechanical ergonomic split keyboard and chose the Dactyl Manuform. Sounds like a crazy idea. Zero experience with QMK, zero experience with hand-wired keyboards, and zero experience in 3D printing. The last problem was the easiest one; I just asked my friend to print the bodies from PETG polymer, and Bob's your uncle. I got two pieces of rough-layered plastic with all the support structures. God, it was a nightmare to clean these prints from supports and small artifacts, but I was happy. @@ -92,9 +92,9 @@ To be honest, this keeb was ugly, and I decided that I wanted a beautiful factor

-
-

Moonlander

-
+
+

Moonlander

+

Nothing special. Ordered, paid, got it, tried it. Everything worked. Looked good. Happy year of typing. Bored. Annoyed. Too big and chunky. No concave. Quality not the best. Started planning the next one.

@@ -107,9 +107,9 @@ Nothing special. Ordered, paid, got it, tried it. Everything worked. Looked good
-
-

Custom Corne

-
+
+

Custom Corne

+

This journey started with discovering the Jian keyboard. It is a niche keeb from the Ru community focused on full support of the whole Russian layout. It was originally created by KGOH. I missed the group buy and decided that I could easily patch a Corne board with two additional keys to mimic the Jian. Interesting journey. I learned how to use KiCad, and how to export gerbers. @@ -158,9 +158,9 @@ Daily driver for ~6 months. Then the world changed, and I decided to leave my ho

-
-

Dactyl manuform again

-
+
+

Dactyl manuform again

+

Two years late I've settled down in new country and decide that I want to bring back my dactyl manuform experience.

@@ -174,13 +174,13 @@ Two years late I've settled down in new country and decide that I want to bring
-
-

Hardware

-
+
+

Hardware

+
-
-

Body

-
+
+

Body

+

I've choose to use a Ryan's generator and generate body on top of Corne preset with all keys in last row and disabled stagger for the last two columns. Generator preset The body was printed by JLC3DP (JLCPCB printing department). I've choose SLS from nylon. Print has minor artifacts; I expected better quality. @@ -216,9 +216,9 @@ Overall, I'm happy with results. I also printed bottom plates and -

Switches and caps

-
+
diff --git a/posts/posts_preview.html b/posts/posts_preview.html index 9bacd8b..1d2c70f 100644 --- a/posts/posts_preview.html +++ b/posts/posts_preview.html @@ -1,32 +1,32 @@ -Posts preview
+Posts preview

Posts preview

Add post preview for OpenGraph cards

-
-

What is imagemagick

-
+
+

What is imagemagick

+

Imagemagick is a ffmpeg of the image world. You can do a lot of fun things with it. For example you can take a picture, cut corners on it, place it on top of another image, add some text and get final result. So it is looks like a good tool for making previews from code.

-
-

Basic idea of this process

-
+
+

Basic idea of this process

+

I want to hook a process of rendering post. Since this function called on each run of publishing and for each post it is a good idea to cache resulting images. I gonna simply check presence of preview image and use it as guard for running image generation. After that I gonna extract #+TITLE and #+DESCRIPTION properties from Org file. Each Org file I have, has next header:

@@ -48,9 +48,9 @@ So I with all these data I can generate my previews with simple script:
-
-

Integrate into build

-
+
+

Integrate into build

+
+
diff --git a/rss.html b/rss.html index 399af00..50571d1 100644 --- a/rss.html +++ b/rss.html @@ -1,39 +1,81 @@ -rss
+rss
-
+ + + + + + + +
diff --git a/rss.xml b/rss.xml index f1628f8..92912a7 100644 --- a/rss.xml +++ b/rss.xml @@ -14,8 +14,8 @@ https://fidonode.me en - Sun, 30 Jun 2024 18:40:07 +0000 - Sun, 30 Jun 2024 18:40:07 +0000 + Fri, 05 Jul 2024 20:35:16 +0000 + Fri, 05 Jul 2024 20:35:16 +0000 Emacs 27.1 Org-mode 9.3 iam@fidonode.me (Alex M) @@ -25,6 +25,69 @@ + + Tag: @diy + https://fidonode.me/tags/@diy.html + iam@fidonode.me (Alex M) + https://fidonode.me/tags/@diy.html + Fri, 05 Jul 2024 00:00:00 +0000 + + + + + Tag: @imagemagick + https://fidonode.me/tags/@imagemagick.html + iam@fidonode.me (Alex M) + https://fidonode.me/tags/@imagemagick.html + Fri, 05 Jul 2024 00:00:00 +0000 + + + + + Tag: @keeb + https://fidonode.me/tags/@keeb.html + iam@fidonode.me (Alex M) + https://fidonode.me/tags/@keeb.html + Fri, 05 Jul 2024 00:00:00 +0000 + + + + + Tag: @highlightjs + https://fidonode.me/tags/@highlightjs.html + iam@fidonode.me (Alex M) + https://fidonode.me/tags/@highlightjs.html + Fri, 05 Jul 2024 00:00:00 +0000 + + + + + Tag: @elisp + https://fidonode.me/tags/@elisp.html + iam@fidonode.me (Alex M) + https://fidonode.me/tags/@elisp.html + Fri, 05 Jul 2024 00:00:00 +0000 + + + + + Tag: @org-mode + https://fidonode.me/tags/@org-mode.html + iam@fidonode.me (Alex M) + https://fidonode.me/tags/@org-mode.html + Fri, 05 Jul 2024 00:00:00 +0000 + + + + + Tags in posts + https://fidonode.me/posts/add_tags_to_blog.html + iam@fidonode.me (Alex M) + https://fidonode.me/posts/add_tags_to_blog.html + Fri, 05 Jul 2024 00:00:00 +0000 + + + Posts preview https://fidonode.me/posts/posts_preview.html diff --git a/tags/@diy.html b/tags/@diy.html new file mode 100644 index 0000000..65c5aab --- /dev/null +++ b/tags/@diy.html @@ -0,0 +1,10 @@ +Tag: @diy
+
+

My keyboard journey

+
+

+Blog post about my keyboards +

+
+
+
diff --git a/tags/@elisp.html b/tags/@elisp.html new file mode 100644 index 0000000..4a54e94 --- /dev/null +++ b/tags/@elisp.html @@ -0,0 +1,37 @@ +Tag: @elisp
+
+

Posts preview

+
+

+Add post preview for OpenGraph cards +

+
+
+ +
+

Improve code blocks

+
+

+Use highlight.js for code syntax highlighting +

+
+
+ +
+

Tags in posts

+
+

+Let's add tags to blog posts +

+
+
+ +
+

Org blog with RSS

+
+

+Let's add RSS feed to blog +

+
+
+
diff --git a/tags/@highlightjs.html b/tags/@highlightjs.html new file mode 100644 index 0000000..9c3c8f7 --- /dev/null +++ b/tags/@highlightjs.html @@ -0,0 +1,10 @@ +Tag: @highlightjs
+
+

Improve code blocks

+
+

+Use highlight.js for code syntax highlighting +

+
+
+
diff --git a/tags/@imagemagick.html b/tags/@imagemagick.html new file mode 100644 index 0000000..97d27bf --- /dev/null +++ b/tags/@imagemagick.html @@ -0,0 +1,10 @@ +Tag: @imagemagick
+
+

Posts preview

+
+

+Add post preview for OpenGraph cards +

+
+
+
diff --git a/tags/@keeb.html b/tags/@keeb.html new file mode 100644 index 0000000..1b64a82 --- /dev/null +++ b/tags/@keeb.html @@ -0,0 +1,10 @@ +Tag: @keeb
+
+

My keyboard journey

+
+

+Blog post about my keyboards +

+
+
+
diff --git a/tags/@org-mode.html b/tags/@org-mode.html new file mode 100644 index 0000000..0261fde --- /dev/null +++ b/tags/@org-mode.html @@ -0,0 +1,46 @@ +Tag: @org-mode
+
+

Posts preview

+
+

+Add post preview for OpenGraph cards +

+
+
+ +
+

Improve code blocks

+
+

+Use highlight.js for code syntax highlighting +

+
+
+ +
+

Tags in posts

+
+

+Let's add tags to blog posts +

+
+
+ +
+

Org blog with RSS

+
+

+Let's add RSS feed to blog +

+
+
+ +
+

Org to HTML and back

+
+

+Blog post about publishing my blog with Org Mode +

+
+
+
diff --git a/tags/@rss.html b/tags/@rss.html new file mode 100644 index 0000000..d989964 --- /dev/null +++ b/tags/@rss.html @@ -0,0 +1,10 @@ +Tag: @rss
+
+

Org blog with RSS

+
+

+Let's add RSS feed to blog +

+
+
+