<?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 Alex Kisakye on Medium]]></title>
        <description><![CDATA[Stories by Alex Kisakye on Medium]]></description>
        <link>https://medium.com/@akisakye?source=rss-94a97ed7a085------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4QenhrDDRdjm99eP6P3rkg.jpeg</url>
            <title>Stories by Alex Kisakye on Medium</title>
            <link>https://medium.com/@akisakye?source=rss-94a97ed7a085------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 16:17:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akisakye/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 to verify if git token is expired]]></title>
            <link>https://medium.com/@akisakye/how-to-verify-if-git-token-is-expired-6868de4b88e2?source=rss-94a97ed7a085------2</link>
            <guid isPermaLink="false">https://medium.com/p/6868de4b88e2</guid>
            <dc:creator><![CDATA[Alex Kisakye]]></dc:creator>
            <pubDate>Mon, 12 Feb 2024 02:27:35 GMT</pubDate>
            <atom:updated>2024-02-12T02:27:35.352Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*9f4n-T5mfjSkf7yoxLGrbg.png" /></figure><p>First off, you should have a better way to manage your tokens, but if your are here, no judgement whatsoever.</p><p>You are going to call the GitHub API with the token in question:</p><pre> curl -s -H &quot;Authorization: token YOUR_GIT_TOKEN_HERE&quot; &quot;https://api.github.com/&quot;</pre><p>And if all goes well, you should have an output similar to the one below</p><pre>{<br>  &quot;current_user_url&quot;: &quot;https://api.github.com/user&quot;,<br>  &quot;current_user_authorizations_html_url&quot;: &quot;https://github.com/settings/connections/applications{/client_id}&quot;,<br>  &quot;authorizations_url&quot;: &quot;https://api.github.com/authorizations&quot;,<br>  &quot;code_search_url&quot;: &quot;https://api.github.com/search/code?q={query}{&amp;page,per_page,sort,order}&quot;,<br>  &quot;commit_search_url&quot;: &quot;https://api.github.com/search/commits?q={query}{&amp;page,per_page,sort,order}&quot;,<br>  &quot;emails_url&quot;: &quot;https://api.github.com/user/emails&quot;,<br>  &quot;emojis_url&quot;: &quot;https://api.github.com/emojis&quot;,<br>  &quot;events_url&quot;: &quot;https://api.github.com/events&quot;,<br>  &quot;feeds_url&quot;: &quot;https://api.github.com/feeds&quot;,<br>  &quot;followers_url&quot;: &quot;https://api.github.com/user/followers&quot;,<br>  &quot;following_url&quot;: &quot;https://api.github.com/user/following{/target}&quot;,<br>  &quot;gists_url&quot;: &quot;https://api.github.com/gists{/gist_id}&quot;,<br>  &quot;hub_url&quot;: &quot;https://api.github.com/hub&quot;,<br>  &quot;issue_search_url&quot;: &quot;https://api.github.com/search/issues?q={query}{&amp;page,per_page,sort,order}&quot;,<br>  &quot;issues_url&quot;: &quot;https://api.github.com/issues&quot;,<br>  &quot;keys_url&quot;: &quot;https://api.github.com/user/keys&quot;,<br>  &quot;label_search_url&quot;: &quot;https://api.github.com/search/labels?q={query}&amp;repository_id={repository_id}{&amp;page,per_page}&quot;,<br>  &quot;notifications_url&quot;: &quot;https://api.github.com/notifications&quot;,<br>  &quot;organization_url&quot;: &quot;https://api.github.com/orgs/{org}&quot;,<br>  &quot;organization_repositories_url&quot;: &quot;https://api.github.com/orgs/{org}/repos{?type,page,per_page,sort}&quot;,<br>  &quot;organization_teams_url&quot;: &quot;https://api.github.com/orgs/{org}/teams&quot;,<br>  &quot;public_gists_url&quot;: &quot;https://api.github.com/gists/public&quot;,<br>  &quot;rate_limit_url&quot;: &quot;https://api.github.com/rate_limit&quot;,<br>  &quot;repository_url&quot;: &quot;https://api.github.com/repos/{owner}/{repo}&quot;,<br>  &quot;repository_search_url&quot;: &quot;https://api.github.com/search/repositories?q={query}{&amp;page,per_page,sort,order}&quot;,<br>  &quot;current_user_repositories_url&quot;: &quot;https://api.github.com/user/repos{?type,page,per_page,sort}&quot;,<br>  &quot;starred_url&quot;: &quot;https://api.github.com/user/starred{/owner}{/repo}&quot;,<br>  &quot;starred_gists_url&quot;: &quot;https://api.github.com/gists/starred&quot;,<br>  &quot;topic_search_url&quot;: &quot;https://api.github.com/search/topics?q={query}{&amp;page,per_page}&quot;,<br>  &quot;user_url&quot;: &quot;https://api.github.com/users/{user}&quot;,<br>  &quot;user_organizations_url&quot;: &quot;https://api.github.com/user/orgs&quot;,<br>  &quot;user_repositories_url&quot;: &quot;https://api.github.com/users/{user}/repos{?type,page,per_page,sort}&quot;,<br>  &quot;user_search_url&quot;: &quot;https://api.github.com/search/users?q={query}{&amp;page,per_page,sort,order}&quot;<br>}</pre><p>Otherwise…</p><pre>{<br>  &quot;message&quot;: &quot;Bad credentials&quot;,<br>  &quot;documentation_url&quot;: &quot;https://docs.github.com/rest&quot;<br>}</pre><p>Now you can generate a new token and hopefully figure out how to track this internally so that you don’t break builds in the future ;-)</p><p>That’s all folks</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6868de4b88e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Error getting valid credentials: NoCredentialProviders: no valid providers in chain. Deprecated.]]></title>
            <link>https://medium.com/@akisakye/error-getting-valid-credentials-nocredentialproviders-no-valid-providers-in-chain-deprecated-1d0bd0d74b06?source=rss-94a97ed7a085------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d0bd0d74b06</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[ec]]></category>
            <dc:creator><![CDATA[Alex Kisakye]]></dc:creator>
            <pubDate>Tue, 16 Jan 2024 05:07:08 GMT</pubDate>
            <atom:updated>2024-05-16T21:58:54.056Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are seeing the error above, it can mean one of the following</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*Q3es4u13e2wmWeqAqQQKDg.png" /></figure><ol><li>You have not attached the right IAM role on your ec2 instance — the right role is “AmazonEC2ContainerServiceforEC2Role”</li></ol><p>2. You also need a trust relationship for your role — this will suffice</p><pre>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>        {<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Principal&quot;: {<br>                &quot;Service&quot;: [<br>                    &quot;ecs.amazonaws.com&quot;,<br>                    &quot;ec2.amazonaws.com&quot;<br>                ]<br>            },<br>            &quot;Action&quot;: &quot;sts:AssumeRole&quot;<br>        }<br>    ]<br>}</pre><p>3. Your instance is attempting to connect to the right ecs cluster</p><pre>#cat /etc/ecs/ecs.config<br>ECS_CLUSTER=service-cluster</pre><p>If you have done all above and the error still occurs, you might need to force ecs to re-initialize. A reboot will not help with this one, you need to run</p><pre>/usr/libexec/amazon-ecs-init pre-start</pre><p>Other errors that might point to the same issue</p><pre>msg=&quot;ServiceConnect Capability: No service connect capabilities were found for Appnet version:&quot; image=&quot;&quot;<br>msg=&quot;Unable to register as a container instance with ECS: NoCredentialProviders: no valid providers in chain. Deprecated.\n\tFor verbose messaging see aws.Config.CredentialsChainVerboseErrors&quot; <br>msg=&quot;Error registering container instance&quot; error=&quot;NoCredentialProviders: no valid providers in chain. Deprecated.\n\tFor verbose messaging see aws.Config.CredentialsChainVerboseErrors&quot;</pre><p>That’s all folks</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d0bd0d74b06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Make $10,000 a Day with AI]]></title>
            <link>https://medium.com/@akisakye/how-to-make-10-000-a-day-with-ai-35985382c354?source=rss-94a97ed7a085------2</link>
            <guid isPermaLink="false">https://medium.com/p/35985382c354</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[make-money-online]]></category>
            <dc:creator><![CDATA[Alex Kisakye]]></dc:creator>
            <pubDate>Tue, 02 May 2023 23:47:38 GMT</pubDate>
            <atom:updated>2023-06-15T22:20:33.596Z</atom:updated>
            <content:encoded><![CDATA[<p>Well, this is the age of AI. We are all bombarded by stories of many of our peers making lots of money using AI. Of course, we all want to get on that gravy train before it hopefully dries out, but, Sorry, No amount of AI will help you make money in your sleep. The only way to make money is by stopping procrastinating, showing up, and doing the work.</p><p>That’s all, folks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hxxWos3CYxpPhpUe-BvsAw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@santesson89?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Andrea De Santis</a> on <a href="https://unsplash.com/photos/zwd435-ewb4?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Ps. I have no mailing list to funnel you through until I sell you a course or something, but if you could give me a follow here, that’d be cool.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35985382c354" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dynamic Inventory with Ansible AWX]]></title>
            <link>https://medium.com/@akisakye/dynamic-inventory-with-ansible-awx-1564a194d12a?source=rss-94a97ed7a085------2</link>
            <guid isPermaLink="false">https://medium.com/p/1564a194d12a</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[ansible-tower]]></category>
            <category><![CDATA[ansible]]></category>
            <category><![CDATA[ansible-awx]]></category>
            <dc:creator><![CDATA[Alex Kisakye]]></dc:creator>
            <pubDate>Mon, 06 Feb 2023 15:51:48 GMT</pubDate>
            <atom:updated>2023-03-16T22:51:59.581Z</atom:updated>
            <content:encoded><![CDATA[<p>If you have worked with AWX (open-source Ansible Tower clone) to manage Ansible projects and cloud infrastructure, you quickly realise that your Ansible inventory needs to keep up with the dynamic nature of instances in the cloud. Suppose your instances are in an autoscale group, for example. In that case, they come and frequently go. Keeping a manually generated host list in AWX of your cloud infrastructure is not feasible. This is where dynamic inventory comes to the rescue.</p><p>AWX comes with the option to add hosts in your AWS account to the inventory dynamically. In this article, I will show you how to use this feature in your projects</p><p>If you want to follow along, you can run your own AWX instance in AWS using this production-ready MarketPlace image (AWS Infra costs apply).</p><p><a href="https://aws.amazon.com/marketplace/pp/prodview-v62dxybedf2ym?sr=0-2&amp;ref_=beagle&amp;applicationId=AWSMPContessa">https://aws.amazon.com/marketplace/pp/prodview-v62dxybedf2ym</a></p><p>Step 1: Authentication.</p><p>As a start, AWX needs IAM credentials with the right policy configured to generate a helpful inventory list from your infrastructure. You can achieve this in 2 ways;</p><ul><li>Create an IAM user with access and secret keys and add that to AWX.</li></ul><p>This will be added to the credentials list in AWX, and we can use it later once we start adding our inventory sources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5vNQSoyvJS6S_R2AelpY-g.png" /></figure><ul><li>Or create an instance role with a similar policy and add that to the AWX host.</li></ul><p>Sample policy enough for AWX to generate an inventory would look like this.</p><pre>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>        {<br>            &quot;Sid&quot;: &quot;VisualEditor0&quot;,<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Action&quot;: [<br>                &quot;ec2:DescribeAddresses&quot;,<br>                &quot;ec2:DescribeInstances&quot;,<br>                &quot;ec2:DescribeRegions&quot;<br>            ],<br>            &quot;Resource&quot;: &quot;*&quot;<br>        }<br>    ]<br>}</pre><p>Step 2: Add the inventory</p><p>In the AWX console, select Inventories from the menu on the left and then “Add” on the new page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Be2KsYgMfE-MkWB0P6EP8A.png" /></figure><p>Give the inventory a fancy name and click save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3B9MxTfzi996ihtHG9vYNg.png" /></figure><p>Select Sources and “Add”. Here is where we are going to select Amazon EC2 as the source of our inventory. We are also going to check “overwrite” so that each new sync can flush out the old inventory contents and “update on launch” so that when our playbook runs, the inventory can refresh to reflect the instances we have in AWS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iUPy3zKdcF6ESH0mSmNeig.png" /></figure><p>Once done, click “save” and then“sync” to see if our new inventory is built. You should ensure your IAM role is set correctly if you run into errors.</p><p>Also, if you choose to use credentials, ensure you fill that in when adding inventory source.</p><p>A quick look at the hosts in AWX now should show something similar to the list below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8zlMpUmyGOz8bhd7chkk-w.png" /></figure><p>If you look closely, I have all my hosts listed. This includes Windows hosts, Linux hosts and even those in a shutdown state. You can apply filters to the inventory to make this list more practical, such as in cases where you need to run only Windows playbooks against Windows hosts.</p><p>Step 3: Filtering hosts in AWX.</p><p>In this example, I will filter all Windows hosts in the state ‘running’. We don’t want AWX attempting to connect to shutdown hosts. For this, we shall use this filter;</p><pre>---<br>filters:<br>    &#39;platform&#39;:<br>        -   &#39;windows&#39;<br>    &#39;instance-state-name&#39;:<br>        -   &#39;running&#39;</pre><p>We shall add this under Inventories &gt; inventory_name &gt; sources &gt; sources_name &gt; edit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DC2Yk_cbytylizLpOSG-Uw.png" /></figure><p>Once done and saved, we can sync our inventory again; now, our inventory contains only Windows Hosts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2G5FxWs9HwxXtgFSTa9cPw.png" /></figure><p>You can use filters to do other nice tricks, like filter Hosts based on tags, platform, or even the VPC they are in.</p><p>There are so many tips and tricks to derive value from AWX. I will be sharing those in the coming days.</p><p>That’s all folks!</p><p>Hello, Please follow me on Medium! By following my profile, you’ll be the first to know when I publish a new article. Plus, you’ll be helping me reach a wider audience and grow as a writer. Thank you for your support!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1564a194d12a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[vagrant /sbin/mount.vboxsf: mounting failed with the error: No such device]]></title>
            <link>https://medium.com/@akisakye/vagrant-sbin-mount-vboxsf-mounting-failed-with-the-error-no-such-device-8a2109c035f6?source=rss-94a97ed7a085------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a2109c035f6</guid>
            <category><![CDATA[virtualbox]]></category>
            <category><![CDATA[vagrant]]></category>
            <category><![CDATA[osx86]]></category>
            <dc:creator><![CDATA[Alex Kisakye]]></dc:creator>
            <pubDate>Fri, 25 Sep 2020 14:14:14 GMT</pubDate>
            <atom:updated>2023-03-16T22:51:02.001Z</atom:updated>
            <content:encoded><![CDATA[<p>If you have come across this error, it is possible that there is a version miss-match between your vagrant box and Virtualbox’s GuestAdditions.</p><figure><img alt="Running Vagrant on OSX with Virtualbox" src="https://cdn-images-1.medium.com/max/778/1*E3P73yaif6hnk-WMoTHtKQ.png" /></figure><p>To solve this;</p><ol><li>Install vbguest plugin for vagrant</li></ol><pre>$&gt;vagrant plugin install vagrant-vbguest </pre><p>2. Run the vbguest plugin. This plugin will start your VM, jump into it and try to sort out the miss-match versions by installing the right version for you</p><pre>$&gt;vagrant vbguest</pre><p>3. Once done, you might need to power cycle your VM, just to make sure everything kicks in right</p><pre>$&gt;vagrant halt<br>$&gt;vagrant up</pre><p>4. That&#39;s all folks!</p><p>Hello, Please follow me on Medium! By following my profile, you’ll be the first to know when I publish a new article. Plus, you’ll be helping me reach a wider audience and grow as a writer. Thank you for your support!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a2109c035f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>