<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jakub Roztocil on Medium]]></title>
        <description><![CDATA[Stories by Jakub Roztocil on Medium]]></description>
        <link>https://medium.com/@jakubroztocil?source=rss-f237babeba30------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Jakub Roztocil on Medium</title>
            <link>https://medium.com/@jakubroztocil?source=rss-f237babeba30------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 12:44:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jakubroztocil/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What’s new in HTTPie 2.5.0]]></title>
            <link>https://medium.com/httpie/whats-new-in-httpie-2-5-0-a922a2762021?source=rss-f237babeba30------2</link>
            <guid isPermaLink="false">https://medium.com/p/a922a2762021</guid>
            <dc:creator><![CDATA[Jakub Roztocil]]></dc:creator>
            <pubDate>Mon, 27 Sep 2021 11:04:11 GMT</pubDate>
            <atom:updated>2021-09-27T12:46:13.524Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*g9q3QZDd9rdU6iJm.png" /></figure><p><a href="https://httpie.io/">HTTPie</a> 2.5.0 has been released and we’re excited to introduce a new way of passing raw request data as an alternative to piping, XML pretty printing, and improved packaging.</p><h3>Raw request data</h3><p>HTTPie has always used piping as the way to pass <a href="https://httpie.io/docs#raw-request-body">raw request data</a>:</p><pre># Standard way to pass raw request body:<br>$ echo &#39;Hello, World!&#39; | http pie.dev/post</pre><p>Piping, even though elegant, isn’t always practical, however. When generating API docs examples, invoking HTTPie from a programming language, or writing a complex command on the terminal, it may be easier to use a CLI option instead. That has been an often <a href="https://github.com/httpie/httpie/issues/534">requested</a> feature.</p><p>In this release, we’ve added a new option called --raw, and HTTPie treats its value as if it came through STDIN. The following command does the same as the one above:</p><pre># New in HTTPie 2.5.0:<br>$ http --raw=&#39;Hello, World!&#39; pie.dev/post</pre><h3>Pretty-printing of XML</h3><p>JSON has been the <em>lingua franca</em> of the API world for a while, and HTTPie has always provided <a href="https://httpie.io/docs#terminal-output">JSON formatting</a> for terminal output. Many of our users work with XML as well, though, but XML bodies would be printed as they appear in the HTTP message, often on a single line:</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&lt;!-- comment --&gt;&lt;root&gt;&lt;element key=&#39;value&#39;&gt;text&lt;/element&gt;&lt;element&gt;text&lt;/element&gt;tail&lt;empty-element/&gt;&lt;/root&gt;</pre><p>This release brings formatting to XML (and XHTML) messages as well:</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;!-- comment --&gt;<br>&lt;root&gt;<br>  &lt;element key=&quot;value&quot;&gt;text&lt;/element&gt;<br>  &lt;element&gt;text&lt;/element&gt;<br>  tail<br>  &lt;empty-element/&gt;<br>&lt;/root&gt;</pre><p>You can control the formatting behaviour using the following <a href="https://httpie.io/docs#format-options">format options</a>:</p><ul><li>Change the default 2-space indent size with --format-options=xml.indent:4.</li><li>Turn off XML formatting with --format-options=xml.format:false.</li></ul><h3>Packaging and distribution</h3><p>Another theme for this release was improving HTTPie packaging and its availability for different platforms. The following channels have been (or are being) updated or newly added:</p><ul><li>macOS: Homebrew, and MacPorts</li><li>Linux: Snap, Spack, Fedora, RedHat &amp; CentOS via EPEL, Arch, Gentoo, Alpine, Manjaro, OpenSUSE, OpenPKG, and Solus</li><li>Windows: Chocolatey</li></ul><p>We want to give a big shout-out to <a href="https://github.com/hroncok">Miro Hrončok</a>, the maintainer of the HTTPie package in Fedora, who has been especially involved and was of great help. And, of course, we are infinitely thankful to all the other package maintainers working behind the scenes.</p><h3>Bug fixes</h3><ul><li>Resuming downloads (--download with --continue) with a single byte to be downloaded left is now fixed (<a href="https://github.com/httpie/httpie/issues/1032">#1032</a>).</li><li>The behavior of --verbose requests with a streamed body when the server returned 307 Temporary Redirect is now fixed (<a href="https://github.com/httpie/httpie/issues/1088">#1088</a>).</li><li>The handling of session files with Cookie: followed by other headers has been fixed (<a href="https://github.com/httpie/httpie/issues/1126">#1126</a>).</li></ul><h3>Community contributions</h3><p>We’d like to thank these amazing people for their contributions to this release: <a href="https://github.com/hroncok">Miro Hrončok</a>, <a href="https://github.com/blyxxyz">Jan Verbeek</a>, <a href="https://github.com/Almad">Almad</a>, <a href="https://github.com/nixbytes">nixbytes</a>, <a href="https://github.com/marcelstoer">Marcel Stör</a>, <a href="https://github.com/exploide">Jannik Vieten</a>, <a href="https://github.com/IlyaSukhanov">Ilya Sukhanov</a>, <a href="https://github.com/henryhu712">henryhu712</a>, <a href="https://github.com/elenalape">Elena Lape</a>, <a href="https://github.com/ainzzorl">Anton Emelyanov</a>, <a href="https://github.com/a1346054">a1346054</a>, <a href="https://github.com/bl-ue">bl-ue</a>.</p><p><em>Originally published at </em><a href="https://httpie.io/blog/httpie-2.5.0"><em>https://httpie.io</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a922a2762021" width="1" height="1" alt=""><hr><p><a href="https://medium.com/httpie/whats-new-in-httpie-2-5-0-a922a2762021">What’s new in HTTPie 2.5.0</a> was originally published in <a href="https://medium.com/httpie">HTTPie</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Slack hack: local mail delivery]]></title>
            <link>https://medium.com/hackernoon/slack-hack-1-botify-servers-4783cf527981?source=rss-f237babeba30------2</link>
            <guid isPermaLink="false">https://medium.com/p/4783cf527981</guid>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[slack]]></category>
            <dc:creator><![CDATA[Jakub Roztocil]]></dc:creator>
            <pubDate>Sat, 03 Dec 2016 04:29:32 GMT</pubDate>
            <atom:updated>2021-03-06T10:07:07.822Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_vPQt03EBTpK7CS12yNTTQ.png" /><figcaption>Then one / Wired</figcaption></figure><p>It’s not a secret that Slack is great for team communication. But what makes it shine is the ability to connect anything to your team’s channels.</p><h3>“Botifying” a server</h3><p>If you run any servers at all, chances are they occasionally send you system notifications. Because these are sent using the local mail delivery system, it’s likely you never get to read them or only when it’s too late; all local mail by default ends up in/var/spool/mail/root. You will need to SSH to the server to learn about them from a cute <em>You have new mail</em> notification in the terminal.</p><p>The common solution is to enable forwarding to an external email address. This solution is unreliable, however, because messages get often marked as spam or rejected by the receiving server—unless you take extra care to make your host look like a legit mail server to the outer world.</p><p>Another issue is that Unix servers don’t come with a <em>Share in Slack </em>feature for some reason.</p><p>Let’s quickly fix both:</p><ol><li>Add a new email integration to your Slack team and copy the email address:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*rWCjkGkcQ1jLu2qzgq15wg.png" /></figure><p>2. Install a mail transport agent on your server, for example:</p><pre>$ yum -y install mailx postfix &amp;&amp; systemctl enable postfix &amp;&amp; systemctl start postfix</pre><p>3. Enable forwarding of all root mail to Slack:</p><pre>$ echo your-token@your-team.slack.com &gt; /root/.forward</pre><p>Done!</p><p>You’ve just established a direct email line from your server to Slack. Let’s test it out:</p><pre>$ echo &#39;Hello, Slack!&#39; | mail -s &#39;Check 123&#39; root</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*QU17H_TgEJacUzrUGKNPqg.png" /></figure><p>Or something a little bit more useful:</p><pre>$ pg_dump | mail -s &#39;DB backup&#39; root</pre><p>…just kidding, don’t do that. But you get the idea.</p><p>As you can see, you can now send messages from your server to Slack simply by mailing to root.</p><p>By the way, this is what system services—such as cron, logwatch, and others—already use for notifications about important events and problems. So you’ll get those automatically to Slack as well:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*cE3WSXuNsYkMDUODZnZ3fQ.png" /><figcaption>Mail from logwatch delivered to Slack</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4783cf527981" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/slack-hack-1-botify-servers-4783cf527981">Slack hack: local mail delivery</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>