From 22f5ac8fcec4dbfcc1f5033f18bc4eeca52a747d Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Tue, 31 Oct 2023 08:20:22 +0100 Subject: Made the side more retro! --- public/notes.xml | 1080 +++++++++++++++++++++++++++--------------------------- 1 file changed, 540 insertions(+), 540 deletions(-) (limited to 'public/notes.xml') diff --git a/public/notes.xml b/public/notes.xml index 9c4c65c..b3793ac 100755 --- a/public/notes.xml +++ b/public/notes.xml @@ -1,19 +1,19 @@ - Mitja Felicijan's notes - https://mitjafelicijan.com - You do not learn by relaxing. You learn by violently assaulting your problem until it surrenders its mysteries to you. - en-us + Mitja Felicijan's notes + https://mitjafelicijan.com + You do not learn by relaxing. You learn by violently assaulting your problem until it surrenders its mysteries to you. + en-us - - - - Compile drawterm on Fedora 38 - https://mitjafelicijan.com/compile-drawterm-on-fedora-38.html - Mon, 25 Sep 2023 09:04:28 +0200 - https://mitjafelicijan.com/compile-drawterm-on-fedora-38.html - First install two dependencies:sudo dnf install libX11-devel libXt-develClone the repo and compile it:git clone git://git. - <p>First install two dependencies:</p> + + + + Compile drawterm on Fedora 38 + https://mitjafelicijan.com/compile-drawterm-on-fedora-38.html + Mon, 25 Sep 2023 09:04:28 +0200 + https://mitjafelicijan.com/compile-drawterm-on-fedora-38.html + First install two dependencies:sudo dnf install libX11-devel libXt-develClone the repo and compile it:git clone git://git. + <p>First install two dependencies:</p> <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span>sudo dnf install libX11-devel libXt-devel </span></span></code></pre><p>Clone the repo and compile it:</p> <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span>git clone git://git.9front.org/plan9front/drawterm @@ -21,17 +21,17 @@ </span></span><span style="display:flex;"><span>CONF=unix make </span></span></code></pre><p>That should produce <code>drawterm</code> binary.</p> - - - - - - AWS EB PyYAML fix - https://mitjafelicijan.com/aws-eb-pyyaml-fix.html - Mon, 18 Sep 2023 07:27:29 +0200 - https://mitjafelicijan.com/aws-eb-pyyaml-fix.html - Recent update of my system completely borked EB CLIon my machine. - <p>Recent update of my system completely borked <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install-advanced.html">EB CLI</a> + + + + + + AWS EB PyYAML fix + https://mitjafelicijan.com/aws-eb-pyyaml-fix.html + Mon, 18 Sep 2023 07:27:29 +0200 + https://mitjafelicijan.com/aws-eb-pyyaml-fix.html + Recent update of my system completely borked EB CLIon my machine. + <p>Recent update of my system completely borked <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install-advanced.html">EB CLI</a> on my machine.</p> <p>I tried installing it with <code>pip install awsebcli --upgrade --user</code> and it failed.</p> <p>The error was the following.</p> @@ -49,17 +49,17 @@ on my machine.</p> <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span>echo <span style="color:#a31515">&#39;Cython &lt; 3.0&#39;</span> &gt; /tmp/constraint.txt </span></span><span style="display:flex;"><span>PIP_CONSTRAINT=/tmp/constraint.txt pip install <span style="color:#a31515">&#39;PyYAML==5.4.1&#39;</span> </span></span></code></pre> - - - - - - Floods in Slovenia up close - https://mitjafelicijan.com/floods-in-slovenia.html - Sat, 05 Aug 2023 07:06:50 +0200 - https://mitjafelicijan.com/floods-in-slovenia.html - - <p><video src="/notes/floods/IMG_1471.mp4" controls></video></p> + + + + + + Floods in Slovenia up close + https://mitjafelicijan.com/floods-in-slovenia.html + Sat, 05 Aug 2023 07:06:50 +0200 + https://mitjafelicijan.com/floods-in-slovenia.html + + <p><video src="/notes/floods/IMG_1471.mp4" controls></video></p> <p><video src="/notes/floods/IMG_1474.mp4" controls></video></p> <figure> <img src="/notes/floods/IMG_1469.webp" alt="" /> @@ -70,17 +70,17 @@ on my machine.</p> <p><video src="/notes/floods/IMG_1461.mp4" controls></video></p> <p><video src="/notes/floods/IMG_1466.mp4" controls></video></p> - - - - - - Make B/W SVG charts with matplotlib - https://mitjafelicijan.com/make-b-w-svg-charts-with-matplotlib.html - Tue, 01 Aug 2023 17:04:10 +0200 - https://mitjafelicijan.com/make-b-w-svg-charts-with-matplotlib.html - Install pip requirements. - <p>Install pip requirements.</p> + + + + + + Make B/W SVG charts with matplotlib + https://mitjafelicijan.com/make-b-w-svg-charts-with-matplotlib.html + Tue, 01 Aug 2023 17:04:10 +0200 + https://mitjafelicijan.com/make-b-w-svg-charts-with-matplotlib.html + Install pip requirements. + <p>Install pip requirements.</p> <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span>pip install matplotlib </span></span><span style="display:flex;"><span>pip install pandas </span></span></code></pre><p>Example of data being used.</p> @@ -131,17 +131,17 @@ This is how you get a column data with pandas.</p> </figure> <p>The image above is SVG and you can zoom in and out and check that the image is vector.</p> - - - - - - Set color temperature of displays on i3 - https://mitjafelicijan.com/set-color-temperature-of-displays-on-i3.html - Fri, 14 Jul 2023 09:19:31 +0200 - https://mitjafelicijan.com/set-color-temperature-of-displays-on-i3.html - I have been using Gnome&#39;s night shift for a while now and I have been missingthis feature under i3wm. - <p>I have been using Gnome's night shift for a while now and I have been missing + + + + + + Set color temperature of displays on i3 + https://mitjafelicijan.com/set-color-temperature-of-displays-on-i3.html + Fri, 14 Jul 2023 09:19:31 +0200 + https://mitjafelicijan.com/set-color-temperature-of-displays-on-i3.html + I have been using Gnome&#39;s night shift for a while now and I have been missingthis feature under i3wm. + <p>I have been using Gnome's night shift for a while now and I have been missing this feature under i3wm. This can be done with <a href="https://linux.die.net/man/1/redshift">redshift</a>.</p> <ul> @@ -150,17 +150,17 @@ this feature under i3wm. This can be done with <li>Reset the current settings with <code>redshift -x</code></li> </ul> - - - - - - Fix screen tearing on Debian 12 Xorg and i3 - https://mitjafelicijan.com/fix-screen-tearing-on-debian-12-xorg-and-i3.html - Mon, 10 Jul 2023 04:21:48 +0200 - https://mitjafelicijan.com/fix-screen-tearing-on-debian-12-xorg-and-i3.html - I have been experiencing some issues with Intel® Integrated HD Graphics 3000under Debian 12 with Xorg and i3. - <p>I have been experiencing some issues with Intel® Integrated HD Graphics 3000 + + + + + + Fix screen tearing on Debian 12 Xorg and i3 + https://mitjafelicijan.com/fix-screen-tearing-on-debian-12-xorg-and-i3.html + Mon, 10 Jul 2023 04:21:48 +0200 + https://mitjafelicijan.com/fix-screen-tearing-on-debian-12-xorg-and-i3.html + I have been experiencing some issues with Intel® Integrated HD Graphics 3000under Debian 12 with Xorg and i3. + <p>I have been experiencing some issues with Intel® Integrated HD Graphics 3000 under Debian 12 with Xorg and i3. Using <code>picom</code> compositor didn't help. To fix this issue create new file <code>/etc/X11/xorg.conf.d/20-intel.conf</code> as root and put the following in the file.</p> @@ -172,37 +172,37 @@ EndSection </code></pre> <p>Reboot the system and that should be it.</p> - - - - - - Online radio streaming with MPV from terminal - https://mitjafelicijan.com/online-radio-streaming-with-mpv-from-terminal.html - Mon, 10 Jul 2023 03:34:45 +0200 - https://mitjafelicijan.com/online-radio-streaming-with-mpv-from-terminal.html - Recently I have been using my Thinkpad x220 more and there are some constraintsI have faced with it. - <p>Recently I have been using my Thinkpad x220 more and there are some constraints + + + + + + Online radio streaming with MPV from terminal + https://mitjafelicijan.com/online-radio-streaming-with-mpv-from-terminal.html + Mon, 10 Jul 2023 03:34:45 +0200 + https://mitjafelicijan.com/online-radio-streaming-with-mpv-from-terminal.html + Recently I have been using my Thinkpad x220 more and there are some constraintsI have faced with it. + <p>Recently I have been using my Thinkpad x220 more and there are some constraints I have faced with it. CPU is not as powerful as on my main machine and I really want to listen to some music while using the machine. Browsers really are bloat.</p> <p>Check out this site <a href="https://streamurl.link/">https://streamurl.link/</a> and copy the stream url and then do <code>mpv streamlink</code>.</p> - - - - - - - - - - 60's IBM Computers Commercial - https://mitjafelicijan.com/60s-ibm-computers-commercial.html - Thu, 29 Jun 2023 22:13:45 +0200 - https://mitjafelicijan.com/60s-ibm-computers-commercial.html - Likely aired during an hour-long program during the 1960s, long commercials suchas this typically aired during hour-long programs. - <p>Likely aired during an hour-long program during the 1960s, long commercials such + + + + + + + + + + 60's IBM Computers Commercial + https://mitjafelicijan.com/60s-ibm-computers-commercial.html + Thu, 29 Jun 2023 22:13:45 +0200 + https://mitjafelicijan.com/60s-ibm-computers-commercial.html + Likely aired during an hour-long program during the 1960s, long commercials suchas this typically aired during hour-long programs. + <p>Likely aired during an hour-long program during the 1960s, long commercials such as this typically aired during hour-long programs. They would <em>not</em> have aired during a half-hour program.</p> <p><video @@ -210,17 +210,17 @@ poster="/notes/60s-ibm-computers-commercial.jpg" src="/notes/60s-ibm-computers-commercial.mp4" controls></video></p> - - - - - - 10/GUI 10 Finger Multitouch User Interface - https://mitjafelicijan.com/10gui-10-finger-multitouch-user-interface.html - Thu, 29 Jun 2023 14:51:39 +0200 - https://mitjafelicijan.com/10gui-10-finger-multitouch-user-interface.html - Message from 10/GUI team (page 10gui. - <p>Message from 10/GUI team (page 10gui.com does not exist anymore):</p> + + + + + + 10/GUI 10 Finger Multitouch User Interface + https://mitjafelicijan.com/10gui-10-finger-multitouch-user-interface.html + Thu, 29 Jun 2023 14:51:39 +0200 + https://mitjafelicijan.com/10gui-10-finger-multitouch-user-interface.html + Message from 10/GUI team (page 10gui. + <p>Message from 10/GUI team (page 10gui.com does not exist anymore):</p> <p><em>Over a quarter-century ago, Xerox introduced the modern graphical user interface paradigm we today take for granted.</em></p> <p><em>That it has endured is a testament to the genius of its design. But the @@ -233,17 +233,17 @@ poster="/notes/10gui-10-finger-multitouch-user-interface.jpg" src="/notes/10gui-10-finger-multitouch-user-interface.mp4" controls></video></p> - - - - - - Alacritty open links with modifier - https://mitjafelicijan.com/alacritty-open-links-with-modifier.html - Sun, 25 Jun 2023 17:17:16 +0200 - https://mitjafelicijan.com/alacritty-open-links-with-modifier.html - Alacritty by default makes all links in the terminal output clickable and thisgets annoying rather quickly. - <p>Alacritty by default makes all links in the terminal output clickable and this + + + + + + Alacritty open links with modifier + https://mitjafelicijan.com/alacritty-open-links-with-modifier.html + Sun, 25 Jun 2023 17:17:16 +0200 + https://mitjafelicijan.com/alacritty-open-links-with-modifier.html + Alacritty by default makes all links in the terminal output clickable and thisgets annoying rather quickly. + <p>Alacritty by default makes all links in the terminal output clickable and this gets annoying rather quickly. I liked the default behavior of Gnome terminal where you needed to hold Control key and then you could click and open links.</p> <p>To achieve this in Alacritty you need to provide a <code>hint</code> in the configuration @@ -263,17 +263,17 @@ change <code>command: xdg-open</code> to something else.</p> pressed.</p> <p>Source: <a href="https://github.com/alacritty/alacritty/issues/5246">https://github.com/alacritty/alacritty/issues/5246</a></p> - - - - - - Development environments with Nix - https://mitjafelicijan.com/development-environments-with-nix.html - Sun, 25 Jun 2023 16:38:10 +0200 - https://mitjafelicijan.com/development-environments-with-nix.html - Nix is amazing for making reproducible cross OS development environment. - <p>Nix is amazing for making reproducible cross OS development environment.</p> + + + + + + Development environments with Nix + https://mitjafelicijan.com/development-environments-with-nix.html + Sun, 25 Jun 2023 16:38:10 +0200 + https://mitjafelicijan.com/development-environments-with-nix.html + Nix is amazing for making reproducible cross OS development environment. + <p>Nix is amazing for making reproducible cross OS development environment.</p> <p>First you need to <a href="https://nixos.org/download.html">install Nix package manager</a>.</p> <ul> @@ -324,17 +324,17 @@ of prompt is omitted</p> <li><a href="https://mynixos.com/">https://mynixos.com/</a></li> </ul> - - - - - - Making cgit look nicer - https://mitjafelicijan.com/making-cgit-look-nicer.html - Sat, 24 Jun 2023 13:33:58 +0200 - https://mitjafelicijan.com/making-cgit-look-nicer.html - For personal use I have a private Git serverset up and I use GitHub just as a mirror. - <p>For personal use I have a <a href="https://git.mitjafelicijan.com">private Git server</a> + + + + + + Making cgit look nicer + https://mitjafelicijan.com/making-cgit-look-nicer.html + Sat, 24 Jun 2023 13:33:58 +0200 + https://mitjafelicijan.com/making-cgit-look-nicer.html + For personal use I have a private Git serverset up and I use GitHub just as a mirror. + <p>For personal use I have a <a href="https://git.mitjafelicijan.com">private Git server</a> set up and I use GitHub just as a mirror. By default the cgit theme looks a bit dated so I made the flowing theme.</p> <ul> @@ -527,17 +527,17 @@ dated so I made the flowing theme.</p> </span></span><span style="display:flex;"><span> <span style="color:#00f">color</span>: <span style="color:#00f">red</span>; </span></span><span style="display:flex;"><span>} </span></span></code></pre> - - - - - - Simple presentations with Markdown - https://mitjafelicijan.com/presentations-with-markdown.html - Wed, 21 Jun 2023 08:54:48 +0200 - https://mitjafelicijan.com/presentations-with-markdown.html - A simple way to make presentations without using desktop apps or using onlineservices is https://github. - <p>A simple way to make presentations without using desktop apps or using online + + + + + + Simple presentations with Markdown + https://mitjafelicijan.com/presentations-with-markdown.html + Wed, 21 Jun 2023 08:54:48 +0200 + https://mitjafelicijan.com/presentations-with-markdown.html + A simple way to make presentations without using desktop apps or using onlineservices is https://github. + <p>A simple way to make presentations without using desktop apps or using online services is <a href="https://github.com/remarkjs/remark">https://github.com/remarkjs/remark</a>.</p> <p>First create <code>index.html</code> and be sure you make changes to <code>config</code> variable.</p> <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span><span style="color:#00f">&lt;!DOCTYPE html&gt;</span> @@ -599,17 +599,17 @@ separate slides. Other stuff is just pure markdown.</p> </span></span><span style="display:flex;"><span><span style="color:#00f">-</span> Lorem ipsum dolor sit amet, consectetur adipiscing elit. </span></span><span style="display:flex;"><span><span style="color:#00f">-</span> Vestibulum eget leo ac dolor venenatis pulvinar. </span></span></code></pre> - - - - - - Bulk thumbnails - https://mitjafelicijan.com/bulk-make-thumbnails.html - Sun, 04 Jun 2023 20:46:56 +0200 - https://mitjafelicijan.com/bulk-make-thumbnails.html - Make bulk thumbnails of JPGs with ImageMagick. - <p>Make bulk thumbnails of JPGs with ImageMagick.</p> + + + + + + Bulk thumbnails + https://mitjafelicijan.com/bulk-make-thumbnails.html + Sun, 04 Jun 2023 20:46:56 +0200 + https://mitjafelicijan.com/bulk-make-thumbnails.html + Make bulk thumbnails of JPGs with ImageMagick. + <p>Make bulk thumbnails of JPGs with ImageMagick.</p> <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span><span style="color:#00f">#!/bin/bash </span></span></span><span style="display:flex;"><span><span style="color:#00f"></span> </span></span><span style="display:flex;"><span>directory=<span style="color:#a31515">&#34;./images/&#34;</span> @@ -619,17 +619,17 @@ separate slides. Other stuff is just pure markdown.</p> </span></span><span style="display:flex;"><span> convert <span style="color:#a31515">&#34;</span>$file<span style="color:#a31515">&#34;</span> -resize $dimensions <span style="color:#a31515">&#34;</span>$file<span style="color:#a31515">&#34;</span> <span style="color:#a31515">&#34;</span><span style="color:#a31515">${</span>file%.*<span style="color:#a31515">}</span><span style="color:#a31515">-thumbnail.jpg&#34;</span> </span></span><span style="display:flex;"><span><span style="color:#00f">done</span> </span></span></code></pre> - - - - - - Edsger W. Dijkstra Manuscripts ebook - https://mitjafelicijan.com/ewd-manuscripts-ebook.html - Thu, 01 Jun 2023 22:47:56 +0200 - https://mitjafelicijan.com/ewd-manuscripts-ebook.html - I love reading the original manuscripts of Edsger W. - <p>I love reading the original manuscripts of Edsger W. Dijkstra. They are + + + + + + Edsger W. Dijkstra Manuscripts ebook + https://mitjafelicijan.com/ewd-manuscripts-ebook.html + Thu, 01 Jun 2023 22:47:56 +0200 + https://mitjafelicijan.com/ewd-manuscripts-ebook.html + I love reading the original manuscripts of Edsger W. + <p>I love reading the original manuscripts of Edsger W. Dijkstra. They are available online at the University of Texas at Austin website, but I also found MOBI version. I converted it into ePub as well.</p> <p>Downloads:</p> @@ -643,19 +643,19 @@ MOBI version. I converted it into ePub as well.</p> <li><a href="https://github.com/evmn/The-Manuscripts-of-Edsger-W.-Dijkstra">Original repository of MOBI version</a></li> </ul> - - - - - - - - Extending dte editor - https://mitjafelicijan.com/extending-dte-editor.html - Wed, 31 May 2023 08:12:45 +0200 - https://mitjafelicijan.com/extending-dte-editor.html - dte is an interesting editor I startedusing lately more and more. - <p><a href="https://craigbarnes.gitlab.io/dte/"><code>dte</code></a> is an interesting editor I started + + + + + + + + Extending dte editor + https://mitjafelicijan.com/extending-dte-editor.html + Wed, 31 May 2023 08:12:45 +0200 + https://mitjafelicijan.com/extending-dte-editor.html + dte is an interesting editor I startedusing lately more and more. + <p><a href="https://craigbarnes.gitlab.io/dte/"><code>dte</code></a> is an interesting editor I started using lately more and more. Since it is using <a href="https://linux.die.net/man/3/execvp"><code>execvp()</code></a> it can be easily extended. I needed comment/uncomment feature so I created a small utility that does this for @@ -694,17 +694,17 @@ above.</p> </span></span><span style="display:flex;"><span>hi linenumber blue; </span></span><span style="display:flex;"><span>hi comment cyan; </span></span></code></pre> - - - - - - Grep to Less that maintain colors - https://mitjafelicijan.com/grep-to-less-maintain-colors.html - Mon, 29 May 2023 21:27:07 +0200 - https://mitjafelicijan.com/grep-to-less-maintain-colors.html - I often use grep to search for todo&#39;s in my code and other people&#39;s code andthen pipe them in less and I missed having colors that grep outputs in less. - <p>I often use <code>grep</code> to search for todo's in my code and other people's code and + + + + + + Grep to Less that maintain colors + https://mitjafelicijan.com/grep-to-less-maintain-colors.html + Mon, 29 May 2023 21:27:07 +0200 + https://mitjafelicijan.com/grep-to-less-maintain-colors.html + I often use grep to search for todo&#39;s in my code and other people&#39;s code andthen pipe them in less and I missed having colors that grep outputs in less. + <p>I often use <code>grep</code> to search for todo's in my code and other people's code and then pipe them in <code>less</code> and I missed having colors that grep outputs in <code>less</code>.</p> <ul> <li>Grep's <code>--color=always</code> use markers to highlight the matching strings.</li> @@ -719,17 +719,17 @@ string.</p> <img src="/notes/grep-less.png" alt="Less and grep" /> </figure> - - - - - - Easy measure time took in a bash script - https://mitjafelicijan.com/easy-time-took-in-bash.html - Sun, 28 May 2023 17:53:20 +0200 - https://mitjafelicijan.com/easy-time-took-in-bash.html - In Bash, the $SECONDS variable is a special variable that automatically keepstrack of the number of seconds since the current shell or script startedexecuting. - <p>In Bash, the <code>$SECONDS</code> variable is a special variable that automatically keeps + + + + + + Easy measure time took in a bash script + https://mitjafelicijan.com/easy-time-took-in-bash.html + Sun, 28 May 2023 17:53:20 +0200 + https://mitjafelicijan.com/easy-time-took-in-bash.html + In Bash, the $SECONDS variable is a special variable that automatically keepstrack of the number of seconds since the current shell or script startedexecuting. + <p>In Bash, the <code>$SECONDS</code> variable is a special variable that automatically keeps track of the number of seconds since the current shell or script started executing. It starts counting from the moment the script begins running.</p> <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span><span style="color:#00f">#!/bin/bash @@ -743,17 +743,17 @@ executing. It starts counting from the moment the script begins running.</p&g </span></span><span style="display:flex;"><span><span style="color:#008000"># Print the time elapsed.</span> </span></span><span style="display:flex;"><span>echo <span style="color:#a31515">&#34;Time taken: </span>$SECONDS<span style="color:#a31515"> seconds&#34;</span> </span></span></code></pre> - - - - - - Make DCSS playable on 4k displays - https://mitjafelicijan.com/dcss-on-4k-display.html - Sat, 27 May 2023 19:35:11 +0200 - https://mitjafelicijan.com/dcss-on-4k-display.html - Dungeon Crawl Stone Soup has a a very small font by default. - <p>Dungeon Crawl Stone Soup has a a very small font by default. On a 4k display, it + + + + + + Make DCSS playable on 4k displays + https://mitjafelicijan.com/dcss-on-4k-display.html + Sat, 27 May 2023 19:35:11 +0200 + https://mitjafelicijan.com/dcss-on-4k-display.html + Dungeon Crawl Stone Soup has a a very small font by default. + <p>Dungeon Crawl Stone Soup has a a very small font by default. On a 4k display, it is barely readable. This is how I made it playable.</p> <p>Make a file <code>~/.crawlrc</code> with the following content:</p> <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span><span style="color:#008000"># Adjust the sizes to your liking.</span> @@ -769,17 +769,17 @@ is barely readable. This is how I made it playable.</p> Guide</a> file.</p> - - - - - - Drawing Pixels in Plan9 - https://mitjafelicijan.com/drawing-pixels-in-plan9.html - Sat, 27 May 2023 17:41:33 +0200 - https://mitjafelicijan.com/drawing-pixels-in-plan9.html - I have started exploring Plan9&#39;s graphics capabilities. - <p>I have started exploring Plan9's graphics capabilities. This is a hello world + + + + + + Drawing Pixels in Plan9 + https://mitjafelicijan.com/drawing-pixels-in-plan9.html + Sat, 27 May 2023 17:41:33 +0200 + https://mitjafelicijan.com/drawing-pixels-in-plan9.html + I have started exploring Plan9&#39;s graphics capabilities. + <p>I have started exploring Plan9's graphics capabilities. This is a hello world alternative for drawing that draws a yellow square on a blue background.</p> <p>More information:</p> <ul> @@ -846,17 +846,17 @@ can be a valuable resource for learning about the system</li> is the alternative for Ctrl+C).</p> <p><em>This is <strong>very cool</strong> indeed!</em></p> - - - - - - Cronjobs on Github with Github Actions - https://mitjafelicijan.com/cronjobs-github-with-actions.html - Sat, 27 May 2023 00:35:36 +0200 - https://mitjafelicijan.com/cronjobs-github-with-actions.html - In the root of your repository create a folder . - <p>In the root of your repository create a folder <code>.github/workflows</code> and in that + + + + + + Cronjobs on Github with Github Actions + https://mitjafelicijan.com/cronjobs-github-with-actions.html + Sat, 27 May 2023 00:35:36 +0200 + https://mitjafelicijan.com/cronjobs-github-with-actions.html + In the root of your repository create a folder . + <p>In the root of your repository create a folder <code>.github/workflows</code> and in that folder create a file a file <code>cron.yaml</code>. This file can be named whatever you wish. But it has to be a <code>yaml</code> file.</p> <p>File below (<code>.github/workflows/cron.yaml</code>) describes an action that will trigger @@ -876,17 +876,17 @@ on their website <a href="https://docs.github.com/en/actions">http </span></span><span style="display:flex;"><span> - name: Call some url </span></span><span style="display:flex;"><span> run: curl &#39;https://example.com&#39; </span></span></code></pre> - - - - - - Dungeon Crawl Stone Soup - New player guide - https://mitjafelicijan.com/dcss-new-player-guide.html - Thu, 25 May 2023 22:00:00 +0200 - https://mitjafelicijan.com/dcss-new-player-guide.html - An amazing game deserves an amazing guide. - <p>An amazing game deserves an amazing guide. All this material can be find in some + + + + + + Dungeon Crawl Stone Soup - New player guide + https://mitjafelicijan.com/dcss-new-player-guide.html + Thu, 25 May 2023 22:00:00 +0200 + https://mitjafelicijan.com/dcss-new-player-guide.html + An amazing game deserves an amazing guide. + <p>An amazing game deserves an amazing guide. All this material can be find in some form on another on <a href="https://github.com/crawl/crawl">craw's</a> official repository.</p> <ul> <li><a href="/notes/dcss-quickstart.pdf">DCSS Quickstart</a> - Very short introduction to the @@ -981,17 +981,17 @@ don't hold back!</li> <li>Pressing <code>^</code> will let you view your current god, abilities, and piety.</li> </ul> - - - - - - Display xterm color palette - https://mitjafelicijan.com/write-iso-usb.html - Thu, 25 May 2023 12:00:00 +0200 - https://mitjafelicijan.com/write-iso-usb.html - bash xterm-palette. - <ul> + + + + + + Display xterm color palette + https://mitjafelicijan.com/write-iso-usb.html + Thu, 25 May 2023 12:00:00 +0200 + https://mitjafelicijan.com/write-iso-usb.html + bash xterm-palette. + <ul> <li><code>bash xterm-palette.sh</code> - will show you number of max colors available</li> <li><code>bash xterm-palette.sh -v</code> - will create a list of all colors with codes</li> </ul> @@ -1067,17 +1067,17 @@ don't hold back!</li> </span></span><span style="display:flex;"><span> ;; </span></span><span style="display:flex;"><span><span style="color:#00f">esac</span> | less --raw-control-chars --QUIT-AT-EOF --no-init </span></span></code></pre> - - - - - - Sane defaults for tmux with more visible statusbar - https://mitjafelicijan.com/tmux-sane-defaults.html - Thu, 25 May 2023 12:00:00 +0200 - https://mitjafelicijan.com/tmux-sane-defaults.html - # Remap prefix from &#39;C-b&#39; to &#39;M-a&#39;. - <pre><code class="language-conf"># Remap prefix from 'C-b' to 'M-a'. + + + + + + Sane defaults for tmux with more visible statusbar + https://mitjafelicijan.com/tmux-sane-defaults.html + Thu, 25 May 2023 12:00:00 +0200 + https://mitjafelicijan.com/tmux-sane-defaults.html + # Remap prefix from &#39;C-b&#39; to &#39;M-a&#39;. + <pre><code class="language-conf"># Remap prefix from 'C-b' to 'M-a'. unbind C-b set-option -g prefix M-a bind-key M-a send-prefix @@ -1104,35 +1104,35 @@ set -g window-status-current-format &quot;#[fg=#ffffff]#[bg=#111111]#[fg=#ff set -g mouse off </code></pre> - - - - - - My brand new Plan9/9front desktop - https://mitjafelicijan.com/fresh-9front-desktop.html - Wed, 24 May 2023 12:00:00 +0200 - https://mitjafelicijan.com/fresh-9front-desktop.html - I have been experimenting with Plan9/9front for a week now. - <p>I have been experimenting with Plan9/9front for a week now. Noice! This is how + + + + + + My brand new Plan9/9front desktop + https://mitjafelicijan.com/fresh-9front-desktop.html + Wed, 24 May 2023 12:00:00 +0200 + https://mitjafelicijan.com/fresh-9front-desktop.html + I have been experimenting with Plan9/9front for a week now. + <p>I have been experimenting with Plan9/9front for a week now. Noice! This is how my desktop looks like.</p> <figure> <img src="/notes/9front-desktop.png" alt="9front desktop" /> </figure> - - - - - - - - Parse RSS feeds with Lua - https://mitjafelicijan.com/parse-rss-with-lua.html - Tue, 23 May 2023 12:00:00 +0200 - https://mitjafelicijan.com/parse-rss-with-lua.html - Example of parsing RSS feeds with Lua. - <p>Example of parsing RSS feeds with Lua. Before running the script install:</p> + + + + + + + + Parse RSS feeds with Lua + https://mitjafelicijan.com/parse-rss-with-lua.html + Tue, 23 May 2023 12:00:00 +0200 + https://mitjafelicijan.com/parse-rss-with-lua.html + Example of parsing RSS feeds with Lua. + <p>Example of parsing RSS feeds with Lua. Before running the script install:</p> <ul> <li>feedparser with <code>luarocks install feedparser</code></li> <li>luasocket with <code>luarocks install luasocket</code></li> @@ -1162,17 +1162,17 @@ my desktop looks like.</p> </span></span><span style="display:flex;"><span> print(<span style="color:#a31515">&#34;! Request failed. Status:&#34;</span>, status) </span></span><span style="display:flex;"><span><span style="color:#00f">end</span> </span></span></code></pre> - - - - - - Extend Lua with custom C functions using Clang - https://mitjafelicijan.com/extend-lua-with-custom-c.html - Tue, 23 May 2023 12:00:00 +0200 - https://mitjafelicijan.com/extend-lua-with-custom-c.html - Here is a boilerplate for extending Lua with custom C functions. - <p>Here is a boilerplate for extending Lua with custom C functions. This requires + + + + + + Extend Lua with custom C functions using Clang + https://mitjafelicijan.com/extend-lua-with-custom-c.html + Tue, 23 May 2023 12:00:00 +0200 + https://mitjafelicijan.com/extend-lua-with-custom-c.html + Here is a boilerplate for extending Lua with custom C functions. + <p>Here is a boilerplate for extending Lua with custom C functions. This requires Clang and Lua 5.1 to be installed. GCC can be used instead of Clang, but the Makefile will need to be modified.</p> <ul> @@ -1213,17 +1213,17 @@ Makefile will need to be modified.</p> </span></span></code></pre></li> </ul> - - - - - - Execute not blocking async shell command in C# - https://mitjafelicijan.com/non-blocking-shell-exec-csharp.html - Mon, 22 May 2023 12:00:00 +0200 - https://mitjafelicijan.com/non-blocking-shell-exec-csharp.html - Execute a shell command in async in C# while not blocking the UI thread. - <p>Execute a shell command in async in C# while not blocking the UI thread.</p> + + + + + + Execute not blocking async shell command in C# + https://mitjafelicijan.com/non-blocking-shell-exec-csharp.html + Mon, 22 May 2023 12:00:00 +0200 + https://mitjafelicijan.com/non-blocking-shell-exec-csharp.html + Execute a shell command in async in C# while not blocking the UI thread. + <p>Execute a shell command in async in C# while not blocking the UI thread.</p> <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span><span style="color:#00f">private</span> <span style="color:#00f">async</span> Task executeCopyCommand() </span></span><span style="display:flex;"><span>{ </span></span><span style="display:flex;"><span> <span style="color:#00f">await</span> Task.Run(() =&gt; @@ -1251,33 +1251,33 @@ in the method that calls <code>executeCopyCommand()</code>.</p> </span></span><span style="display:flex;"><span> <span style="color:#00f">await</span> executeCopyCommand(); </span></span><span style="display:flex;"><span>} </span></span></code></pre> - - - - - - Change permissions of matching files recursively - https://mitjafelicijan.com/mass-set-permission.html - Tue, 16 May 2023 12:00:00 +0200 - https://mitjafelicijan.com/mass-set-permission.html - Replace *. - <p>Replace <code>*.xml</code> with your pattern. This will remove executable bit from all + + + + + + Change permissions of matching files recursively + https://mitjafelicijan.com/mass-set-permission.html + Tue, 16 May 2023 12:00:00 +0200 + https://mitjafelicijan.com/mass-set-permission.html + Replace *. + <p>Replace <code>*.xml</code> with your pattern. This will remove executable bit from all files matching the pattern. Change <code>+</code> to <code>-</code> to add executable bit.</p> <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span>find . -type f -name <span style="color:#a31515">&#34;*.xml&#34;</span> -exec chmod -x {} + </span></span></code></pre> - - - - - - - - Previews how man page written in Troff will look like - https://mitjafelicijan.com/preview-troff-man-pages.html - Mon, 15 May 2023 12:00:00 +0200 - https://mitjafelicijan.com/preview-troff-man-pages.html - Troff is used to write man pages and it is difficult to read it so this willpreview how it will look like when it is rendered. - <p>Troff is used to write man pages and it is difficult to read it so this will + + + + + + + + Previews how man page written in Troff will look like + https://mitjafelicijan.com/preview-troff-man-pages.html + Mon, 15 May 2023 12:00:00 +0200 + https://mitjafelicijan.com/preview-troff-man-pages.html + Troff is used to write man pages and it is difficult to read it so this willpreview how it will look like when it is rendered. + <p>Troff is used to write man pages and it is difficult to read it so this will preview how it will look like when it is rendered.</p> <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span><span style="color:#008000"># On Linux system.</span> </span></span><span style="display:flex;"><span>groff -man -Tascii filename @@ -1285,34 +1285,34 @@ preview how it will look like when it is rendered.</p> </span></span><span style="display:flex;"><span><span style="color:#008000"># On Plan9 system.</span> </span></span><span style="display:flex;"><span>man 1 filename </span></span></code></pre> - - - - - - Convert all MKV files into other formats - https://mitjafelicijan.com/convert-mkv.html - Sun, 14 May 2023 12:00:00 +0200 - https://mitjafelicijan.com/convert-mkv.html - You will need ffmpeg installed on your system. - <p>You will need <code>ffmpeg</code> installed on your system. This will convert all MKV files + + + + + + Convert all MKV files into other formats + https://mitjafelicijan.com/convert-mkv.html + Sun, 14 May 2023 12:00:00 +0200 + https://mitjafelicijan.com/convert-mkv.html + You will need ffmpeg installed on your system. + <p>You will need <code>ffmpeg</code> installed on your system. This will convert all MKV files into WebM format.</p> <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span><span style="color:#008000"># Convert all MKV files into WebM format.</span> </span></span><span style="display:flex;"><span>find ./ -name <span style="color:#a31515">&#39;*.mkv&#39;</span> -exec bash -c <span style="color:#a31515">&#39;ffmpeg -i &#34;$0&#34; -vcodec libvpx -acodec libvorbis -cpu-used 5 -threads 8 &#34;${0%%.mp4}.webm&#34;&#39;</span> {} <span style="color:#a31515">\;</span> </span></span></code></pre><pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span><span style="color:#008000"># Convert all MKV files into MP4 format.</span> </span></span><span style="display:flex;"><span>find ./ -name <span style="color:#a31515">&#39;*.mkv&#39;</span> -exec bash -c <span style="color:#a31515">&#39;ffmpeg -i &#34;$0&#34; c:a copy -c:v copy -cpu-used 5 -threads 8 &#34;${0%%.mp4}.mp4&#34;&#39;</span> {} <span style="color:#a31515">\;</span> </span></span></code></pre> - - - - - - Download list of YouTube files - https://mitjafelicijan.com/download-youtube-videos.html - Sat, 13 May 2023 12:00:00 +0200 - https://mitjafelicijan.com/download-youtube-videos.html - If you need to download a list of YouTube videos and don&#39;t want to download theactual YouTube list (which yt-dlp supports), you can use the following method. - <p>If you need to download a list of YouTube videos and don't want to download the + + + + + + Download list of YouTube files + https://mitjafelicijan.com/download-youtube-videos.html + Sat, 13 May 2023 12:00:00 +0200 + https://mitjafelicijan.com/download-youtube-videos.html + If you need to download a list of YouTube videos and don&#39;t want to download theactual YouTube list (which yt-dlp supports), you can use the following method. + <p>If you need to download a list of YouTube videos and don't want to download the actual YouTube list (which <code>yt-dlp</code> supports), you can use the following method.</p> <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span><span style="color:#008000">// Used to get list of raw URL&#39;s from YouTube&#39;s video tab&#39;. </span></span></span><span style="display:flex;"><span><span style="color:#008000">// Copy them into videos.txt. @@ -1321,17 +1321,17 @@ actual YouTube list (which <code>yt-dlp</code> supports), you can us <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span><span style="color:#008000"># This will download all videos in videos.txt.</span> </span></span><span style="display:flex;"><span>yt-dlp --batch-file videos.txt -N <span style="color:#a31515">`</span>nproc<span style="color:#a31515">`</span> -f webm </span></span></code></pre> - - - - - - Install Plan9port on Linux - https://mitjafelicijan.com/install-plan9port-linux.html - Fri, 12 May 2023 12:00:00 +0200 - https://mitjafelicijan.com/install-plan9port-linux.html - Install Plan9port on Linux. - <p>Install Plan9port on Linux. This applies to + + + + + + Install Plan9port on Linux + https://mitjafelicijan.com/install-plan9port-linux.html + Fri, 12 May 2023 12:00:00 +0200 + https://mitjafelicijan.com/install-plan9port-linux.html + Install Plan9port on Linux. + <p>Install Plan9port on Linux. This applies to <a href="https://9fans.github.io/plan9port/">Plan9port</a>. This is a port of many Plan 9 programs to Unix-like operating systems. Useful for programs like <code>9term</code> and <code>rc</code>.</p> @@ -1340,17 +1340,17 @@ programs to Unix-like operating systems. Useful for programs like <code>9t </span></span><span style="display:flex;"><span>cd $HOME/plan9/plan9port </span></span><span style="display:flex;"><span>./INSTALL -r $HOME/plan9 </span></span></code></pre> - - - - - - Fix bootloader not being written in Plan9 - https://mitjafelicijan.com/fix-plan9-bootloader.html - Thu, 11 May 2023 12:00:00 +0200 - https://mitjafelicijan.com/fix-plan9-bootloader.html - If the bootloader is not being written to a disk when installing 9front on realharware try clearing first sector of the disk with the following command. - <p>If the bootloader is not being written to a disk when installing 9front on real + + + + + + Fix bootloader not being written in Plan9 + https://mitjafelicijan.com/fix-plan9-bootloader.html + Thu, 11 May 2023 12:00:00 +0200 + https://mitjafelicijan.com/fix-plan9-bootloader.html + If the bootloader is not being written to a disk when installing 9front on realharware try clearing first sector of the disk with the following command. + <p>If the bootloader is not being written to a disk when installing 9front on real harware try clearing first sector of the disk with the following command.</p> <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span>dd <span style="color:#00f">if</span>=/dev/zero of=/dev/sdX bs=512 count=1 </span></span><span style="display:flex;"><span> @@ -1358,17 +1358,17 @@ harware try clearing first sector of the disk with the following command.</p& </span></span><span style="display:flex;"><span><span style="color:#008000"># press delete key to stop the command.</span> </span></span><span style="display:flex;"><span>cat &lt;/dev/zero &gt;/dev/sd*/data </span></span></code></pre> - - - - - - Take a screenshot in Plan9 - https://mitjafelicijan.com/plan9-screenshot.html - Wed, 10 May 2023 12:00:00 +0200 - https://mitjafelicijan.com/plan9-screenshot.html - Take a screenshot in Plan9. - <p>Take a screenshot in Plan9. This applies to <a href="https://9p.io/plan9/">Plan9</a> and + + + + + + Take a screenshot in Plan9 + https://mitjafelicijan.com/plan9-screenshot.html + Wed, 10 May 2023 12:00:00 +0200 + https://mitjafelicijan.com/plan9-screenshot.html + Take a screenshot in Plan9. + <p>Take a screenshot in Plan9. This applies to <a href="https://9p.io/plan9/">Plan9</a> and <a href="https://9front.org/">9front</a>. This will take a screenshot of the screen and output it to <code>/dev/screen</code>. You can then use <code>topng</code> to convert it to a png image.</p> @@ -1378,17 +1378,17 @@ image.</p> </span></span><span style="display:flex;"><span><span style="color:#008000"># Delayed screenshot (5 seconds).</span> </span></span><span style="display:flex;"><span>sleep 5; cat /dev/screen | topng &gt; screen.png </span></span></code></pre> - - - - - - #cat-v on weechat configuration - https://mitjafelicijan.com/catv-weechat-config.html - Tue, 09 May 2023 12:00:00 +0200 - https://mitjafelicijan.com/catv-weechat-config.html - Set up weechat to connect to #cat-v on oftc. - <p>Set up weechat to connect to #cat-v on oftc. This applies to + + + + + + #cat-v on weechat configuration + https://mitjafelicijan.com/catv-weechat-config.html + Tue, 09 May 2023 12:00:00 +0200 + https://mitjafelicijan.com/catv-weechat-config.html + Set up weechat to connect to #cat-v on oftc. + <p>Set up weechat to connect to #cat-v on oftc. This applies to <a href="https://weechat.org/">weechat</a> but should be similar for other irc clients.</p> <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span><span style="color:#008000"># Install weechat and launch it and execute the following commands.</span> </span></span><span style="display:flex;"><span> @@ -1397,30 +1397,30 @@ image.</p> </span></span><span style="display:flex;"><span>/set irc.server.oftc.autojoin <span style="color:#a31515">&#34;#cat-v&#34;</span> </span></span><span style="display:flex;"><span>/set irc.server.oftc.nicks <span style="color:#a31515">&#34;nick1,nick2,nick3&#34;</span> </span></span></code></pre> - - - - - - Write ISO to USB Key - https://mitjafelicijan.com/write-iso-usb.html - Mon, 08 May 2023 12:00:00 +0200 - https://mitjafelicijan.com/write-iso-usb.html - Write ISO to USB key. - <p>Write ISO to USB key. Nothing fancy here.</p> + + + + + + Write ISO to USB Key + https://mitjafelicijan.com/write-iso-usb.html + Mon, 08 May 2023 12:00:00 +0200 + https://mitjafelicijan.com/write-iso-usb.html + Write ISO to USB key. + <p>Write ISO to USB key. Nothing fancy here.</p> <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span>sudo dd <span style="color:#00f">if</span>=iso_file.iso of=/dev/sdX bs=4M status=progress conv=fdatasync </span></span></code></pre> - - - - - - Mount Plan9 over network - https://mitjafelicijan.com/mount-plan9-over-network.html - Sun, 07 May 2023 12:00:00 +0200 - https://mitjafelicijan.com/mount-plan9-over-network.html - First install libfuse with sudo apt install libfuse-dev. - <ul> + + + + + + Mount Plan9 over network + https://mitjafelicijan.com/mount-plan9-over-network.html + Sun, 07 May 2023 12:00:00 +0200 + https://mitjafelicijan.com/mount-plan9-over-network.html + First install libfuse with sudo apt install libfuse-dev. + <ul> <li>First install libfuse with sudo apt install libfuse-dev.</li> <li>Then clone <a href="https://github.com/ftrvxmtrx/9pfs">https://github.com/ftrvxmtrx/9pfs</a> and compile it with make.</li> <li>Copy 9pfs to your path.</li> @@ -1433,32 +1433,32 @@ image.</p> </span></span><span style="display:flex;"><span>9pfs 172.18.0.1 -p 9999 local_folder <span style="color:#008000"># mount</span> </span></span><span style="display:flex;"><span>umount local_folder <span style="color:#008000"># unmount</span> </span></span></code></pre> - - - - - - Push to multiple origins at once in Git - https://mitjafelicijan.com/git-push-multiple-origins.html - Sat, 06 May 2023 12:00:00 +0200 - https://mitjafelicijan.com/git-push-multiple-origins.html - Sometimes you want to push to multiple origins at once. - <p>Sometimes you want to push to multiple origins at once. This is useful if you + + + + + + Push to multiple origins at once in Git + https://mitjafelicijan.com/git-push-multiple-origins.html + Sat, 06 May 2023 12:00:00 +0200 + https://mitjafelicijan.com/git-push-multiple-origins.html + Sometimes you want to push to multiple origins at once. + <p>Sometimes you want to push to multiple origins at once. This is useful if you have a mirror of your repository on another server. You can do this by adding multiple push urls to your git config. This is a shorthand for command above.</p> <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span>git config --global alias.pushall <span style="color:#a31515">&#39;!sh -c &#34;git remote | xargs -L1 git push --all&#34;&#39;</span> </span></span></code></pre> - - - - - - Run 9front in Qemu - https://mitjafelicijan.com/run-9front-in-qemu.html - Fri, 05 May 2023 12:00:00 +0200 - https://mitjafelicijan.com/run-9front-in-qemu.html - Run 9front in Qemu. - <p>Run 9front in Qemu. This applies to <a href="https://9p.io/plan9/">Plan9</a> and + + + + + + Run 9front in Qemu + https://mitjafelicijan.com/run-9front-in-qemu.html + Fri, 05 May 2023 12:00:00 +0200 + https://mitjafelicijan.com/run-9front-in-qemu.html + Run 9front in Qemu. + <p>Run 9front in Qemu. This applies to <a href="https://9p.io/plan9/">Plan9</a> and <a href="https://9front.org/">9front</a>.</p> <p>Download from here <a href="http://9front.org/iso/">http://9front.org/iso/</a>.</p> <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span><span style="color:#008000"># Create a qcow2 image.</span> @@ -1473,98 +1473,98 @@ multiple push urls to your git config. This is a shorthand for command above.< </span></span></span><span style="display:flex;"><span><span style="color:#a31515"></span> -drive <span style="color:#00f">if</span>=none,id=vd1,file=$HOME/VM/ISO/9front.386.iso <span style="color:#a31515">\ </span></span></span><span style="display:flex;"><span><span style="color:#a31515"></span> -device scsi-cd,drive=vd1,bootindex=0 </span></span></code></pre> - - - - - - Cache busting in Hugo - https://mitjafelicijan.com/cachebusting-in-hugo.html - Mon, 01 May 2023 12:00:00 +0200 - https://mitjafelicijan.com/cachebusting-in-hugo.html - {{ $cachebuster := delimit (shuffle (split (md5 &#34;6fab11c6669976d759d2992eff1dd5be&#34;) &#34;&#34; )) &#34;&#34; }}&lt;link rel=&#34;stylesheet&#34; href=&#34;/style. - <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span>{{ $cachebuster := delimit (shuffle (split (md5 &#34;6fab11c6669976d759d2992eff1dd5be&#34;) &#34;&#34; )) &#34;&#34; }} + + + + + + Cache busting in Hugo + https://mitjafelicijan.com/cachebusting-in-hugo.html + Mon, 01 May 2023 12:00:00 +0200 + https://mitjafelicijan.com/cachebusting-in-hugo.html + {{ $cachebuster := delimit (shuffle (split (md5 &#34;6fab11c6669976d759d2992eff1dd5be&#34;) &#34;&#34; )) &#34;&#34; }}&lt;link rel=&#34;stylesheet&#34; href=&#34;/style. + <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span>{{ $cachebuster := delimit (shuffle (split (md5 &#34;6fab11c6669976d759d2992eff1dd5be&#34;) &#34;&#34; )) &#34;&#34; }} </span></span><span style="display:flex;"><span> </span></span><span style="display:flex;"><span>&lt;link rel=<span style="color:#a31515">&#34;stylesheet&#34;</span> href=<span style="color:#a31515">&#34;/style.css?v={{ $cachebuster }}&#34;</span>&gt; </span></span></code></pre><p>This <code>6fab11c6669976d759d2992eff1dd5be</code> can be random string you generate use. You can use whatever you want.</p> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3