<?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 Deepak Edakkott on Medium]]></title>
        <description><![CDATA[Stories by Deepak Edakkott on Medium]]></description>
        <link>https://medium.com/@pingdpk?source=rss-4856c14b4ae3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*jXelN7X_qY7LWarE</url>
            <title>Stories by Deepak Edakkott on Medium</title>
            <link>https://medium.com/@pingdpk?source=rss-4856c14b4ae3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 09:48:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pingdpk/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[Easy on git commands !]]></title>
            <link>https://medium.com/@pingdpk/easy-on-git-commands-a4ebe7d0755e?source=rss-4856c14b4ae3------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4ebe7d0755e</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[easy]]></category>
            <category><![CDATA[commands]]></category>
            <category><![CDATA[colors]]></category>
            <dc:creator><![CDATA[Deepak Edakkott]]></dc:creator>
            <pubDate>Thu, 13 Nov 2025 22:37:22 GMT</pubDate>
            <atom:updated>2025-11-13T23:37:21.402Z</atom:updated>
            <content:encoded><![CDATA[<h3>Easy on git commands !</h3><p>A method to make your daily life easy</p><p>Works on Windows (gitbash), Mac and Linux !</p><p>How will it be if git log is showing you all these always, that too in a single line?;</p><ul><li>commit ID</li><li>Committer name</li><li>Time of commit</li><li>comment….etc</li></ul><blockquote>&gt;&gt; Use the command <strong><em>gitlog</em></strong><em> </em>without a space</blockquote><h4>Do you wish to see files included in any of your commit ?</h4><blockquote><em>&gt;&gt; Use the command </em><strong><em>gitshow</em></strong></blockquote><h4>Do you want to find a file name in any directory?</h4><blockquote>&gt;&gt; Use the command <strong><em>findfileshere</em></strong></blockquote><figure><img alt="Easy on git commands" src="https://cdn-images-1.medium.com/max/1024/1*Kqt9NIocLy-q1vo2jJj6dA.jpeg" /></figure><p>Just add the following lines to your bashrc file and restart your git bash application (<strong> Just copy n paste below given code snippet</strong>)</p><p>bashrc file (create a file if it does not exist<strong>) </strong>path: <strong><em>/home/&lt;UserName&gt;/.bashrc (</em></strong>under your <strong><em>home directory</em></strong><em>)</em></p><pre>#!/bin/bash<br>alias gitstatus=&quot;git status -sb&quot;<br>alias grep=&quot;grep --color&quot; #For colored grep (Default red)<br>alias cdws=&quot;cd /d/workspace&quot; #Change directory to workspace<br><br>gitlog(){<br>    count=&quot;-20&quot;; #Default is 20 lines of logs<br>    [ ! -z $1 ] &amp;&amp; count=&quot;-$1&quot; ;<br>    echo -e &quot;\n$(tput smul)Branch : `git branch | grep &#39;^*&#39;|awk &#39;{$1=&quot;&quot;;print}&#39;`&quot;<br>    echo $(tput rmul) $(tput bold)<br>    git log --pretty=format:&quot;%h - %an, %ad --&gt; %s&quot; --date=iso --graph $count<br>}<br><br>gitshow() {<br>    git show --pretty=&quot;format:&quot; --name-only $1<br>}<br><br>findfileshere(){<br>    find . -type f | grep --color &quot;$1&quot;<br>}<br><br>startMongoDB(){<br>    # Start Mongo DB in local machine<br>    cd /d/Applns/MongoDB/Server/3.0/ # You have to edit this path<br>    bin/mongod --dbpath D:/Applns/MongoDB/data --port 27017 # You have to edit this path<br>}</pre><h3>Each commands described</h3><h4>gitlog</h4><ul><li>It will print the current branch</li><li>It will list 20 logs (default)</li><li>If you need, you may change the number of logs by providing a number ( Eg: <strong>gitlog 30 </strong>)</li><li>Each log would be in a single line</li><li>It will show, <strong>1)</strong> The graph <strong>2)</strong> Commit ID <strong>3)</strong> Committer name <strong>4)</strong> Date &amp; time <strong>5)</strong> Commit comment</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OhhgKOrOI7KCFRsyX2gbHw.jpeg" /></figure><h4>gitshow</h4><ul><li>Shows the list of files committed in a commit</li><li>The list would be with the path of the files</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ANTrvhJ6zqVX_lllYJFHnQ.jpeg" /></figure><h4>findfileshere</h4><ul><li>Find the files available in the <strong>current</strong> directory</li><li>It searches recursively all the directories inside the <strong>current</strong> directory (folder)</li><li>The command is used as (Eg: <strong>findfileshere pom </strong><em>OR</em><strong> findfileshere xml</strong>)</li><li>It lists the file names with the path, and a color will be provided to the search keyword to identify them easily.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*xYkN0Uo1NUnCg8RnkfScig.jpeg" /></figure><h4>gitstatus</h4><ul><li><strong><em>git status</em></strong> command itself in a cool and arranged view</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*TPBK1odyg8A9vRAzAqVuTA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4ebe7d0755e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Javascript Set and Spread operator]]></title>
            <link>https://medium.com/@pingdpk/javascript-set-and-spread-operator-1690853ad868?source=rss-4856c14b4ae3------2</link>
            <guid isPermaLink="false">https://medium.com/p/1690853ad868</guid>
            <category><![CDATA[set]]></category>
            <category><![CDATA[spread-operator]]></category>
            <category><![CDATA[es6]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Deepak Edakkott]]></dc:creator>
            <pubDate>Sun, 17 Jul 2022 21:10:57 GMT</pubDate>
            <atom:updated>2022-07-17T22:28:34.505Z</atom:updated>
            <cc:license>https://creativecommons.org/publicdomain/mark/1.0/</cc:license>
            <content:encoded><![CDATA[<h4>An explanation of the Set and Spread operator together</h4><p>Understand with a single array containing duplicate(s)</p><pre>const arr1 = [1,2,3,3];</pre><h3>Set constructor syntax</h3><p><strong>Constructor 1:</strong><br><em>* Provide no arguments, thus creates a new Set</em></p><pre>new Set()</pre><p><strong>Constructor 2:</strong><br><em>* Provide an iterable object (usually an array)</em></p><pre>new Set(iterable)</pre><h3>Check how Set act on different types of arguments (including array and spread operator)</h3><blockquote>Note:<br>Throughout this document <strong>Output</strong> is <strong>console.log(result);</strong></blockquote><p><strong>Scenario #1</strong></p><pre>const result = new Set(arr1);</pre><pre><strong><em>Output:</em></strong><br>Set(3) { 1, 2, 3 }</pre><pre><strong><em>Explanation:</em></strong><br>Here a set is created with given array and duplicates eliminated.</pre><p><strong>Scenario #2</strong></p><pre>const result = new Set([arr1]); </pre><pre><strong><em>Output:</em></strong><br>Set(1) { [ 1, 2, 3, 3 ] }</pre><pre><strong><em>Explanation:</em></strong><br>Here an “array of given array” is created. So, the set size is one.</pre><p><strong>Scenario #3</strong></p><pre>const result = new Set(…arr1); //note the three dots before arr1</pre><pre><strong><em>Output:</em></strong><br>TypeError: number 1 is not iterable (cannot read property Symbol(Symbol.iterator))</pre><pre><strong><em>Explanation:</em></strong><br>The spread operator (three dots), as the name says, the contents of arr1 is spread (exploded) as “<strong>new Set(1,2,3,3)</strong>”.</pre><pre><strong><em>Expectation:</em></strong><em> </em><br>The constructor thinks the given each params (1 and 2 and 3 and 3) are arrays, but they are actually numbers. It tries to iterate the first one (which is 1), but finds it as not an iterable item. Thus, throws the above error.</pre><p><strong>Scenario #4</strong></p><pre>const result = new Set([…arr1]);</pre><pre><strong><em>Output:</em></strong><br>Set(3) { 1, 2, 3 }</pre><pre><strong><em>Explanation:</em></strong><br>The spread operator, as mentioned above, the arr1 is exploded to “<strong>new Set([1,2,3,3])</strong>” hence the output is : duplicates eliminated set</pre><p><strong>Scenario #5</strong></p><pre>const result = […new Set([…arr1])];</pre><pre><strong><em>Output:</em></strong><br>[ 1, 2, 3 ]</pre><pre><strong><em>Explanation:</em></strong><br>A new array is created with scenario-#4’s output. <br>Which means, the “<strong>new Set([1,2,3,3])</strong>” is exploded inside the array to &quot;<strong>[...Set(3) {1,2,3}]&quot; </strong>and again exploded to the output which becomes another array.</pre><h3>Reference:</h3><ol><li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/Set#syntax">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/Set#syntax</a></li><li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1690853ad868" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>