<?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>Forem: Yoriki Yamaguchi</title>
    <description>The latest articles on Forem by Yoriki Yamaguchi (@y13i).</description>
    <link>https://forem.com/y13i</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%2F43914%2F287f3797-08d7-45a5-9abe-6d88f5c15166.png</url>
      <title>Forem: Yoriki Yamaguchi</title>
      <link>https://forem.com/y13i</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/y13i"/>
    <language>en</language>
    <item>
      <title>The only one cron entry that improves your life</title>
      <dc:creator>Yoriki Yamaguchi</dc:creator>
      <pubDate>Fri, 21 Feb 2020 07:57:16 +0000</pubDate>
      <link>https://forem.com/y13i/the-only-one-cron-entry-that-improves-your-life-d44</link>
      <guid>https://forem.com/y13i/the-only-one-cron-entry-that-improves-your-life-d44</guid>
      <description>&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ brew install terminal-notifier
$ crontab -l
0 * * *  * /usr/local/bin/terminal-notifier -title "Memento mori." -subtitle "Remember death." -message "Remember that you will die."
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ywHmM1-_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/3vao6atrlx6mcwtk8zvb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ywHmM1-_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/3vao6atrlx6mcwtk8zvb.png" alt="Notification"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Shell One-liner to view JSON got from any command on Chrome DevTools</title>
      <dc:creator>Yoriki Yamaguchi</dc:creator>
      <pubDate>Thu, 06 Feb 2020 01:23:57 +0000</pubDate>
      <link>https://forem.com/y13i/shell-one-liner-to-view-json-got-from-any-command-in-chrome-devtools-39pd</link>
      <guid>https://forem.com/y13i/shell-one-liner-to-view-json-got-from-any-command-in-chrome-devtools-39pd</guid>
      <description>&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;any-command-that-outputs-json | node &lt;span class="nt"&gt;--inspect-brk&lt;/span&gt; &lt;span class="nt"&gt;--eval&lt;/span&gt; &lt;span class="s1"&gt;'const chunks = []; process.stdin.resume().setEncoding("utf8").on("data", d =&amp;gt; chunks.push(d)).on("end", () =&amp;gt; {const result = JSON.parse(chunks.join("")); debugger;})'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h1&gt;
  
  
  Usage
&lt;/h1&gt;

&lt;ol&gt;
&lt;li&gt;Execute the one-liner above.&lt;/li&gt;
&lt;li&gt;Open &lt;code&gt;chrome://inspect&lt;/code&gt; and attach to the debugger by clicking the &lt;strong&gt;inspect&lt;/strong&gt; link.&lt;/li&gt;
&lt;li&gt;On inspector, press &lt;code&gt;F8&lt;/code&gt; once to proceed a step.&lt;/li&gt;
&lt;li&gt;You'll get a variable named &lt;code&gt;result&lt;/code&gt; that is a parsed object from the command.&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  See also
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://nodejs.org/en/docs/guides/debugging-getting-started/"&gt;Debugging - Getting Started | Node.js&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>node</category>
      <category>json</category>
      <category>shell</category>
    </item>
  </channel>
</rss>
