<?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 Pulkit Agrawal on Medium]]></title>
        <description><![CDATA[Stories by Pulkit Agrawal on Medium]]></description>
        <link>https://medium.com/@agrawal-pulkit?source=rss-5a6c5a8e14f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QqjoMdhZMNJ2t85DlNYPSQ.png</url>
            <title>Stories by Pulkit Agrawal on Medium</title>
            <link>https://medium.com/@agrawal-pulkit?source=rss-5a6c5a8e14f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 03:56:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@agrawal-pulkit/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[How I Built an AI Agent Over an Existing Backend]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://agrawal-pulkit.medium.com/how-i-built-an-ai-agent-over-an-existing-backend-5ff3e57c0c59?source=rss-5a6c5a8e14f------2"><img src="https://cdn-images-1.medium.com/max/1279/0*GZu5iQ8SJN0foi8M" width="1279"></a></p><p class="medium-feed-snippet">Using MCP, Without a Rewrite</p><p class="medium-feed-link"><a href="https://agrawal-pulkit.medium.com/how-i-built-an-ai-agent-over-an-existing-backend-5ff3e57c0c59?source=rss-5a6c5a8e14f------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://agrawal-pulkit.medium.com/how-i-built-an-ai-agent-over-an-existing-backend-5ff3e57c0c59?source=rss-5a6c5a8e14f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ff3e57c0c59</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Pulkit Agrawal]]></dc:creator>
            <pubDate>Mon, 29 Dec 2025 20:15:34 GMT</pubDate>
            <atom:updated>2025-12-29T20:15:34.286Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Designing Agent-Ready APIs in the Real World]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://agrawal-pulkit.medium.com/designing-agent-ready-apis-in-the-real-world-86d8a9128a45?source=rss-5a6c5a8e14f------2"><img src="https://cdn-images-1.medium.com/max/2600/1*KHfgwe85cWJ0FlrXJEO9Pg.png" width="2816"></a></p><p class="medium-feed-snippet">Lessons learned from wiring legacy endpoints to LLMs</p><p class="medium-feed-link"><a href="https://agrawal-pulkit.medium.com/designing-agent-ready-apis-in-the-real-world-86d8a9128a45?source=rss-5a6c5a8e14f------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://agrawal-pulkit.medium.com/designing-agent-ready-apis-in-the-real-world-86d8a9128a45?source=rss-5a6c5a8e14f------2</link>
            <guid isPermaLink="false">https://medium.com/p/86d8a9128a45</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Pulkit Agrawal]]></dc:creator>
            <pubDate>Sat, 13 Dec 2025 12:36:12 GMT</pubDate>
            <atom:updated>2025-12-13T14:11:26.165Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Building an AI-Powered Interview Preparation Assistant (Part 2)]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://agrawal-pulkit.medium.com/building-an-ai-powered-interview-preparation-assistant-part-2-f0804dc2f431?source=rss-5a6c5a8e14f------2"><img src="https://cdn-images-1.medium.com/max/600/1*9ZZABu74pGypmTCUwPs7mg.png" width="600"></a></p><p class="medium-feed-snippet">Expanding Prep AI: Multi-Agent System for Holistic Interview Preparation</p><p class="medium-feed-link"><a href="https://agrawal-pulkit.medium.com/building-an-ai-powered-interview-preparation-assistant-part-2-f0804dc2f431?source=rss-5a6c5a8e14f------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://agrawal-pulkit.medium.com/building-an-ai-powered-interview-preparation-assistant-part-2-f0804dc2f431?source=rss-5a6c5a8e14f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0804dc2f431</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Pulkit Agrawal]]></dc:creator>
            <pubDate>Sun, 16 Mar 2025 11:19:41 GMT</pubDate>
            <atom:updated>2025-03-16T11:19:41.881Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Building a LeetCode Chatbot Using AI: A Comprehensive Guide]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://blog.gopenai.com/building-a-leetcode-chatbot-using-ai-a-comprehensive-guide-db6d249dd6ad?source=rss-5a6c5a8e14f------2"><img src="https://cdn-images-1.medium.com/max/737/1*CXdcGuh5cVNOcZ0zCm2iZQ.png" width="737"></a></p><p class="medium-feed-snippet">DSA AI: Your Personalized DSA Companion!</p><p class="medium-feed-link"><a href="https://blog.gopenai.com/building-a-leetcode-chatbot-using-ai-a-comprehensive-guide-db6d249dd6ad?source=rss-5a6c5a8e14f------2">Continue reading on GoPenAI »</a></p></div>]]></description>
            <link>https://blog.gopenai.com/building-a-leetcode-chatbot-using-ai-a-comprehensive-guide-db6d249dd6ad?source=rss-5a6c5a8e14f------2</link>
            <guid isPermaLink="false">https://medium.com/p/db6d249dd6ad</guid>
            <category><![CDATA[vector-database]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[leetcode]]></category>
            <category><![CDATA[rags]]></category>
            <dc:creator><![CDATA[Pulkit Agrawal]]></dc:creator>
            <pubDate>Thu, 27 Feb 2025 05:58:24 GMT</pubDate>
            <atom:updated>2025-02-28T16:02:36.055Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Mastering Rate Limiting with the Token Bucket Algorithm: A Comprehensive Guide]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://python.plainenglish.io/rate-limiting-using-token-bucket-filter-84d34d7ec181?source=rss-5a6c5a8e14f------2"><img src="https://cdn-images-1.medium.com/max/1856/1*GjyZ1IP2ILHNfdGaDAtMNQ.png" width="1856"></a></p><p class="medium-feed-snippet">Creating a Multithreaded Token Bucket Rate Limiting Algorithm</p><p class="medium-feed-link"><a href="https://python.plainenglish.io/rate-limiting-using-token-bucket-filter-84d34d7ec181?source=rss-5a6c5a8e14f------2">Continue reading on Python in Plain English »</a></p></div>]]></description>
            <link>https://python.plainenglish.io/rate-limiting-using-token-bucket-filter-84d34d7ec181?source=rss-5a6c5a8e14f------2</link>
            <guid isPermaLink="false">https://medium.com/p/84d34d7ec181</guid>
            <category><![CDATA[concurrency]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Pulkit Agrawal]]></dc:creator>
            <pubDate>Sat, 28 Sep 2024 08:03:48 GMT</pubDate>
            <atom:updated>2024-09-30T04:16:47.556Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Python Decorators: Everything You Need to Know]]></title>
            <link>https://python.plainenglish.io/python-decorators-everything-you-need-to-know-6ba14314e90c?source=rss-5a6c5a8e14f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ba14314e90c</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Pulkit Agrawal]]></dc:creator>
            <pubDate>Tue, 14 Sep 2021 12:22:47 GMT</pubDate>
            <atom:updated>2021-09-16T18:13:49.297Z</atom:updated>
            <content:encoded><![CDATA[<h4>Closures and decorators: Advanced Python concepts that will make your code super cool.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Wt9F9vd8At8tk3N5" /><figcaption>Photo by <a href="https://unsplash.com/@codestorm?utm_source=medium&amp;utm_medium=referral">Safar Safarov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Wondering what all we will cover in this article? Decorator is not easy to understand directly. We have to go deep step by step to better understand how exactly a decorator works.</p><p>To understand decorators, We will cover these topics in detail:</p><ol><li>Local/Inner functions</li><li>Scope resolution via LEGB rule</li><li>Function returning another function</li><li>Closures</li><li>Nonlocal keyword</li><li>Decorators: deep dive</li><li>Different ways to write decorators</li><li>Decorator chaining</li></ol><h3><strong><em>Local function</em></strong></h3><p>Function inside a function called local functions or inner functions. These functions are used as specialized or one-off functions. They can use for code readability also. Used to generate function factories as well.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/687433f806dfe803022e1cc1970c6e54/href">https://medium.com/media/687433f806dfe803022e1cc1970c6e54/href</a></iframe><p>In the upper example, <strong>inner() </strong>is a local function.</p><h3><strong>Scope resolution via LEGB Rule</strong></h3><p>We need to understand how scope resolution works in Python.</p><p>The <strong>LEGB rule</strong> is used to decide the order in which the namespaces are to be searched for scope resolution.<br>The scopes are listed below in terms of hierarchy(highest to lowest/narrowest to broadest):</p><ul><li>Local(L): Defined inside function/class</li><li>Enclosed(E): Defined inside enclosing functions(Nested function concept)</li><li>Global(G): Defined at the uppermost level</li><li>Built-in(B): Reserved names in Python built-in modules</li></ul><p>For better understanding, you can follow this tutorial about the LEGB rule. I will write an article on the LEGB rule in future.</p><p><a href="https://www.educative.io/edpresso/the-legb-rule-in-python">The LEGB rule in Python</a></p><h3>Function returning another function</h3><p>We have seen that the local function is the same as other objects inside a function. Like other objects in a function, <em>local functions can also be return from the outer function.</em> This is why we also called a function is a first-class object.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0324674706d571ec13d3825c4d50631c/href">https://medium.com/media/0324674706d571ec13d3825c4d50631c/href</a></iframe><h3>Closures</h3><p>The closure is a concept which maintains the references of the objects from outer scopes. In other words, a closure gives you access to an outer function’s scope from a local function.</p><p>Python provides a special attribute called dunder closure<strong>(__closure__)</strong>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/98e261bfb17ff14a8e20d6561765c850/href">https://medium.com/media/98e261bfb17ff14a8e20d6561765c850/href</a></iframe><p>The closure is also used to generate a function factory. <strong>Function factory</strong>, a function that generates new, specialized functions. We can see in the upper example using one outer function we created two functions like plus2 and plus3. This is called a function factory. let me give you one more example to understand more about function factory.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/897b1de6c4e613f130cafb905b97b496/href">https://medium.com/media/897b1de6c4e613f130cafb905b97b496/href</a></iframe><p>With Closure, we should also know about the Nonlocal keyword.</p><p>The LEGB rule does not apply when making new bindings. In that case, we have to use a nonlocal keyword.<br> <strong>Nonlocal keyword: </strong>Introduces the names from the enclosing namespace into the local namespace.</p><p>Nonlocal variables are used in local functions whose local scope is not defined. This means that the variable can be neither in the local nor the global scope.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9f679a1c73c166046b30aa1a406e34ba/href">https://medium.com/media/9f679a1c73c166046b30aa1a406e34ba/href</a></iframe><h3><strong>Decorators</strong></h3><p>Decorators are the python feature, which modifies and enhance the existing function and return without changing their definition.<br>Decorators take a function as an argument and return another function in a non-intrusive and maintainable manner. <br>The power of decorators, They can easily enhance existing function without changing the actual logic inside that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/0*D8Nc0Dyu2iOUdNok" /></figure><p>Let&#39;s start with a very basic example.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9c3aeb74fb1b3dcaf40aaedc06657aa8/href">https://medium.com/media/9c3aeb74fb1b3dcaf40aaedc06657aa8/href</a></iframe><p>As you can see from the example In[2] and In[3] both are the same. decorator take function as an argument modify it and return the same function.</p><p>Navie decorators can lose important metadata information. That’s why we need to use <strong><em>functools.wraps()</em></strong> when we write a custom decorator.</p><pre>&gt;&gt;&gt; help(my_name)</pre><pre>Help on function wrapper in module __main__:  <br>wrapper(*args, **kwargs)</pre><p>In this example, we saw that function my_name lose the actual metadata. for avoiding this we need to use functools.wrap(). With functools.wraps() function will not lose importance metadata.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/47623a4fb473be313f2413d647c11186/href">https://medium.com/media/47623a4fb473be313f2413d647c11186/href</a></iframe><pre>&gt;&gt;&gt; help(my_name)<br>Help on function my_name in module __main__:</pre><pre>my_name(name)</pre><p>Whatever we have seen is the <strong><em>function as a decorator</em></strong>. other objects can also be a decorator.</p><p><strong>Class as a decorator:<br></strong>The class can also be a decorator. We will see examples of how we can create a class as a decorator.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0a33a3927f75d64bb7f6f27a00057ac2/href">https://medium.com/media/0a33a3927f75d64bb7f6f27a00057ac2/href</a></iframe><p><strong>Instance as a decorator:<br></strong>An instance can also be a decorator. Anything which is an object in python can be a decorator. Let’s see an example of an instance as a decorator.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b5d131f78f56ab20885e7c6e214c995c/href">https://medium.com/media/b5d131f78f56ab20885e7c6e214c995c/href</a></iframe><p>In the upper example, I also showcase how we can pass parameters in decorators which are called <strong>parameterized decorators</strong>.</p><p><strong>Decorator Chaining:</strong></p><p>Clubbing multiple decorators together is called decorator chaining.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5d90543dc54a29b4d9ed51729037a09c/href">https://medium.com/media/5d90543dc54a29b4d9ed51729037a09c/href</a></iframe><p>In the upper example, CallCounterDec will call first and then the Audit decorator.<br>This is all about decorators. you can refer to more <a href="https://towardsdatascience.com/10-topics-python-intermediate-programmer-should-know-3c865e8533d6">articles</a> related to python.</p><p><a href="https://towardsdatascience.com/10-topics-python-intermediate-programmer-should-know-3c865e8533d6">10 Topics Python Intermediate Programmer Should Know</a></p><blockquote>Thank you for reading this article. Please comment for any suggestions.<br>You are welcome to <a href="https://medium.com/@agrawal-pulkit"><strong>follow</strong></a> if you like this article and <a href="https://agrawal-pulkit.medium.com/">others</a> so you won’t miss new updates in the future.</blockquote><p><em>More content at </em><a href="http://plainenglish.io/"><strong><em>plainenglish.io</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ba14314e90c" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/python-decorators-everything-you-need-to-know-6ba14314e90c">Python Decorators: Everything You Need to Know</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Dockerize a Python Flask Application]]></title>
            <link>https://python.plainenglish.io/how-to-dockerize-python-flask-application-e2bb047f6bd4?source=rss-5a6c5a8e14f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2bb047f6bd4</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Pulkit Agrawal]]></dc:creator>
            <pubDate>Fri, 27 Aug 2021 21:52:47 GMT</pubDate>
            <atom:updated>2021-09-01T09:18:04.964Z</atom:updated>
            <content:encoded><![CDATA[<h4>Run Python Flask App using Docker</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xaV0lysSbRxqMAJdBlNc4A.png" /></figure><p>This article mainly focuses on running Python Flask API using docker.<br>We will run a very basic Flask API in this tutorial so that we can mainly concentrate on Dockerization.</p><p>Before starting a new Python project, we need to create a virtual environment and install the dependency.</p><pre># Create a new project directory<br>❯ mkdir flask-dockerization<br>❯ cd flask-dockerization</pre><pre># Install virtualenv and create new venv<br>❯ virtualenv venv</pre><pre># Activate venv<br>❯ source venv/bin/activate</pre><pre># Install flask dependency<br>❯ pip install flask-restful</pre><pre># Create requirements.txt file<br>❯ pip freeze &gt; requirements.txt</pre><p>We can take a sample Flask API code from Flask restful <a href="https://flask-restful.readthedocs.io/en/latest/quickstart.html">documentation</a>.</p><pre>❯ <strong>cat &gt; app.py</strong></pre><pre># Sample flask API for docker demo<br>from flask import Flask<br>from flask_restful import Resource, Api</pre><pre>app = Flask(__name__)<br>api = Api(app)</pre><pre><strong>class</strong> <strong>HelloPythonWithDocker</strong>(Resource):<br>    <strong>def</strong> get(self):<br>        <strong>return</strong> {&#39;hello&#39;: &#39;docker&#39;}</pre><pre>api.add_resource(<strong>HelloPythonWithDocker</strong>, &#39;/&#39;)</pre><pre><strong>if</strong> __name__ == &#39;__main__&#39;:<br>    app.run(host=&quot;0.0.0.0&quot;, debug=<strong>True</strong>)</pre><p>Let&#39;s test this Flask API by running without Docker.</p><pre>❯ python3 api.py<br> * Debug mode: on<br> * Running on <a href="http://127.0.0.1:5000/">http://127.0.0.1:5000/</a> (Press CTRL+C to quit)</pre><p>Test API request in a new terminal:</p><pre>❯ curl <a href="http://127.0.0.1:5000/">http://127.0.0.1:5000/</a><br>{&quot;hello&quot;: &quot;docker&quot;}</pre><p>We can say that our flask app is working fine without Docker.</p><p>The next step is to run the upper Flask app using Docker.</p><p>Note: I am assuming that you have docker installed and running in your system. Please follow official documentation for Docker installation.</p><p><a href="https://docs.docker.com/get-docker/">Get Docker</a></p><p>We need to build a docker image for running a docker container. And docker image can be automatically built by reading instructions inside Dockerfile.<br>A <a href="https://docs.docker.com/engine/reference/builder/">Dockerfile</a> is a text document that contains all the instructions and commands to build an image.</p><pre># base images<br>FROM python:3.9</pre><pre># you can use alpine image for light weight.<br># FROM python:3.9-alpine</pre><pre># workdir is used to set the pwd inside docker container<br>WORKDIR /code</pre><pre>COPY requirements.txt /requirements.txt</pre><pre># Install pip dependancy.<br>RUN pip install -r /requirements.txt</pre><pre># copy whole directory inside /code working directory.<br>COPY . /code</pre><pre># This command execute at the time when conatiner start.<br>CMD [&quot;python3&quot;, &quot;app.py&quot;]</pre><p>This is the minimal Dockerfile that can build a docker image to run a Python app.</p><p>Run Docker build command to create a Docker image.</p><pre>❯ docker build -t flask-api .</pre><p>Check your docker image created successfully:</p><pre>❯ docker images<br>REPOSITORY      TAG           IMAGE ID       CREATED          SIZE<br>flask-api       latest        e27ca1de3b57   5 minutes ago    75.6MB</pre><p>We are ready to run flask API using docker. let&#39;s run this command to run the docker container in interactive mode.</p><pre>❯ docker run -it -p 5000:5000 flask-api:latest<br>* Serving Flask app &#39;app&#39; (lazy loading) <br>...</pre><p>we can also run the docker container in detached mode.</p><pre>❯ docker run -d -p 5000:5000 --name flask_api flask-api:latest<br>3ecb165ae13dc6ca22e58b214fdeb33110c653f59105ba443f3c35e6f6941512</pre><p>Verify your container is running:</p><pre># list all the running containers.<br>❯ docker ps<br>CONTAINER ID   IMAGE              COMMAND            CREATED         STATUS         PORTS                                       NAMES<br>3ecb165ae13d   flask-api:latest   &quot;python3 app.py&quot;   4 seconds ago   Up 3 seconds   0.0.0.0:5000-&gt;5000/tcp, :::5000-&gt;5000/tcp   flask_api</pre><pre># check docker logs <br>❯ docker logs 3ecb165ae13d</pre><p>Make an API request to check that the Flask app is running with docker.</p><pre>❯ curl <a href="http://0.0.0.0:5000/">http://0.0.0.0:5000</a><br>{&quot;hello&quot;: &quot;docker&quot;}</pre><p>Finally, we are done with the Dockerization of the Python Flask API.</p><blockquote>Thank you for reading this article. Please comment for any suggestions. <br>You are welcome to <a href="https://medium.com/@agrawal-pulkit"><strong>follow</strong></a> if you like this article and <a href="https://agrawal-pulkit.medium.com/">others</a> so you won’t miss new updates in the future.</blockquote><p><em>More content at </em><a href="http://plainenglish.io/"><strong><em>plainenglish.io</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2bb047f6bd4" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/how-to-dockerize-python-flask-application-e2bb047f6bd4">How to Dockerize a Python Flask Application</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use Tmux with Iterm2]]></title>
            <link>https://medium.com/hackernoon/how-to-use-tmux-with-iterm2-c22dbe76f7a3?source=rss-5a6c5a8e14f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c22dbe76f7a3</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[iterm2]]></category>
            <category><![CDATA[tmux]]></category>
            <category><![CDATA[terminal]]></category>
            <dc:creator><![CDATA[Pulkit Agrawal]]></dc:creator>
            <pubDate>Mon, 23 Aug 2021 09:33:35 GMT</pubDate>
            <atom:updated>2021-08-23T09:33:35.356Z</atom:updated>
            <content:encoded><![CDATA[<p>Easy way to use tmux with existing iterm2 setup</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ha6bUhaMJpmnzD-5PUdxxg.jpeg" /></figure><p>Before starting this tutorial please make sure iterm2 and tmux are already installed in your system.</p><p><strong>Start tmux session with iterm2:</strong></p><pre><em># create a new session<br>*</em> tmux -CC  <em> </em></pre><pre><em># create a new tmux session with name<br>*</em> tmux new -s &lt;session-name&gt; <em> </em></pre><pre><em># attach to a session<br>*</em> tmux -CC a -t &lt;session-name&gt;</pre><p><strong>List tmux sessions:</strong></p><pre>tmux list-sessions</pre><p><strong>Examples:</strong></p><pre>❯ tmux list-sessions<br>0: 1 windows (created Mon Aug 23 14:53:39 2021)</pre><pre>❯ tmux new -s medium</pre><pre>❯ tmux list-sessions<br>0: 1 windows (created Mon Aug 23 14:53:39 2021)<br>medium: 1 windows (created Mon Aug 23 14:53:59 2021) (attached)</pre><pre>❯ tmux -CC a -t medium<br>** tmux mode started **</pre><h4>Iterm2 best cheat sheet</h4><p><a href="https://gist.github.com/squarism/ae3613daf5c01a98ba3a">https://gist.github.com/squarism/ae3613daf5c01a98ba3a</a></p><h4>Tmux cheatsheet</h4><p><a href="https://devhints.io/tmux">https://devhints.io/tmux</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c22dbe76f7a3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/how-to-use-tmux-with-iterm2-c22dbe76f7a3">How to use Tmux with Iterm2</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Advanced Git Commands to Level-Up Your Coding Skills]]></title>
            <link>https://python.plainenglish.io/git-concepts-very-rarely-but-useful-git-commands-3aa929499d58?source=rss-5a6c5a8e14f------2</link>
            <guid isPermaLink="false">https://medium.com/p/3aa929499d58</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Pulkit Agrawal]]></dc:creator>
            <pubDate>Mon, 02 Nov 2020 13:01:58 GMT</pubDate>
            <atom:updated>2021-08-30T06:42:46.875Z</atom:updated>
            <content:encoded><![CDATA[<p>Top 5 Advanced Git commands which make a programmer’s life easy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q0MspgnvMmv5MOxX" /><figcaption>Photo by <a href="https://unsplash.com/@synkevych?utm_source=medium&amp;utm_medium=referral">Roman Synkevych</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Git is a widely used version control system. This tutorial will help you to understand 5 Advanced Git commands like git squash, cherry-pick.</p><h4>1. Squash multiple Git commits into one</h4><ul><li>check how many commits you want to squash.</li></ul><pre>git log -&lt;n&gt;</pre><ul><li>rebase head with particular commit.</li></ul><pre>git rebase -i HEAD~&lt;n&gt;</pre><ul><li>change n-1 commit from pick to squash(s).</li><li>save file and again add commit message.</li><li>force push head branch</li></ul><pre>git push -f origin head</pre><h4>2. Amend a new commit in the last commit</h4><ul><li>amend new changes in the last commit</li></ul><pre>git commit --amend<br>git push -u origin head</pre><h4>3. Cherry-pick</h4><ul><li>Cherry-picking in Git means to choose a commit from one branch and apply it to another.</li><li>Make sure you are on the branch you want to apply the commit to.</li></ul><pre>git checkout master</pre><p>Execute the following:</p><pre>git cherry-pick &lt;commit-hash&gt;</pre><h4>4. Clone a subfolder from the git repo</h4><pre>git init &lt;repo&gt;<br>cd &lt;repo&gt;<br>git remote add -f origin &lt;url&gt;</pre><pre>git config core.sparseCheckout true</pre><pre>echo &quot;some/dir/&quot; &gt;&gt; .git/info/sparse-checkout<br>echo &quot;another/sub/tree&quot; &gt;&gt; .git/info/sparse-checkout<br>This tells git which directories you want to checkout. Then you can pull just those directories</pre><pre>git pull origin master</pre><h4>5. Take pull from an upstream forked repository.</h4><pre>git remote add upstream &lt;git@url&gt;<br>git fetch upstream<br>git checkout master<br>git rebase upstream/master<br>git push -f origin master</pre><p><em>You are welcome to </em><a href="https://medium.com/@agrawal-pulkit"><strong><em>follow</em></strong></a><em> if you like this article and others so you won’t miss new updates in the future.</em></p><p><em>More content at </em><a href="http://plainenglish.io/"><em>plainenglish.io</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3aa929499d58" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/git-concepts-very-rarely-but-useful-git-commands-3aa929499d58">5 Advanced Git Commands to Level-Up Your Coding Skills</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install consul and vault in mac using HomeBrew]]></title>
            <link>https://medium.com/hacker-soon/installation-of-consul-and-vault-in-mac-7d1ecf8facb2?source=rss-5a6c5a8e14f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d1ecf8facb2</guid>
            <category><![CDATA[vault]]></category>
            <category><![CDATA[hashicorp]]></category>
            <category><![CDATA[consul]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Pulkit Agrawal]]></dc:creator>
            <pubDate>Mon, 07 Oct 2019 05:13:44 GMT</pubDate>
            <atom:updated>2019-10-14T21:01:06.471Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V8InoSiq3FTuDnYeevCBGQ.png" /></figure><p>This tutorial is to setup consul and vault in mac.</p><p>Install consul using homebrew:</p><pre>brew install consul</pre><p>Install vault using homebrew:</p><pre>brew install vault</pre><p>Run consul and vault in your system:</p><pre>Consul agent — dev<br>Vault server -dev</pre><h3>Consul: key/value</h3><p>Create a key/value in consul.</p><pre>consul kv put test/data/key value</pre><p>This command will create hierarchy test=&gt;data=&gt; {key: value}</p><p>Get a key/value from the consul.</p><pre>consul kv get test/data/key value</pre><h3>Vault: key/value</h3><h3>Vault Authentication after installation</h3><p>Unseal vault using master keys these keys created for the first time. please contact an administrator for getting keys.</p><pre>vault operator unseal</pre><p>Login in the vault using the root token.</p><pre>vault login</pre><p>Enable key-value in vault this is for the first time enable.</p><pre>vault secrets enable -path=kv kv-v2</pre><p>Create a key value in the vault.</p><pre>vault kv put kv-v2/hello key=value  <br>output: <br>Key              Value <br>---              -----<br>created_time     2019-07-10T07:52:26.062739464Z <br>deletion_time    n/a <br>destroyed        false <br>version          1</pre><p>get a key-value from the vault.</p><pre>vault kv get kv-v2/hello  <br>output: <br>Key              Value <br>---              ----- <br>created_time     2019-07-10T07:52:26.062739464Z <br>deletion_time    n/a <br>destroyed        false <br>version          1  </pre><pre>=== Data === <br>Key    Value <br>---    ----- <br>key    value</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d1ecf8facb2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hacker-soon/installation-of-consul-and-vault-in-mac-7d1ecf8facb2">How to install consul and vault in mac using HomeBrew</a> was originally published in <a href="https://medium.com/hacker-soon">Hacker Soon</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>