<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Rafael Cavalcanti - rafaelc.org</title><description>Updates from rafaelc.org.</description><link>https://rafaelc.org/</link><language>en-us</language><item><title>Running a web server while using Pi Hole</title><link>https://rafaelc.org/posts/running-a-web-server-while-using-pi-hole</link><guid isPermaLink="true">https://rafaelc.org/posts/running-a-web-server-while-using-pi-hole</guid><pubDate>Wed, 18 Jul 2018 18:27:38 GMT</pubDate><content:encoded>&lt;p&gt;If you are running Pi Hole and want to deploy a web application to your Raspberry Pi, chances are that you’ll hit your head to the wall. That’s because Pi Hole installs and configures a web server (Lighttpd) for itself using port 80.&lt;/p&gt;
&lt;p&gt;This way, Lighttpd:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/running-a-web-server-while-using-pi-hole&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>The motivation for PiFi Radio</title><link>https://rafaelc.org/posts/the-motivation-for-pifi-radio</link><guid isPermaLink="true">https://rafaelc.org/posts/the-motivation-for-pifi-radio</guid><pubDate>Sat, 11 Aug 2018 01:36:17 GMT</pubDate><content:encoded>&lt;p&gt;PiFi Radio is a MPD web client focused on playing radio streamings. &lt;a href=&quot;https://github.com/rc2dev/pifi-radio&quot;&gt;As I recently open sourced it&lt;/a&gt;, I&apos;ll try to explain what made me write it.&lt;/p&gt;
&lt;p&gt;I started this project in early 2017. At that time, I wanted to setup a Raspberry Pi for my parents to listen to internet radio and control it with ease.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/the-motivation-for-pifi-radio&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>A cause for error 0x80070057 on Windows 10</title><link>https://rafaelc.org/posts/a-cause-for-error-0x80070057-on-windows-10</link><guid isPermaLink="true">https://rafaelc.org/posts/a-cause-for-error-0x80070057-on-windows-10</guid><pubDate>Wed, 21 Nov 2018 16:45:15 GMT</pubDate><content:encoded>&lt;p&gt;After years as a full-time Linux user, lately I decided to fiddle a bit more with Windows 10.&lt;/p&gt;
&lt;p&gt;Just a couple of days passed from a clean Windows installation, and I faced a somewhat obscure bug. The solution I found might be helpful to someone else.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/a-cause-for-error-0x80070057-on-windows-10&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>MIUI Notes trims text without warning</title><link>https://rafaelc.org/posts/miui-notes-trims-text-without-warning</link><guid isPermaLink="true">https://rafaelc.org/posts/miui-notes-trims-text-without-warning</guid><pubDate>Tue, 30 Apr 2019 02:54:03 GMT</pubDate><content:encoded>&lt;p&gt;This entry is just a friendly warning if you happen to use the Notes app from Xiaomi.&lt;/p&gt;
&lt;p&gt;These days I shared a few texts to it via Android&apos;s share menu. All seemed well. No error message and all texts were there as new notes, as expected.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/miui-notes-trims-text-without-warning&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>An anti-theft strategy on Xiaomi phones</title><link>https://rafaelc.org/posts/an-anti-theft-strategy-on-xiaomi-phones</link><guid isPermaLink="true">https://rafaelc.org/posts/an-anti-theft-strategy-on-xiaomi-phones</guid><pubDate>Mon, 08 Jul 2019 02:00:21 GMT</pubDate><content:encoded>&lt;p&gt;In this post, I want to share an idea that I had last year and may help secure your data on Xiaomi phones.&lt;/p&gt;
&lt;p&gt;You may be faced with a situation in which someone, normally a thief, constrain you to give away your PIN. Needless to say, together your PIN, he&apos;ll have access to most of what you have on your phone.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/an-anti-theft-strategy-on-xiaomi-phones&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Digital reading, highlights and notes</title><link>https://rafaelc.org/posts/digital-reading-highlights-and-notes</link><guid isPermaLink="true">https://rafaelc.org/posts/digital-reading-highlights-and-notes</guid><pubDate>Thu, 19 Sep 2019 16:39:51 GMT</pubDate><content:encoded>&lt;p&gt;When reading, I consider the ability of highlighting and taking notes a basic requirement. If I can&apos;t do it in some way, even with &lt;em&gt;rudimentary&lt;/em&gt; copy and past, my reading experience becomes much less rich.&lt;/p&gt;
&lt;p&gt;The arrival of digital reading should help us with annotations, improving them and opening new possibilities.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/digital-reading-highlights-and-notes&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Mounting KDE Connect filesystem via CLI</title><link>https://rafaelc.org/posts/mounting-kde-connect-filesystem-via-cli</link><guid isPermaLink="true">https://rafaelc.org/posts/mounting-kde-connect-filesystem-via-cli</guid><pubDate>Sat, 03 Aug 2019 22:15:12 GMT</pubDate><content:encoded>&lt;p&gt;One of the multiple useful features from KDE Connect is browsing your phone files on your desktop. However, that&apos;s currently only available through the GUI, e.g., in KDE Connect tray icon or Dolphin&apos;s side panel. KDE Connect does have a command-line tool (&lt;code&gt;kdeconnect-cli&lt;/code&gt;), but it lacks that option.&lt;/p&gt;
&lt;p&gt;So if, for any reason, you need to do that mounting programatically, this guide should help you.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/mounting-kde-connect-filesystem-via-cli&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>A way to organize your Bash aliases on multiple hosts</title><link>https://rafaelc.org/posts/a-way-to-organize-your-bash-aliases-on-multiple-hosts</link><guid isPermaLink="true">https://rafaelc.org/posts/a-way-to-organize-your-bash-aliases-on-multiple-hosts</guid><pubDate>Mon, 27 Aug 2018 14:34:25 GMT</pubDate><content:encoded>&lt;p&gt;If you use multiple systems, you probably have a method of syncing your dotfiles between them. But different systems also have different needs.&lt;/p&gt;
&lt;p&gt;When we talk about Bash, not properly managing those differences could mean having tons of useless aliases polluting your environment, just because they are wanted on other machines. Or a very cluttered &lt;code&gt;~/.bash_aliases&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/a-way-to-organize-your-bash-aliases-on-multiple-hosts&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Web server and Pi Hole - a how-to</title><link>https://rafaelc.org/posts/web-server-and-pi-hole-a-how-to</link><guid isPermaLink="true">https://rafaelc.org/posts/web-server-and-pi-hole-a-how-to</guid><pubDate>Thu, 19 Jul 2018 16:39:23 GMT</pubDate><content:encoded>&lt;p&gt;In the previous post, we discussed &lt;a href=&quot;/posts/running-a-web-server-while-using-pi-hole&quot;&gt;how I set up a web server alongside Pi Hole&lt;/a&gt;. Now, I will guide you step by step on how to do it on Raspbian Stretch.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;A word of caution. I think I don&apos;t need to remember you, but I will: &lt;strong&gt;please make a copy of the configuration files before editing.&lt;/strong&gt; Also, be careful if doing this remotely, since we are changing the network configuration and a mistake could make you lose your connection to the Pi.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/web-server-and-pi-hole-a-how-to&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Smart morning radio with Raspberry Pi, cron and MPD</title><link>https://rafaelc.org/posts/smart-morning-radio-with-raspberry-pi-cron-and-mpd</link><guid isPermaLink="true">https://rafaelc.org/posts/smart-morning-radio-with-raspberry-pi-cron-and-mpd</guid><pubDate>Mon, 13 Aug 2018 05:14:19 GMT</pubDate><content:encoded>&lt;p&gt;What if your Pi waked you up every morning with your favorite radio station? Wouldn&apos;t it be cool if it stopped playing when you leave home? And what about not bothering you on holidays?&lt;/p&gt;
&lt;p&gt;I have a pair of speakers connected to my Pi, and I keep them on 24/7. This opens a lot of possibilities. One is to make my Pi stream some radio always at a fixed time.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/smart-morning-radio-with-raspberry-pi-cron-and-mpd&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Export all your Kindle highlights and notes</title><link>https://rafaelc.org/posts/export-all-your-kindle-highlights-and-notes</link><guid isPermaLink="true">https://rafaelc.org/posts/export-all-your-kindle-highlights-and-notes</guid><pubDate>Thu, 19 Sep 2019 17:37:40 GMT</pubDate><content:encoded>&lt;p&gt;Previously, &lt;a href=&quot;/posts/digital-reading-highlights-and-notes&quot;&gt;I discussed the current state of annotations in digital books and documents&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In this post, I want to introduce a tool I developed to help Kindle users handle their highlights, notes, bookmarks, etc.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/export-all-your-kindle-highlights-and-notes&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Mount Borg backups with ease</title><link>https://rafaelc.org/posts/mount-borg-backups-with-ease</link><guid isPermaLink="true">https://rafaelc.org/posts/mount-borg-backups-with-ease</guid><pubDate>Mon, 07 Oct 2019 17:20:07 GMT</pubDate><content:encoded>&lt;p&gt;Borg is an excellent backup software. One of Borg&apos;s features is mounting the backups and accessing all files in them. This is done by running &lt;code&gt;borg mount&lt;/code&gt; with the path to the repository and the name of the archive you want to mount.&lt;/p&gt;
&lt;p&gt;My workflow for mounting a Borg archive is typically like this:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/mount-borg-backups-with-ease&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Send files to your phone from file manager</title><link>https://rafaelc.org/posts/send-files-to-your-phone-from-file-manager</link><guid isPermaLink="true">https://rafaelc.org/posts/send-files-to-your-phone-from-file-manager</guid><pubDate>Wed, 16 Oct 2019 20:55:41 GMT</pubDate><content:encoded>&lt;p&gt;A very handy thing to have in your file manager is an option to send files directly to your phone.&lt;/p&gt;
&lt;p&gt;If you happen to use KDE Connect and Dolphin, this is already there out of the box. Just right click a file and will see an option to send it to your devices. GNOME and Nautilus with the GSConnect extension provides the same.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/send-files-to-your-phone-from-file-manager&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>A workaround for KDE Connect browsing bug</title><link>https://rafaelc.org/posts/a-workaround-for-kde-connect-browsing-bug</link><guid isPermaLink="true">https://rafaelc.org/posts/a-workaround-for-kde-connect-browsing-bug</guid><pubDate>Sat, 16 Nov 2019 07:51:02 GMT</pubDate><content:encoded>&lt;p&gt;If you press &lt;em&gt;&quot;Browse device&lt;/em&gt;&quot; on the KDE Connect tray icon and get the following error:&lt;/p&gt;
&lt;p&gt;In this post I will show you a simple workaround: open your file manager and browse to &lt;code&gt;/run/user/&amp;lt;YOUR UID&amp;gt;/&amp;lt;YOUR DEVICE ID&amp;gt;/&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/a-workaround-for-kde-connect-browsing-bug&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>How I use the Open With extension</title><link>https://rafaelc.org/posts/how-i-use-the-open-with-extension</link><guid isPermaLink="true">https://rafaelc.org/posts/how-i-use-the-open-with-extension</guid><pubDate>Sun, 27 Sep 2020 00:31:18 GMT</pubDate><content:encoded>&lt;p&gt;A very useful browser extension is &lt;a href=&quot;https://github.com/darktrojan/openwith&quot;&gt;Open With&lt;/a&gt;. Although it hasn&apos;t been updated for a while, I&apos;ve yet to find something to replace it.&lt;/p&gt;
&lt;p&gt;Open With presents itself in the Chrome web store this way: &lt;em&gt;&quot;Quickly test out your web pages in Edge, Firefox, Safari, or Opera.&quot;&lt;/em&gt; However, it is much more powerful than that: it actually allows you to run any external program on your computer passing the URL of the current tab or selected link.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/how-i-use-the-open-with-extension&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Watching YouTube playlists on shuffle with MPV</title><link>https://rafaelc.org/posts/watching-youtube-playlists-on-shuffle-with-mpv</link><guid isPermaLink="true">https://rafaelc.org/posts/watching-youtube-playlists-on-shuffle-with-mpv</guid><pubDate>Sat, 06 Jun 2020 21:32:25 GMT</pubDate><content:encoded>&lt;p&gt;Right now, I have a bunch of videos in my YouTube watch later playlist. After a certain number, browsing through them becomes a pain. So I thought of watching them randomly, and skip whatever didn&apos;t interested me at the moment.&lt;/p&gt;
&lt;p&gt;YouTube does have a shuffle button, but it never worked well when I tried it. Also, I wanted to use MPV, which gives me better performance on Linux and a nice experience.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/watching-youtube-playlists-on-shuffle-with-mpv&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Reading random Pocket articles with a hotkey</title><link>https://rafaelc.org/posts/reading-random-pocket-articles-with-a-hotkey</link><guid isPermaLink="true">https://rafaelc.org/posts/reading-random-pocket-articles-with-a-hotkey</guid><pubDate>Fri, 11 Dec 2020 17:21:55 GMT</pubDate><content:encoded>&lt;p&gt;I have tons of articles in my Pocket account. To make it easier to read them, I wanted a way to get a random one on demand.&lt;/p&gt;
&lt;p&gt;As it turned out, this was very straightforward. Pocket has a URL (&lt;code&gt;https://getpocket.com/random&lt;/code&gt;) that gives you exactly that: a random article from your list each time you visit it.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/reading-random-pocket-articles-with-a-hotkey&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Convert Kindle annotations from HTML to markdown</title><link>https://rafaelc.org/posts/convert-kindle-annotations-from-html-to-markdown</link><guid isPermaLink="true">https://rafaelc.org/posts/convert-kindle-annotations-from-html-to-markdown</guid><pubDate>Fri, 08 Jan 2021 04:14:52 GMT</pubDate><content:encoded>&lt;p&gt;The Kindle app on your phone can export your annotations on a particular book to an HTML file.&lt;/p&gt;
&lt;p&gt;However, I find that file quite noisy, and would rather have my annotations in a simpler format: markdown. Also, I would like to remove unnecessary information and make it less verbose.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/convert-kindle-annotations-from-html-to-markdown&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>How to automatically reflect vim-plug changes on all hosts</title><link>https://rafaelc.org/posts/how-to-automatically-reflect-vim-plug-changes-on-all-hosts</link><guid isPermaLink="true">https://rafaelc.org/posts/how-to-automatically-reflect-vim-plug-changes-on-all-hosts</guid><pubDate>Sat, 06 Mar 2021 02:24:49 GMT</pubDate><content:encoded>&lt;p&gt;I use the excellent &lt;a href=&quot;https://github.com/junegunn/vim-plug&quot;&gt;vim-plug&lt;/a&gt; to manage my VIM plugins. In this setup, whenever you want to add or remove plugins, you have to do three things:&lt;/p&gt;
&lt;p&gt;If you use VIM on a single machine, this is straightforward enough. However, if you implement your dotfiles across multiple hosts, simply pulling the changes on &lt;code&gt;vimrc&lt;/code&gt; doesn&apos;t make new plugins work. Every time you change your VIM plugins list, you need to remember to also do 2 and 3 on each host.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/how-to-automatically-reflect-vim-plug-changes-on-all-hosts&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Using Timewarrior on multiple devices</title><link>https://rafaelc.org/posts/using-timewarrior-on-multiple-devices</link><guid isPermaLink="true">https://rafaelc.org/posts/using-timewarrior-on-multiple-devices</guid><pubDate>Thu, 18 Mar 2021 16:06:01 GMT</pubDate><content:encoded>&lt;p&gt;For a few weeks, I&apos;ve been tracking my time with Timewarrior on the desktop. At some point, I missed also having it available on other devices, namely my phone.&lt;/p&gt;
&lt;p&gt;Unlike its sibling Taskwarrior, it lacks a synchronization server, or any official way of using it on multiple machines. So, at first, you are stuck at only using it on one device. However, there is an easy fix for that, and in this post I&apos;ll describe it.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/using-timewarrior-on-multiple-devices&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Fixing kdeconnect-cli &quot;no such object path&quot; error</title><link>https://rafaelc.org/posts/fixing-kdeconnect-cli-%22no-such-object-path%22-error</link><guid isPermaLink="true">https://rafaelc.org/posts/fixing-kdeconnect-cli-%22no-such-object-path%22-error</guid><pubDate>Wed, 23 Jun 2021 13:21:23 GMT</pubDate><content:encoded>&lt;p&gt;Lately, &lt;code&gt;kdeconnect-cli&lt;/code&gt; started returning this error whenever I tried to send a file to my phone:&lt;/p&gt;
&lt;p&gt;This suggests that the sharing plugin is disabled on the device. However, I checked the plugin list in the KDE Connect phone app and confirmed that it was enabled.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/fixing-kdeconnect-cli-%22no-such-object-path%22-error&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Backup your YouTube playlists in JSON with git</title><link>https://rafaelc.org/posts/backup-your-youtube-playlists-in-json-with-git</link><guid isPermaLink="true">https://rafaelc.org/posts/backup-your-youtube-playlists-in-json-with-git</guid><pubDate>Fri, 18 Jun 2021 01:13:49 GMT</pubDate><content:encoded>&lt;p&gt;Backups are important for a number of reasons. As of lately, much of our data has moved to the cloud, so this brings the need to also backup our data from those online services.&lt;/p&gt;
&lt;p&gt;With this in mind, I&apos;ve been building some solutions to periodically backup my most relevant data from the cloud to some system I have control.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/backup-your-youtube-playlists-in-json-with-git&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Fix Chromium signing out from Google under Linux Mint 20</title><link>https://rafaelc.org/posts/fix-chromium-signing-out-from-google-under-linux-mint-20</link><guid isPermaLink="true">https://rafaelc.org/posts/fix-chromium-signing-out-from-google-under-linux-mint-20</guid><pubDate>Mon, 12 Jul 2021 22:44:04 GMT</pubDate><content:encoded>&lt;p&gt;Recently, I started experiencing this issue on Chromium under Linux Mint 20.&lt;/p&gt;
&lt;p&gt;Every time I opened Chromium and tried to use a Google service, I would not be logged on them. For example, opening Gmail would show me the login page. I, then, proceeded to login, and everything worked fine until I closed the browser. Opening Chromium again would bring me back to the same problem: I was signed out from Google and prompted to login.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/fix-chromium-signing-out-from-google-under-linux-mint-20&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Valid certificates for LAN-only websites using HTTP-01 challenge</title><link>https://rafaelc.org/posts/valid-certificates-for-lan-only-websites-using-http-01-challenge</link><guid isPermaLink="true">https://rafaelc.org/posts/valid-certificates-for-lan-only-websites-using-http-01-challenge</guid><pubDate>Tue, 27 Jul 2021 14:18:34 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;Scenario:&lt;/strong&gt; You serve some websites exclusively within your network and you own a domain name. You want to enable SSL and that their certificates are recognized out of the box, without manual instalation on each client.&lt;/p&gt;
&lt;p&gt;This rules out a self-signed certificate. A solution may be using Let&apos;s Encrypt with the DNS-01 challenge.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/valid-certificates-for-lan-only-websites-using-http-01-challenge&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Fix Taskwarrior autocompletion on Termux</title><link>https://rafaelc.org/posts/fix-taskwarrior-autocompletion-on-termux</link><guid isPermaLink="true">https://rafaelc.org/posts/fix-taskwarrior-autocompletion-on-termux</guid><pubDate>Sat, 24 Jul 2021 19:53:30 GMT</pubDate><content:encoded>&lt;p&gt;If you use Taskwarrior on Termux, autocompletion doesn&apos;t work out of the box, be it on Zsh or Bash.&lt;/p&gt;
&lt;p&gt;I found out that the completions are available at &lt;code&gt;$PREFIX/share/doc/task/scripts&lt;/code&gt;, but absent on the appropriate shell completion directories.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/fix-taskwarrior-autocompletion-on-termux&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Fix opening locked app from Termux on MIUI</title><link>https://rafaelc.org/posts/fix-opening-locked-app-from-termux-on-miui</link><guid isPermaLink="true">https://rafaelc.org/posts/fix-opening-locked-app-from-termux-on-miui</guid><pubDate>Sun, 25 Jul 2021 15:47:45 GMT</pubDate><content:encoded>&lt;p&gt;Termux has the handy &lt;code&gt;termux-open&lt;/code&gt; command, which is aliased as &lt;code&gt;xdg-open&lt;/code&gt;. I use it to open markdown notes from Termux on Markor (a markdown editor application), by simply running &lt;code&gt;xdg-open foobar.md&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;This stopped working when I set Markor to use MIUI&apos;s &quot;app lock&quot; feature, which forces you to authenticate before opening selected apps. Termux would open Markor normally and the &quot;app lock&quot; screen would ask for my credentials. However, after logging in correctly, I would be brought back to Termux. Manually opening Markor wouldn&apos;t show the file I opened.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/fix-opening-locked-app-from-termux-on-miui&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Multi-line annotations on Taskwarrior</title><link>https://rafaelc.org/posts/multi-line-annotations-on-taskwarrior</link><guid isPermaLink="true">https://rafaelc.org/posts/multi-line-annotations-on-taskwarrior</guid><pubDate>Wed, 04 Aug 2021 03:52:28 GMT</pubDate><content:encoded>&lt;p&gt;When I started using Taskwarrior, one of the first things that I missed was having plenty of space for writing my annotations.&lt;/p&gt;
&lt;p&gt;Of course, I could add &lt;code&gt;\n&lt;/code&gt;&apos;s as I wished to break lines, but I wanted a comfier place to write them.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/multi-line-annotations-on-taskwarrior&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>What is termux-dialog and how I use it</title><link>https://rafaelc.org/posts/what-is-termux-dialog-and-how-i-use-it</link><guid isPermaLink="true">https://rafaelc.org/posts/what-is-termux-dialog-and-how-i-use-it</guid><pubDate>Fri, 06 Aug 2021 12:49:33 GMT</pubDate><content:encoded>&lt;p&gt;I have been using Termux for several years, since I came back from iOS to Android. However, only recently I have explored &lt;code&gt;termux-dialog&lt;/code&gt;, and this can be really be a game changer.&lt;/p&gt;
&lt;p&gt;Needless to say, with Termux on your phone you can run &lt;em&gt;(almost)&lt;/em&gt; the same scripts from your Linux box, or write new scripts specifically for your mobile device. Termux allows you to interact with your phone in several ways, such as accessing the file system, opening files and URLs in other applications, etc. It&apos;s a very powerful application if you know what you are doing.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/what-is-termux-dialog-and-how-i-use-it&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Sync WM wallpaper with LightDM on Linux Mint</title><link>https://rafaelc.org/posts/sync-wm-wallpaper-with-lightdm-on-linux-mint</link><guid isPermaLink="true">https://rafaelc.org/posts/sync-wm-wallpaper-with-lightdm-on-linux-mint</guid><pubDate>Thu, 21 Oct 2021 14:03:53 GMT</pubDate><content:encoded>&lt;p&gt;Linux Mint uses LightDM GTK greeter for the login screen. It tries to show each user&apos;s wallpaper, and it works well if you stick to the default Cinnamon desktop environment.&lt;/p&gt;
&lt;p&gt;However, I use a standalone window manager (dwm) and my wallpaper is set by Nitrogen. This breaks the feature, unless we take some steps.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/sync-wm-wallpaper-with-lightdm-on-linux-mint&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Fix choco-package-list-backup not saving to network</title><link>https://rafaelc.org/posts/fix-choco-package-list-backup-not-saving-to-network</link><guid isPermaLink="true">https://rafaelc.org/posts/fix-choco-package-list-backup-not-saving-to-network</guid><pubDate>Fri, 18 Feb 2022 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;On my &lt;em&gt;(barely used)&lt;/em&gt; Windows box, I wanted to set a backup of the installed Chocolatey packages. The &lt;code&gt;choco-package-list-backup&lt;/code&gt; tool seems to be the way to go. So I installed it and set the backup path to a mapped network drive.&lt;/p&gt;
&lt;p&gt;It didn&apos;t work. Picking different folders under &lt;code&gt;C:\&lt;/code&gt; went fine, but the backup never could be saved to the network location.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/fix-choco-package-list-backup-not-saving-to-network&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Copying previous commands with fzf and zsh</title><link>https://rafaelc.org/posts/copying-previous-commands-with-fzf-and-zsh</link><guid isPermaLink="true">https://rafaelc.org/posts/copying-previous-commands-with-fzf-and-zsh</guid><pubDate>Thu, 14 Jul 2022 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Sometimes I want to copy a command I previously typed in my shell to the clipboard. It may be for documentation, note-taking, writing a script, setting up an Ansible playbook, sending to someone… You name it.&lt;/p&gt;
&lt;p&gt;While I could always search the terminal window for it and select it, I have set up an alias that makes things much easier and less error-prone:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/copying-previous-commands-with-fzf-and-zsh&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Mounting SMB1 shares after kernel 5.15</title><link>https://rafaelc.org/posts/mounting-smb1-shares-after-kernel-5.15</link><guid isPermaLink="true">https://rafaelc.org/posts/mounting-smb1-shares-after-kernel-5.15</guid><pubDate>Tue, 29 Nov 2022 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Linux kernel 5.15 &lt;a href=&quot;https://wiki.samba.org/index.php/LinuxCIFSKernel#5.15_kernel_.2825_patches.29&quot;&gt;dropped support for NTLMv1&lt;/a&gt;, a weaker authentication algorithm.&lt;/p&gt;
&lt;p&gt;As a consequence, if you have old hardware that only supports SMB1 (such as Apple’s Airport Time Capsule), you may have trouble mounting them on recent distributions like Ubuntu 22.04.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/mounting-smb1-shares-after-kernel-5.15&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Automatically switch to dark theme with Redshift hooks</title><link>https://rafaelc.org/posts/automatically-switch-to-dark-theme-with-redshift-hooks</link><guid isPermaLink="true">https://rafaelc.org/posts/automatically-switch-to-dark-theme-with-redshift-hooks</guid><pubDate>Fri, 24 Mar 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Sometimes, I switch between a dark and a light theme on my desktop. Long before the big DE&apos;s (or other operating systems) offered that feature via a simple button, I wrote a script to automate that task.&lt;/p&gt;
&lt;p&gt;That script is now 6 years old and has evolved together with my desktop use. I&apos;ve updated it with my different setups, and at some point it supported more than 5 DE&apos;s. I have it associated to a keybinding, so the toggle is easy and fast on my dwm desktop.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/automatically-switch-to-dark-theme-with-redshift-hooks&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Point a subdomain to an EC2 instance without elastic IP</title><link>https://rafaelc.org/posts/point-a-subdomain-to-an-ec2-instance-without-elastic-ip</link><guid isPermaLink="true">https://rafaelc.org/posts/point-a-subdomain-to-an-ec2-instance-without-elastic-ip</guid><pubDate>Mon, 29 May 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;The IP address of an AWS EC2 instance is dynamically assigned when it launches. Allocating an elastic IP to the instance prevents the address from changing, but you might be in a situation in which you can&apos;t or don&apos;t want to use this service. In this case, it might be handy to have a name that always points to the current IP of the instance.&lt;/p&gt;
&lt;p&gt;What we are looking for is dynamic DNS, and you only need two things: a DNS provider that supports it and a client to periodically send it the current public IP of the system. One of such clients is &lt;code&gt;ddclient&lt;/code&gt;, which is compatible with many dynamic DNS providers and is packaged in many Linux distributions. I&apos;ve been using it with Google Domains for years, and it works well.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/point-a-subdomain-to-an-ec2-instance-without-elastic-ip&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>ThinkPad X220&apos;s touchpad and the 90W charger</title><link>https://rafaelc.org/posts/thinkpad-x220&apos;s-touchpad-and-the-90w-charger</link><guid isPermaLink="true">https://rafaelc.org/posts/thinkpad-x220&apos;s-touchpad-and-the-90w-charger</guid><pubDate>Tue, 08 Aug 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;In this post, I&apos;ll describe my experience replacing my stock 65W charger for a 90W charger on a Lenovo ThinkPad X220 and the unintended consequences for the touchpad behaviour. I&apos;ll report what I&apos;ve tried and which solutions and workarounds I&apos;ve found.&lt;/p&gt;
&lt;p&gt;When my ThinkPad X220&apos;s charger stopped working, I bought a new one. My former charger was 65W, but this was 90W.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/thinkpad-x220&apos;s-touchpad-and-the-90w-charger&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Debian package for afpfs-ng</title><link>https://rafaelc.org/posts/debian-package-for-afpfs-ng</link><guid isPermaLink="true">https://rafaelc.org/posts/debian-package-for-afpfs-ng</guid><pubDate>Sat, 20 Sep 2025 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;code&gt;afpfs-ng&lt;/code&gt; is a client for the Apple Filing Protocol. It is useful, for example, to mount AirPort Time Capsule shares &lt;a href=&quot;/posts/mounting-airport-time-capsule-on-linux-in-2025&quot;&gt;(more on it in this post)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Unfortunatelly, Debian no longer packages it, so I set up a personal repository to easily build and install it. You can find it here: &lt;a href=&quot;https://github.com/rc2dev/afpfs-ng-deb&quot;&gt;afpfs-ng-deb&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/debian-package-for-afpfs-ng&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Mounting AirPort Time Capsule on Linux in 2025</title><link>https://rafaelc.org/posts/mounting-airport-time-capsule-on-linux-in-2025</link><guid isPermaLink="true">https://rafaelc.org/posts/mounting-airport-time-capsule-on-linux-in-2025</guid><pubDate>Sun, 21 Sep 2025 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Apple AirPort Time Capsule provides two protocols to access its shares:&lt;/p&gt;
&lt;p&gt;In this post I&apos;ll briefly review the status of both methods on Linux in 2025.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/mounting-airport-time-capsule-on-linux-in-2025&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item><item><title>Keep track of missing videos in YouTube playlists</title><link>https://rafaelc.org/posts/keep-track-of-missing-videos-in-youtube-playlists</link><guid isPermaLink="true">https://rafaelc.org/posts/keep-track-of-missing-videos-in-youtube-playlists</guid><pubDate>Tue, 17 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;If you use YouTube playlists, you probably know the feeling. You open one of your playlists only to find that some videos are gone: &lt;em&gt;&quot;Deleted video&quot;, &quot;Private video&quot;...&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;And you&apos;re left wondering: what were those videos?&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rafaelc.org/posts/keep-track-of-missing-videos-in-youtube-playlists&quot;&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded></item></channel></rss>