<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>Harald Hoyer - programming</title>
        <link>https://harald.hoyer.xyz</link>
        <description>Triple Faults for Debug</description>
        <generator>Zola</generator>
        <language>en</language>
        <atom:link href="https://harald.hoyer.xyz/tags/programming/rss.xml" rel="self" type="application/rss+xml"/>
        <lastBuildDate>Tue, 23 Jun 2020 00:00:00 +0000</lastBuildDate>
        <item>
            <title>rman - Search the Rust Documentation offline</title>
            <pubDate>Tue, 23 Jun 2020 00:00:00 +0000</pubDate>
            <author>Harald Hoyer</author>
            <link>https://harald.hoyer.xyz/rman/</link>
            <guid>https://harald.hoyer.xyz/rman/</guid>
            <description>&lt;p&gt;Want to search your local offline rust &lt;code&gt;std&lt;&#x2F;code&gt; documentation,
with a quick command from your terminal?&lt;&#x2F;p&gt; &lt;p class=&quot;post-meta&quot;&gt;&lt;a href=&quot;https:&#x2F;&#x2F;harald.hoyer.xyz&#x2F;rman&#x2F;&quot;&gt;Read More&lt;/a&gt;&lt;/p&gt; </description>
        </item>
        <item>
            <title>Rust - Static PIE and ASLR for the x86_64-unknown-linux-musl Target</title>
            <pubDate>Tue, 23 Jun 2020 00:00:00 +0000</pubDate>
            <author>Harald Hoyer</author>
            <link>https://harald.hoyer.xyz/rust-static-pie/</link>
            <guid>https://harald.hoyer.xyz/rust-static-pie/</guid>
            <description>&lt;p&gt;With current rust nightly the default binary output of the &lt;code&gt;x86_64-unknown-linux-musl&lt;&#x2F;code&gt; target is a
static position independent executable (static-pie)
with address space layout randomization (ASLR) on execution.&lt;&#x2F;p&gt; &lt;p class=&quot;post-meta&quot;&gt;&lt;a href=&quot;https:&#x2F;&#x2F;harald.hoyer.xyz&#x2F;rust-static-pie&#x2F;&quot;&gt;Read More&lt;/a&gt;&lt;/p&gt; </description>
        </item>
        <item>
            <title>Bat understands varlink now</title>
            <pubDate>Thu, 07 Feb 2019 07:04:47 +0000</pubDate>
            <author>Harald Hoyer</author>
            <link>https://harald.hoyer.xyz/2019/02/07/bat-understands-varlink-now/</link>
            <guid>https://harald.hoyer.xyz/2019/02/07/bat-understands-varlink-now/</guid>
            <description>&lt;p&gt;&lt;a rel=&quot;noopener&quot; target=&quot;_blank&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;sharkdp&#x2F;bat&quot;&gt;Bat&lt;&#x2F;a&gt; is a &lt;em&gt;cat(1)&lt;&#x2F;em&gt; clone with syntax highlighting and Git integration.&lt;&#x2F;p&gt;
&lt;p&gt;My pull request for varlink syntax coloring was accepted today :-)&lt;&#x2F;p&gt; &lt;p class=&quot;post-meta&quot;&gt;&lt;a href=&quot;https:&#x2F;&#x2F;harald.hoyer.xyz&#x2F;2019&#x2F;02&#x2F;07&#x2F;bat-understands-varlink-now&#x2F;&quot;&gt;Read More&lt;/a&gt;&lt;/p&gt; </description>
        </item>
        <item>
            <title>varlink and the elvish shell</title>
            <pubDate>Thu, 22 Feb 2018 09:53:37 +0000</pubDate>
            <author>Harald Hoyer</author>
            <link>https://harald.hoyer.xyz/2018/02/22/varlink-and-the-elvish-shell/</link>
            <guid>https://harald.hoyer.xyz/2018/02/22/varlink-and-the-elvish-shell/</guid>
            <description>&lt;p&gt;I recently discovered &lt;a rel=&quot;noopener&quot; target=&quot;_blank&quot; href=&quot;https:&#x2F;&#x2F;elvish.io&#x2F;&quot;&gt;Elvish&lt;&#x2F;a&gt;, which is a shell perfectly
suited to process structured data. In my case it is perfect to be used with
&lt;a rel=&quot;noopener&quot; target=&quot;_blank&quot; href=&quot;http:&#x2F;&#x2F;varlink.org&quot;&gt;varlink&lt;&#x2F;a&gt;. Too bad elvish has no numeric type and
can’t feed varlink with int and float, because to-json converts them to strings.&lt;&#x2F;p&gt; &lt;p class=&quot;post-meta&quot;&gt;&lt;a href=&quot;https:&#x2F;&#x2F;harald.hoyer.xyz&#x2F;2018&#x2F;02&#x2F;22&#x2F;varlink-and-the-elvish-shell&#x2F;&quot;&gt;Read More&lt;/a&gt;&lt;/p&gt; </description>
        </item>
        <item>
            <title>varlink for dnf - a Showcase</title>
            <pubDate>Thu, 22 Feb 2018 07:09:03 +0000</pubDate>
            <author>Harald Hoyer</author>
            <link>https://harald.hoyer.xyz/2018/02/22/varlink-for-dnf-a-showcase/</link>
            <guid>https://harald.hoyer.xyz/2018/02/22/varlink-for-dnf-a-showcase/</guid>
            <description>&lt;p&gt;On the &lt;a rel=&quot;noopener&quot; target=&quot;_blank&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;varlink&#x2F;documentation&#x2F;wiki&#x2F;Adding-varlink-to-DNF&quot;&gt;varlink wiki page&lt;&#x2F;a&gt; I showcase how to add varlink to a python project. In this case, I chose DNF, the rpm package manager of Fedora.&lt;&#x2F;p&gt; &lt;p class=&quot;post-meta&quot;&gt;&lt;a href=&quot;https:&#x2F;&#x2F;harald.hoyer.xyz&#x2F;2018&#x2F;02&#x2F;22&#x2F;varlink-for-dnf-a-showcase&#x2F;&quot;&gt;Read More&lt;/a&gt;&lt;/p&gt; </description>
        </item>
        <item>
            <title>Rust Echo Server</title>
            <pubDate>Fri, 09 Dec 2016 14:23:35 +0000</pubDate>
            <author>Harald Hoyer</author>
            <link>https://harald.hoyer.xyz/2016/12/09/rust-echo-server/</link>
            <guid>https://harald.hoyer.xyz/2016/12/09/rust-echo-server/</guid>
            <description>&lt;p&gt;On modern CPUs, rust seems to perform very nicely with the thread context switches,
at least when benchmarking an &lt;a rel=&quot;noopener&quot; target=&quot;_blank&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;haraldh&#x2F;rust_echo_server&quot;&gt;echo server&lt;&#x2F;a&gt;.
For that I also wrote an &lt;a rel=&quot;noopener&quot; target=&quot;_blank&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;haraldh&#x2F;rust_echo_bench&quot;&gt;echo server benchmark client&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt; &lt;p class=&quot;post-meta&quot;&gt;&lt;a href=&quot;https:&#x2F;&#x2F;harald.hoyer.xyz&#x2F;2016&#x2F;12&#x2F;09&#x2F;rust-echo-server&#x2F;&quot;&gt;Read More&lt;/a&gt;&lt;/p&gt; </description>
        </item>
        <item>
            <title>dracut and CVE-2016-4484: Cryptsetup Initrd root Shell</title>
            <pubDate>Tue, 15 Nov 2016 16:42:23 +0000</pubDate>
            <author>Harald Hoyer</author>
            <link>https://harald.hoyer.xyz/2016/11/15/dracut-and-cve-2016-4484-cryptsetup-initrd-root-shell/</link>
            <guid>https://harald.hoyer.xyz/2016/11/15/dracut-and-cve-2016-4484-cryptsetup-initrd-root-shell/</guid>
            <description>&lt;p&gt;People who want to secure their Fedora&#x2F;RHEL system have to:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;add a BIOS password&lt;&#x2F;li&gt;
&lt;li&gt;add a grub password&lt;&#x2F;li&gt;
&lt;li&gt;add “rd.shell=0” to the kernel command line&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Anaconda does add “rd.shell=0” to the kernel command line automatically, if you setup the bootloader with a password.&lt;&#x2F;p&gt; &lt;p class=&quot;post-meta&quot;&gt;&lt;a href=&quot;https:&#x2F;&#x2F;harald.hoyer.xyz&#x2F;2016&#x2F;11&#x2F;15&#x2F;dracut-and-cve-2016-4484-cryptsetup-initrd-root-shell&#x2F;&quot;&gt;Read More&lt;/a&gt;&lt;/p&gt; </description>
        </item>
        <item>
            <title>A Python Transaction Class</title>
            <pubDate>Tue, 13 Oct 2015 10:20:43 +0000</pubDate>
            <author>Harald Hoyer</author>
            <link>https://harald.hoyer.xyz/2015/10/13/a-python-transaction-class/</link>
            <guid>https://harald.hoyer.xyz/2015/10/13/a-python-transaction-class/</guid>
            <description>&lt;p&gt;This is a repost of a blog post of 2008. Just for the reference :-)&lt;&#x2F;p&gt;
&lt;p&gt;This class allows sub-classes to commit changes to an instance to a history, and rollback to previous states.&lt;&#x2F;p&gt; &lt;p class=&quot;post-meta&quot;&gt;&lt;a href=&quot;https:&#x2F;&#x2F;harald.hoyer.xyz&#x2F;2015&#x2F;10&#x2F;13&#x2F;a-python-transaction-class&#x2F;&quot;&gt;Read More&lt;/a&gt;&lt;/p&gt; </description>
        </item>
        <item>
            <title>libtool: getting rid of 180,000 sed forks</title>
            <pubDate>Thu, 05 Mar 2015 08:10:36 +0000</pubDate>
            <author>Harald Hoyer</author>
            <link>https://harald.hoyer.xyz/2015/03/05/libtool-getting-rid-of-180000-sed-forks/</link>
            <guid>https://harald.hoyer.xyz/2015/03/05/libtool-getting-rid-of-180000-sed-forks/</guid>
            <description>&lt;p&gt;When compiling systemd on rawhide, we noticed a significant slowdown in compile time.
Investigating further, it turns out, that libtool forks an incredible amount of sed.
Running perf showed 30% of the “make all” was spent in bash. strace showed an execve of
sed with the same arguments 180,000 times!!!!!&lt;&#x2F;p&gt; &lt;p class=&quot;post-meta&quot;&gt;&lt;a href=&quot;https:&#x2F;&#x2F;harald.hoyer.xyz&#x2F;2015&#x2F;03&#x2F;05&#x2F;libtool-getting-rid-of-180000-sed-forks&#x2F;&quot;&gt;Read More&lt;/a&gt;&lt;/p&gt; </description>
        </item>
        <item>
            <title>dracut - kernel command line</title>
            <pubDate>Mon, 04 Nov 2013 18:36:27 +0000</pubDate>
            <author>Harald Hoyer</author>
            <link>https://harald.hoyer.xyz/2013/11/04/dracut-kernel-command-line/</link>
            <guid>https://harald.hoyer.xyz/2013/11/04/dracut-kernel-command-line/</guid>
            <description>&lt;p&gt;To quickly find out, what dracut wants as the kernel command for your current disk setup,
fire up:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;console&quot; style=&quot;background-color:#282a36;color:#f8f8f2;&quot; class=&quot;language-console &quot;&gt;&lt;code class=&quot;language-console&quot; data-lang=&quot;console&quot;&gt;&lt;span style=&quot;color:#ff79c6;&quot;&gt;# &lt;&#x2F;span&gt;&lt;span style=&quot;color:#50fa7b;&quot;&gt;dracut&lt;&#x2F;span&gt;&lt;span style=&quot;font-style:italic;color:#ffb86c;&quot;&gt; --print-cmdline
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt; &lt;p class=&quot;post-meta&quot;&gt;&lt;a href=&quot;https:&#x2F;&#x2F;harald.hoyer.xyz&#x2F;2013&#x2F;11&#x2F;04&#x2F;dracut-kernel-command-line&#x2F;&quot;&gt;Read More&lt;/a&gt;&lt;/p&gt; </description>
        </item>
    </channel>
</rss>
