<?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: clinton wambugu</title>
    <description>The latest articles on DEV Community by clinton wambugu (@scp07).</description>
    <link>https://dev.to/scp07</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%2F150306%2F555e6487-7b7e-4d19-b472-b247d1006dca.jpeg</url>
      <title>DEV Community: clinton wambugu</title>
      <link>https://dev.to/scp07</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/scp07"/>
    <language>en</language>
    <item>
      <title>How to stepup CI/CD in AWS</title>
      <dc:creator>clinton wambugu</dc:creator>
      <pubDate>Fri, 30 Jun 2023 19:01:48 +0000</pubDate>
      <link>https://dev.to/scp07/how-to-stepup-cicd-in-aws-5eae</link>
      <guid>https://dev.to/scp07/how-to-stepup-cicd-in-aws-5eae</guid>
      <description></description>
      <category>devops</category>
      <category>ci</category>
      <category>cd</category>
    </item>
    <item>
      <title>How To deploy your django app to AWS ECS</title>
      <dc:creator>clinton wambugu</dc:creator>
      <pubDate>Fri, 30 Jun 2023 19:00:08 +0000</pubDate>
      <link>https://dev.to/scp07/how-to-deploy-your-django-app-to-aws-ecs-3fp6</link>
      <guid>https://dev.to/scp07/how-to-deploy-your-django-app-to-aws-ecs-3fp6</guid>
      <description></description>
      <category>aws</category>
      <category>ecs</category>
    </item>
    <item>
      <title>Make your python script accessible anywhere in your linux terminal</title>
      <dc:creator>clinton wambugu</dc:creator>
      <pubDate>Mon, 29 Aug 2022 18:46:40 +0000</pubDate>
      <link>https://dev.to/scp07/make-your-python-script-accessible-anywhere-in-your-linux-terminal-22lo</link>
      <guid>https://dev.to/scp07/make-your-python-script-accessible-anywhere-in-your-linux-terminal-22lo</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HexulPdk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/outaqn2frj1ax7flxsg2.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HexulPdk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/outaqn2frj1ax7flxsg2.jpg" alt="Image banner" width="640" height="480"&gt;&lt;/a&gt;&lt;br&gt;
Recently I have been trying to automate some of the basic and mundane task that I do on my computer. One of the task that I wanted to automate was opening any of my the popular social media platforms(Instagram, facebook, whatsapp) on the web by typing a simple command on the terminal. &lt;br&gt;
The problem after coming up with the solution was that I had to go to the directory every time I wanted to use the script. This was not only cumbersome but also defeated the point of my automation so I did a little digging on the web and here are the steps that I took to make my script application globally accessible in the terminal:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;First locate the path for the interpreter you are using by typing the following in the terminal:
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;$ which python3&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add the following line at the top of your script file:
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;#! /usr/bin/python3&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
 -this is the path of your interpreter displayed by the command in the first step.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Change your scripts permission with the following command:
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;chmod u+x socials.py&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Move your script to the following directory: 
&lt;code&gt;/usr/local/bin/&lt;/code&gt;. You will need admin access for the operation to be successful.Type the following command

&lt;code&gt;sudo mv socials.py /usr/local/bin/socials&lt;/code&gt;

. You will have to remove the file extension and if the file has &lt;code&gt;camelCase&lt;/code&gt; change it to &lt;code&gt;snake_case&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Alternatively you can create a link to your script without having to move your file by using the following command:
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;sudo ln socials.py /usr/local/bin/socials&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;References: &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://stackoverflow.com/questions/10235125/linux-custom-executable-globally-available"&gt;Linux custom executable globally available&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://gist.github.com/joshwyatt/a6e20d28818b5183258b"&gt;How to make a globally available executable script in the scripting language of your choice&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>python</category>
      <category>automation</category>
      <category>ubuntu</category>
      <category>linux</category>
    </item>
  </channel>
</rss>
