<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Comical DERSKEAL</title>
    <description>The latest articles on DEV Community by Comical DERSKEAL (@derskeal).</description>
    <link>https://dev.to/derskeal</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F136833%2F720687cd-a682-414d-8e60-7dec909f4f3c.jpeg</url>
      <title>DEV Community: Comical DERSKEAL</title>
      <link>https://dev.to/derskeal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/derskeal"/>
    <language>en</language>
    <item>
      <title>Migrating Linux to a new PC</title>
      <dc:creator>Comical DERSKEAL</dc:creator>
      <pubDate>Wed, 06 Nov 2019 21:17:15 +0000</pubDate>
      <link>https://dev.to/derskeal/migrating-linux-to-a-new-pc-3mok</link>
      <guid>https://dev.to/derskeal/migrating-linux-to-a-new-pc-3mok</guid>
      <description>&lt;p&gt;I had an official Lenovo IdeaPad 320 &lt;a href="https://www.yourdictionary.com/craptop"&gt;craptop&lt;/a&gt; which I had used for 6 months before the &lt;a href="https://support.hp.com/us-en/document/c06361920"&gt;beast&lt;/a&gt; finally arrived. The Omen 15-dc0151nia. &lt;/p&gt;

&lt;p&gt;By the way, things are not always what they seem when it comes to electronics. Beware of what you buy. More on that in a future article.&lt;/p&gt;

&lt;p&gt;I expected that I was going to have to figure out how to export my configuration for all the various apps I had installed, ESPECIALLY my gnome extensions and custom config.&lt;/p&gt;

&lt;p&gt;I spent some time learning a few new things about the &lt;code&gt;gsettings&lt;/code&gt; command-line tool. But I ended up not using it.&lt;/p&gt;

&lt;p&gt;All I had to do was COPY MY HOME FOLDER! Errrr, and my &lt;code&gt;/opt&lt;/code&gt; folder too.&lt;/p&gt;

&lt;h2&gt;
  
  
  How?
&lt;/h2&gt;

&lt;p&gt;I had earlier replaced the hard disk in the Lenovo (only because I thought the previous one was a problem, I know better now) with one I bought. So I took it out, put in a external HDD enclosure and plugged it in.&lt;/p&gt;

&lt;p&gt;Then, I fired up my Bash terminal (Heard some noise about &lt;code&gt;zsh&lt;/code&gt;, haven't given it a thought though), and ran&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo rsync -ah --progress &amp;lt;source&amp;gt; &amp;lt;destination&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;to copy from my home folder in the hard disk to my new home (😉).&lt;/p&gt;

&lt;p&gt;-a means copy EVERYTHING in the directory, down to the last detail, except hard links.&lt;br&gt;
-h means output all numbers in human-readable format. Leave this one out if you are a fifth generation computer.&lt;br&gt;
--progress gives you a copy progress report for every copied file&lt;/p&gt;

&lt;p&gt;Oh and, &lt;a href="https://twitter.com/Derskeal/status/1191042508094087168?s=20"&gt;use rsync&lt;/a&gt;. &lt;code&gt;cp&lt;/code&gt; doesn't give you a lot of the goodies.&lt;/p&gt;

&lt;p&gt;Afterwards, I did same for my &lt;code&gt;/opt&lt;/code&gt; folder then did a reboot, and voila! Everything was there.&lt;/p&gt;

&lt;p&gt;But there was a problem. A very unexpected one. Chrome (! 😭) refused to load the second profile in my chrome data. So I manually did a cloud resync from the old hard disk, after booting directly from it with another PC (also possible with same PC), and then sync the cloud data to the new PC. Also, extension data went missing. So I manually exported it from the old 'PC' and imported it to the new one.&lt;/p&gt;

&lt;p&gt;MIGRATION COMPLETE.&lt;/p&gt;

&lt;p&gt;IT IS NOW SAFE TO TURN OFF YOUR COMPUTER.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>migration</category>
      <category>ubuntu</category>
    </item>
    <item>
      <title>Async/await?</title>
      <dc:creator>Comical DERSKEAL</dc:creator>
      <pubDate>Tue, 24 Sep 2019 09:04:35 +0000</pubDate>
      <link>https://dev.to/derskeal/async-await-2lp9</link>
      <guid>https://dev.to/derskeal/async-await-2lp9</guid>
      <description>&lt;p&gt;What if I told you that async/await is just managed multi-threading? Think about it. Thank me later.&lt;/p&gt;

&lt;p&gt;Also, Node.js is multi-threaded it just runs your JS code in a single thread. (Except when you 'async', of course)&lt;/p&gt;

&lt;p&gt;Don't look at me, they told us it was single-threaded.&lt;/p&gt;

</description>
      <category>async</category>
      <category>await</category>
      <category>multithreading</category>
    </item>
  </channel>
</rss>
