<?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: New Hat</title>
    <description>The latest articles on DEV Community by New Hat (@newhat).</description>
    <link>https://dev.to/newhat</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%2F444782%2F8babeed6-833c-4e07-9771-8e89e8317d1a.png</url>
      <title>DEV Community: New Hat</title>
      <link>https://dev.to/newhat</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/newhat"/>
    <language>en</language>
    <item>
      <title>Non curabitur gravida</title>
      <dc:creator>New Hat</dc:creator>
      <pubDate>Thu, 25 Nov 2021 02:34:21 +0000</pubDate>
      <link>https://dev.to/newhat/non-curabitur-gravida-548p</link>
      <guid>https://dev.to/newhat/non-curabitur-gravida-548p</guid>
      <description>&lt;p&gt;Non curabitur gravida arcu ac tortor dignissim convallis aenean et. Morbi tincidunt augue interdum velit euismod in pellentesque. Orci phasellus egestas tellus rutrum tellus pellentesque eu tincidunt tortor. Nulla facilisi nullam vehicula ipsum a arcu. Vitae auctor eu augue ut. Dignissim convallis aenean et tortor at risus viverra adipiscing. Malesuada fames ac turpis egestas. Turpis in eu mi bibendum neque. Vel orci porta non pulvinar neque laoreet suspendisse. Tempus iaculis urna id volutpat lacus laoreet non curabitur. Condimentum mattis pellentesque id nibh. A iaculis at erat pellentesque adipiscing commodo. Habitant morbi tristique senectus et netus et malesuada fames ac. Fringilla urna porttitor rhoncus dolor purus non enim. Adipiscing enim eu turpis egestas pretium aenean pharetra magna. Posuere urna nec tincidunt praesent. Etiam erat velit scelerisque in. A diam maecenas sed enim. Vulputate odio ut enim blandit volutpat maecenas volutpat blandit.&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Delete Node/npm</title>
      <dc:creator>New Hat</dc:creator>
      <pubDate>Thu, 25 Nov 2021 02:21:18 +0000</pubDate>
      <link>https://dev.to/newhat/delete-nodenpm-1d63</link>
      <guid>https://dev.to/newhat/delete-nodenpm-1d63</guid>
      <description>&lt;p&gt;If you haven't found a use for &lt;a href="https://github.com/"&gt;this&lt;/a&gt; script that uninstalls the second largest junk in the world next to Mac/iOS updates, you are either lazy or scared of breaking things. I am neither, so I polished this script from the different versions you will find on the internet. Oh, I am talking about node/npm.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;dump_dir_name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"node_junk_&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;&lt;span class="nb"&gt;date&lt;/span&gt; +%s%N&lt;span class="sb"&gt;`&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;span class="nv"&gt;dump_dir&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;HOME&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;/Temp/&lt;/span&gt;&lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;dump_dir_name&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;/"&lt;/span&gt;

&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"NODE/NPM UNINSTALLER v0.0.1
This uninstaller moves all the node/npm files and folders to &lt;/span&gt;&lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;dump_dir&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;.
Happy cleaning!
"&lt;/span&gt;

&lt;span class="nv"&gt;paths&lt;/span&gt;&lt;span class="o"&gt;=(&lt;/span&gt;
    &lt;span class="c"&gt;# The main binaries / executables&lt;/span&gt;
    &lt;span class="s2"&gt;"/usr/local/bin/npm"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="s2"&gt;"/usr/local/bin/node"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;

    &lt;span class="c"&gt;# Other bin stuff \&lt;/span&gt;
    &lt;span class="s2"&gt;"/usr/local/bin/node/"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="s2"&gt;"/usr/local/bin/node-debug"&lt;/span&gt;
    &lt;span class="s2"&gt;"/usr/local/bin/node-gyp"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;


    &lt;span class="c"&gt;# lib \&lt;/span&gt;
    &lt;span class="s2"&gt;"/usr/local/lib/node/"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="s2"&gt;"/usr/local/lib/node_modules/"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;

    &lt;span class="c"&gt;# local \&lt;/span&gt;
    &lt;span class="s2"&gt;"/usr/local/include/node/"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="s2"&gt;"/usr/local/include/node_modules"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;

    &lt;span class="c"&gt;# Home \&lt;/span&gt;
    &lt;span class="s2"&gt;"~/.npm"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="s2"&gt;"~/.node-gyp/"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="s2"&gt;"~/.node_repl_history"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;

    &lt;span class="c"&gt;# The n npm module&lt;/span&gt;
    &lt;span class="s2"&gt;"/usr/local/n/"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;

    &lt;span class="c"&gt;# opt \&lt;/span&gt;
    &lt;span class="s2"&gt;"/opt/local/bin/node"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="s2"&gt;"/opt/local/include/node/"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="s2"&gt;"/opt/local/lib/node_modules/"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="s2"&gt;"/usr/local/share/doc/"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="s2"&gt;"/usr/local/share/systemtap/tapset/node.stp"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;

    &lt;span class="c"&gt;# man \&lt;/span&gt;
    &lt;span class="s2"&gt;"/usr/local/share/man/man1/node*"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="s2"&gt;"/usr/local/share/man/man1/npm*"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="s2"&gt;"/usr/local/lib/dtrace/node.d"&lt;/span&gt;
&lt;span class="o"&gt;)&lt;/span&gt;

&lt;span class="nb"&gt;mkdir&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;dump_dir&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;

&lt;span class="k"&gt;for &lt;/span&gt;p &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;paths&lt;/span&gt;&lt;span class="p"&gt;[@]&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;do
    if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="nt"&gt;-n&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$p&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then
        &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\t&lt;/span&gt;&lt;span class="s2"&gt;» Moving &lt;/span&gt;&lt;span class="nv"&gt;$p&lt;/span&gt;&lt;span class="s2"&gt; ... "&lt;/span&gt;
        &lt;span class="nb"&gt;sudo mv&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$p&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;dump_dir&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
    &lt;span class="k"&gt;fi
done

&lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s2"&gt;Uninstalled node/npm successfully. (Junkyard: &lt;/span&gt;&lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;dump_dir&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>node</category>
      <category>npm</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Lorem Ipsum</title>
      <dc:creator>New Hat</dc:creator>
      <pubDate>Sat, 01 Aug 2020 06:04:59 +0000</pubDate>
      <link>https://dev.to/newhat/lorem-ipsum-b5c</link>
      <guid>https://dev.to/newhat/lorem-ipsum-b5c</guid>
      <description>&lt;p&gt;&lt;em&gt;Lorem Ipsum&lt;/em&gt; is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the &lt;strong&gt;1500&lt;/strong&gt;s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Hello World!"&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;sdfkjdks&lt;/li&gt;
&lt;li&gt;235343&lt;/li&gt;
&lt;li&gt;4msd;k;fdkgrf&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularized in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight scala"&gt;&lt;code&gt;&lt;span class="k"&gt;final&lt;/span&gt; &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;User&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="k"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="n"&gt;age&lt;/span&gt;&lt;span class="k"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;Int&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;object&lt;/span&gt; &lt;span class="nc"&gt;App&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="k"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;Array&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="o"&gt;])&lt;/span&gt;&lt;span class="k"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;Unit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Hello World"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
  &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
  </channel>
</rss>
