<?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 عبدالرحمن خلیل on Medium]]></title>
        <description><![CDATA[Stories by عبدالرحمن خلیل on Medium]]></description>
        <link>https://medium.com/@ark4579?source=rss-105bc0b733ac------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*vx8Hm55DcWBu5a1G</url>
            <title>Stories by عبدالرحمن خلیل on Medium</title>
            <link>https://medium.com/@ark4579?source=rss-105bc0b733ac------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 19:45:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ark4579/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[ADHD and Multiple Screens]]></title>
            <link>https://medium.com/ark4579/adhd-and-multiple-screens-970932911697?source=rss-105bc0b733ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/970932911697</guid>
            <category><![CDATA[adhd]]></category>
            <dc:creator><![CDATA[عبدالرحمن خلیل]]></dc:creator>
            <pubDate>Tue, 27 Jun 2023 15:09:34 GMT</pubDate>
            <atom:updated>2023-06-27T15:09:34.270Z</atom:updated>
            <content:encoded><![CDATA[<p>Working with Multiple Screens</p><blockquote>[It’s a work in progress. As I learn more stuff, I will keep updating this article.]</blockquote><p>Multiple Screens.</p><p>Let’s say you are writting an Article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=970932911697" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ark4579/adhd-and-multiple-screens-970932911697">ADHD and Multiple Screens</a> was originally published in <a href="https://medium.com/ark4579">ark4579</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[git-just-push?]]></title>
            <link>https://ark4579.medium.com/git-just-push-7b590a01c1e8?source=rss-105bc0b733ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b590a01c1e8</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[push]]></category>
            <category><![CDATA[alias]]></category>
            <dc:creator><![CDATA[عبدالرحمن خلیل]]></dc:creator>
            <pubDate>Thu, 07 Oct 2021 09:46:57 GMT</pubDate>
            <atom:updated>2021-10-07T09:46:57.876Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Are you tired of git <strong>NOT</strong> just pushing your branch and instead first asking to set origin for every new branch ?</blockquote><p>Well, here is a command that can help you:</p><pre>git push 2&gt;&amp;1 &gt;/dev/null | tail -2 | grep &#39;git push&#39; | awk &#39;{split(\$0,a,\&quot; \&quot;); print a[5]}&#39; | xargs -I{} git push --set-upstream origin &#39;{}&#39;</pre><p>What this will do is first try `git push` and if there is an error it will get branch name and run git push — set-upstream origin branch-name.</p><p>of-course you are not going to write (or even copy past this every-time) so, what you can do is just create a shortcut (alias) for it. Something like this:</p><pre>alias gph=”git push 2&gt;&amp;1 &gt;/dev/null | tail -2 | grep ‘git push’ | awk ‘{split(\$0,a,\” \”); print a[5]}’ | xargs -I{} git push — set-upstream origin ‘{}’”</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b590a01c1e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How-To: Manually restart django development server]]></title>
            <link>https://ark4579.medium.com/how-to-manually-restart-django-development-server-d6ad29a8c273?source=rss-105bc0b733ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6ad29a8c273</guid>
            <category><![CDATA[django]]></category>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[عبدالرحمن خلیل]]></dc:creator>
            <pubDate>Fri, 10 Sep 2021 07:35:27 GMT</pubDate>
            <atom:updated>2021-09-10T07:49:43.027Z</atom:updated>
            <content:encoded><![CDATA[<p>Here is how:</p><h3>1. Script</h3><p>Create a bash script, let’s say, ~/restart-runserver.sh and copy-paste following code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/565fa73d0db7947ca582df4c02dd6d2d/href">https://medium.com/media/565fa73d0db7947ca582df4c02dd6d2d/href</a></iframe><h3>2. Run</h3><p>By running this script we can trick django development server into restarting it-self. To run:</p><pre>bash ~/restart-runserver.sh</pre><p>If you are asked to enter password every-time, you can change file permissions to avoid that. To change file permissions run:</p><pre>sudo chmod 700 ~/restart-runserver.sh</pre><h3>3. Alias</h3><p>Since we will be running this script a lot we can add an alias to help us easily run this. To add an alias, if using bash terminal, run:</p><pre>echo &quot;alias rst=&#39;bash ~/restart-runserver.sh&#39;&quot; &gt;&gt; ~/.bashrc</pre><p>To add an alias, if using zsh terminal, run:</p><pre>echo &quot;alias rst=&#39;bash ~/restart-runserver.sh&#39;&quot; &gt;&gt; ~/.zshrc</pre><p>Don’t forget to either source your rc file or restart your terminal for alias to work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6ad29a8c273" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>