<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Unix Howto on developwith — developer tips</title>
    <link>https://developwith.com/categories/unix-howto/</link>
    <description>Recent content in Unix Howto on developwith — developer tips</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 11 Apr 2019 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://developwith.com/categories/unix-howto/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to resolve dependencies in apt-get</title>
      <link>https://developwith.com/how-do-i/unix/resolve-dependencies-apt-get/</link>
      <pubDate>Thu, 11 Apr 2019 00:00:00 +0000</pubDate>
      <guid>https://developwith.com/how-do-i/unix/resolve-dependencies-apt-get/</guid>
      <description>&lt;p&gt;Ubuntu Linux&amp;rsquo;s defacto standard install utility is &lt;code&gt;apt-get&lt;/code&gt;. It allows you to install packages, add sources for where to get packages, etc&amp;hellip; Every once in awhile when you run &lt;code&gt;apt-get install&lt;/code&gt; on a package it will tell you the dependencies you don&amp;rsquo;t have installed. So, in order to resolve all these dependences you need to leverage &lt;code&gt;build-dep&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Example usage:&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sudo apt-get build-dep &amp;lt;package name&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;&#xA;&lt;p&gt;If that fails, make sure the source list is up to date.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Unix</title>
      <link>https://developwith.com/how-do-i/unix/</link>
      <pubDate>Thu, 11 Apr 2019 00:00:00 +0000</pubDate>
      <guid>https://developwith.com/how-do-i/unix/</guid>
      <description>&lt;p&gt;Practical answers for command-line operations on Unix and Linux systems.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;How do I decrypt GPG data?&lt;/strong&gt; — Decrypt files and streams that are base64 encoded and GPG encrypted. &lt;a href=&#34;decrypt-gpg-data/&#34;&gt;→ Read more&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;How do I flush Memcached?&lt;/strong&gt; — Clear the Memcached cache via telnet and command-line tools. &lt;a href=&#34;flush-memcached/&#34;&gt;→ Read more&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;How do I resolve APT dependencies?&lt;/strong&gt; — Fix broken package dependencies on Debian and Ubuntu. &lt;a href=&#34;resolve-dependencies-apt-get/&#34;&gt;→ Read more&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;How do I use a serverless runtime?&lt;/strong&gt; — Configure and deploy serverless functions for common runtimes. &lt;a href=&#34;servless-runtime/&#34;&gt;→ Read more&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>Setup a Serverless Runtime</title>
      <link>https://developwith.com/how-do-i/unix/servless-runtime/</link>
      <pubDate>Sat, 06 Apr 2019 00:00:00 +0000</pubDate>
      <guid>https://developwith.com/how-do-i/unix/servless-runtime/</guid>
      <description>&lt;p&gt;Serverless doesn&amp;rsquo;t mean there&amp;rsquo;s no server — it means your application isn&amp;rsquo;t resident for long periods. It&amp;rsquo;s spun up on demand, triggered by events, and torn down when idle. To develop and run serverless functions locally, you need a runtime that can simulate this ephemeral execution model.&lt;/p&gt;&#xA;&lt;h2 id=&#34;platform-options&#34;&gt;Platform Options&lt;/h2&gt;&#xA;&lt;h3 id=&#34;amazon-firecracker&#34;&gt;Amazon Firecracker&lt;/h3&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://firecracker-microvm.github.io/&#34;&gt;Firecracker&lt;/a&gt; is Amazon&amp;rsquo;s open-source virtualization technology, originally built for AWS Lambda. It creates lightweight microVMs that boot in ~125ms with minimal overhead.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Decrypt GPG data</title>
      <link>https://developwith.com/how-do-i/unix/decrypt-gpg-data/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://developwith.com/how-do-i/unix/decrypt-gpg-data/</guid>
      <description>&lt;p&gt;Most of the time you are sent data that is encrypted it is base64 encoded. This allows bytes to be sent in plain text to allow you to copy them appropriately on any machine.&lt;/p&gt;&#xA;&lt;p&gt;To unencode the base64 string on unix / linux:&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;echo&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;SGVsbG8gYmFzZTY0&amp;#39;&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; base64 -D&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;&#xA;&lt;p&gt;Make sure you have your gpg keys installed by running &lt;code&gt;gpg --list-secret-keys --keyid-format LONG&lt;/code&gt;, this will list the secret keys and allows you to know what pairs you have on your local machine.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Flush Memcached</title>
      <link>https://developwith.com/how-do-i/unix/flush-memcached/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://developwith.com/how-do-i/unix/flush-memcached/</guid>
      <description>&lt;h1 id=&#34;flush-memcached&#34;&gt;Flush Memcached&lt;/h1&gt;&#xA;&lt;p&gt;Flushing memcache is fairly easy, it can be done by using &lt;code&gt;netcat&lt;/code&gt; or &lt;code&gt;nc&lt;/code&gt;. You can also use telnet to issue the flush command.&lt;/p&gt;&#xA;&lt;p&gt;Netcat technique:&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;echo&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;flush_all&amp;#39;&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; netcat localhost &lt;span class=&#34;m&#34;&gt;11211&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;&#xA;&lt;p&gt;Telnet technique:&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ telnet localhost &lt;span class=&#34;m&#34;&gt;11211&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Trying 192.168.1.10...&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Connected to localhost.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Escape character is ‘^&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;’.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;flush_all&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;OK&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;quit&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Connection to localhost closed by foreign host.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;&#xA;&lt;p&gt;Reference for this information is found at &lt;a href=&#34;http://www.cyberciti.biz/faq/linux-unix-flush-contents-of-memcached-instance/&#34;&gt;Flush Contents of Memcache Instance&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
