<?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 Richard Oluwo on Medium]]></title>
        <description><![CDATA[Stories by Richard Oluwo on Medium]]></description>
        <link>https://medium.com/@richard4s?source=rss-6f7a4082fa3e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Pi0KmIVXqZQiIfpS.jpg</url>
            <title>Stories by Richard Oluwo on Medium</title>
            <link>https://medium.com/@richard4s?source=rss-6f7a4082fa3e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 01:20:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@richard4s/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[I will beat you again and NOTHING will happen]]></title>
            <link>https://richard4s.medium.com/i-will-beat-you-again-and-nothing-will-happen-7a06aa0a4c72?source=rss-6f7a4082fa3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a06aa0a4c72</guid>
            <category><![CDATA[gender-based-violence]]></category>
            <category><![CDATA[endsars]]></category>
            <category><![CDATA[police-brutality]]></category>
            <category><![CDATA[nigeria]]></category>
            <dc:creator><![CDATA[Richard Oluwo]]></dc:creator>
            <pubDate>Thu, 26 Nov 2020 14:03:43 GMT</pubDate>
            <atom:updated>2020-11-26T14:10:55.997Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Those were the words uttered ever so confidently by rookie military men performing security guard duties at the gate of a Nigerian Naval Officer after bruising my sister’s arm for ignoring a<a href="https://en.wikipedia.org/wiki/Street_harassment"> cat-call</a>.</blockquote><p>It’s much easier for men like this to carry out female oppression and gender-based violence because the average Nigerian is rendered powerless more so a woman and our voices essentially mean nothing. Women are more vulnerable to these sort of attacks due to their perceived physical weakness. Multiple issues similar to this occur far more regularly (uniquely to women) than you’d think without the well-deserved attention it needs to be resolved.</p><h4><strong>Here’s a video on what happened on Twitter</strong></h4><figure><img alt="https://twitter.com/Lucy_Anaaa/status/1331685072278335497" src="https://cdn-images-1.medium.com/max/1024/1*C7JRLwATbQfv3PbZSY5G0w.png" /><figcaption><a href="https://twitter.com/Lucy_Anaaa/status/1331685072278335497">https://twitter.com/Lucy_Anaaa/status/1331685072278335497</a></figcaption></figure><p>The truth depends on who tells the story (to support the government) or the official in this case. More and more people should feel confident in the power of using the law to sue people for violation of our human rights because if we do not, we fall into the trap of the monkey experiment.</p><blockquote>If you haven’t heard about the <a href="https://www.proserveit.com/blog/five-monkeys-experiment-lessons#:~:text=If%20you%20haven&#39;t%20heard,five%20monkeys%20in%20a%20cage.&amp;text=And%2C%20as%20soon%20as%20he,again%2C%20they%20attack%20him%20again.">Five Monkeys Experiment</a>, it goes a little something like this:</blockquote><p>A researcher puts five monkeys in a cage. There’s a bunch of bananas hanging from a string, with a ladder leading to the bananas. When the first monkey goes for the bananas, the researcher sprays all five monkeys with freezing water for five minutes. Sometime later, when a second monkey inevitably tries to go for the bananas, the researcher once again sprays all five monkeys with the cold water for five minutes. The researcher then stops spraying the monkeys. But, when a third monkey tries to go for the bananas, the other four attack him to prevent him from climbing that ladder. They are afraid of the punishment that may come. Even when we get to power we’re too comfortable with the norms to do anything about it. I remember a video during the <a href="https://twitter.com/hashtag/endsras">#EndSars protests</a> about the wounds some police officers inflicted on the daughter of a military officer in Abuja, I’m not sure if anything happened.</p><p>No internal affairs investigation, checks and balances. Living in fear in your own country, living in fear out of your country, tears falling on deaf ears, mass destruction, mass corruption, rinse and repeat the process every other week. Our legal system has limits when it comes to things of this nature, it’s almost as though its common knowledge that nobody sues the government, the rule of law does not apply to uniformed men and it never swings in the favour of the just.</p><p>The fight for freedom is a just cause and should be taken seriously regardless of stereotypes, race and most importantly gender. Most people have grown to want to oppress another person given the slightest chance, to what end? Gaining social currency, respect, fear?</p><blockquote>Injustice anywhere is a threat to justice everywhere- Martin Luther King Jr.</blockquote><p>If you think you’re above it, just wait, e go touch everybody. Stop all forms of brutality, no human being deserves to be a victim of randomly being brutalized walking down your street.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a06aa0a4c72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CI/CD For React App With Gitlab CI, Docker and Digitalocean]]></title>
            <link>https://richard4s.medium.com/ci-cd-for-react-app-with-gitlab-ci-docker-and-digitalocean-1379293751c7?source=rss-6f7a4082fa3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1379293751c7</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[gitlab]]></category>
            <category><![CDATA[digitalocean]]></category>
            <dc:creator><![CDATA[Richard Oluwo]]></dc:creator>
            <pubDate>Fri, 15 May 2020 18:42:38 GMT</pubDate>
            <atom:updated>2020-05-15T18:42:38.140Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*A3xDFI0LAjMtYxmSxT4_DA.jpeg" /></figure><p><strong>Fresh out the bat after finally completing your new react project, you must be feeling pumped and ready to unleash your web app for the world to admire huh? That’s fine, I guess. It’s only the right thing to do.</strong></p><p>So you went against what everyone was saying about going serverless or you just really want to get all your project on your digitalocean droplet or for whatever reason you didn’t use any of <a href="https://pages.github.com/">Github Pages</a>, <a href="https://www.netlify.com/">Netlify</a>, <a href="https://docs.gitlab.com/ee/user/project/pages/">Gitlab Pages</a>, <a href="https://www.heroku.com/">Heroku</a> and the rest. You took the bold step of wanting to manage everything on your server. Stupid! You are going to get introduced to a new world of pain so get ready!</p><h3>Your requirements:</h3><ul><li>Digitalocean droplet with Ubuntu server ~16.4</li><li>Docker — <a href="https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04">How To Install and Use Docker on Ubuntu</a>: Follow steps 1 and 2 to install Docker on the server</li><li><a href="https://gitlab.com/">Gitlab Repository</a></li><li>Familiarity with <a href="https://www.hostinger.com/tutorials/ssh-tutorial-how-does-ssh-work">SSH</a></li><li>Connection to server via SSH, if not create one with sshkeygen</li><li>Admin access to gitlab repository</li><li>Your react project already in that repository</li></ul><h3>Adding gitlab CI to your repo</h3><p><strong>Gitlab CI looks for a </strong><strong>.gitlab-ci.ymlin the repository you want the CI/CD to run. So at the root of your project folder, create a </strong><strong>.gitlab-ci.ymland add the folllowing content to it for react. For other formats, you can look up the references documentation here </strong><a href="https://docs.gitlab.com/ce/ci/yaml/README.html"><strong>Gitlab Reference Documentation</strong></a><strong>. You&#39;ll need to create variables, In your gitlab repository, go to </strong><strong>Settings &gt; CI/CD &gt; Variablesand then click the expand button by the side, it should look something like the picture below:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dy049G0X_glWG9Z5NPxYpw.png" /></figure><h4>Add the following variables</h4><ul><li>$SSH_PRIVATE_KEY- The value is your SSH private key generated from your digitalocean server (e.g. content of ~/.ssh/id_rsa)</li><li>$SSH_USERNAME- The username of the ssh used to login to your server (e.g. root)</li><li>$SSH_IP- The IP address of your server (e.g. 192.292.28.132 or example.com)</li><li>{path-to-project}- The path to your project on your server</li></ul><p><strong>The project on your server must have been initially cloned from your repository / linked via git remote add … and in sync. For React, the code below should go into your </strong><strong>.gitlab-ci.yml:</strong></p><pre>image: node:latest</pre><pre>stages:<br>  - build<br>  - deploy</pre><pre>cache:<br>  paths:<br>    - node_modules/</pre><pre>install_dependencies:<br>  stage: build<br>  script:<br>    - npm install<br>  artifacts:<br>    paths:<br>      - node_modules/<br></pre><pre>before_script:<br>  - apt-get update -qq<br>  - apt-get install -qq git<br>  # Setup SSH deploy keys<br>  - &#39;which ssh-agent || ( apt-get install -qq openssh-client )&#39;<br>  - eval $(ssh-agent -s)<br>  - ssh-add &lt;(echo &quot;$SSH_PRIVATE_KEY&quot;)<br>  - mkdir -p ~/.ssh<br>  - &#39;[[ -f /.dockerenv ]] &amp;&amp; echo -e &quot;Host *\n\tStrictHostKeyChecking no\n\n&quot; &gt; ~/.ssh/config&#39;<br>    <br>deploy_staging:<br>  stage: deploy<br>  type: deploy<br>  environment:<br>    name: staging<br>    url: theknowledgeapp.com<br>  script:<br>    - ssh {$SSH_USERNAME}@{$SSH_IP} &quot;cd /var/www/{path-to-project} &amp;&amp; git checkout dev &amp;&amp; git pull origin master &amp;&amp; npm run build &amp;&amp; exit&quot;<br>  only:<br>    - master</pre><p><strong>Now when you make any commit and push to your repos </strong><strong>master&#39;s branch Gitlab would attempt to trigger continuous integration for your project. You will be taken to the pipeline overview page, where you can see that the CI run is marked as pending and labeled as “stuck”:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*eXFFc4iRtKGGFlVEwiqPIA.png" /></figure><p><strong>If you click the pending status to get more info you would get:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*2sIH9W7FKl0bxkca0DOGuA.png" /></figure><p><strong>If you click the </strong><strong>install_dependenciesjob, you would see more specific details of what might be delaying the CI. You would be greeted with a warning notification at the top indicating that the pipeline is stuck because of a lack of runners. Before we create a runner, we need to setup the GItlab runner service on our digitalocean server, so log in to your server to download the latest version of the gitlab runner service with the command:</strong></p><pre>$ curl -L <a href="https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh">https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh</a> -o /tmp/gl-runner.deb.sh</pre><p><strong>You can check the similarity of the contents of the script just downloaded to the one here -&gt; </strong><a href="https://packages.gitlab.com/runner/gitlab-ci-multi-runner/install"><strong>Gitlab Runner</strong></a><strong>. The location for the script just downloaded could be found here:</strong></p><pre>$ less /tmp/gl-runner.deb.sh</pre><p><strong>Afterwards, you can go ahead and run the installer with the command:</strong></p><pre>$ sudo bash /tmp/gl-runner.deb.sh</pre><p><strong>And then start the runner with this command:</strong></p><pre>$ sudo apt-get install gitlab-runner</pre><h3>Enable Gitlab Runners</h3><p><strong>In your gitlab’s repository, go to </strong><strong>Settings &gt; CI/CD &gt; Runnersand expand, you should see </strong><strong>Shared Runners.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*oTxwcG3dlJbwfwGPRHCXWA.png" /></figure><p><strong>Disable itfor this project by clicking the disable button. At the left-hand side you should see a title that reads </strong><strong>Set up a specific Runner manually.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FwuyXl8p7R521Sd8P-seDA.png" /></figure><p><strong>Copy the </strong><strong>tokenunder it, head back to your digitalocean server and type the following command:</strong></p><pre>$ sudo gitlab-runner register</pre><p><strong>You will be asked some configuration questions for the runner such as:</strong></p><ul><li>Please enter the gitlab-ci coordinator URL: Enter your repository host name, in our case, <a href="https://gitlab.com/">https://gitlab.com</a></li><li>Please enter the gitlab-ci token for this runner: The tokenyou just copied from the runners page</li><li>Please enter the gitlab-ci description for this runner: The name you want to give to this runner</li><li>Please enter the gitlab-ci tags for this runner (comma separated): You can leave this blank</li><li>Please enter the executor: Type in docker</li><li>Please enter the default Docker image (e.g. ruby:2.1): Type in alpine:latest.</li></ul><p><strong>To check and see if your intallation went succesfully, run:</strong></p><pre>$ sudo gitlab-runner list</pre><p><strong>You should see an output similar to</strong></p><pre>Listing configured runners                          ConfigFile=/etc/gitlab-runner/config.toml<br>example-runner                                      Executor=docker Token=e746250e282d197baa83c67eda2c0b URL=<a href="https://example.com/">https://example.com</a></pre><h3>Test CI</h3><p><strong>In your web browser, you can view the running CI in your gitlab repository, by trying to add a new commit or going to </strong><strong>CI/CD &gt; Pipelineand viewing all your pipelines. If it is still running you might see something like,</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A3Aoxxx509bdXwBviPLbTg.png" /></figure><p><strong>When the CI has run and is successful, it should show this,</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rj5uU9_p7NIBo66Al78qqA.png" /></figure><p><strong>You can click on the first check icon or the </strong><strong>install_dependnciesjob to view the details of the runner</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GEGi9_OraVZiqbFmFUaeXQ.png" /></figure><p><strong>You would notice there is no longer a notice of no runners being available and your CI/CD has built successfully.</strong></p><p><strong>TIP:In your </strong><strong>Virtualhostfile in your site-available, put the site root at `/var/www/{path-to-project}/build because the react production build would be kept in the build folder of the project&#39;s directory.</strong></p><p><strong>Go to the domain of your site and you should see your new commit take effect. Yayy!!! 🎉</strong></p><h3>References</h3><ul><li><a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-continuous-integration-pipelines-with-gitlab-ci-on-ubuntu-16-04">How To Set Up Continuous Integration Pipelines with GitLab CI on Ubuntu 16.04</a></li><li><a href="https://medium.com/@hfally/a-gitlab-ci-config-to-deploy-to-your-server-via-ssh-43bf3cf93775">A gitlab-ci config to deploy to your server via ssh</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1379293751c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tales of my first meetup]]></title>
            <link>https://richard4s.medium.com/tales-of-my-first-meetup-4667867a77d3?source=rss-6f7a4082fa3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4667867a77d3</guid>
            <category><![CDATA[first]]></category>
            <category><![CDATA[go]]></category>
            <category><![CDATA[meetup]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Richard Oluwo]]></dc:creator>
            <pubDate>Tue, 21 Aug 2018 23:49:09 GMT</pubDate>
            <atom:updated>2018-08-22T00:02:36.389Z</atom:updated>
            <content:encoded><![CDATA[<p>Been a developer for 2 or more years, one would think some certain developer traditions would be observed such as using a dark-themed editor or maintaining a <a href="https://en.wikipedia.org/wiki/GitHub">github</a> commit streak. How about a more specific one like going to a gathering of other developers?</p><p>That last bit was something I needed to check off my list. Saturday was the day, 2pm was time, I was going for my first developer meetup officially and it was a <a href="https://en.wikipedia.org/wiki/Go_(programming_language)">Go-lang</a> meetup bummer! Here’s a little side note I majorly write in <a href="https://en.wikipedia.org/wiki/JavaScript">Javascript</a> and <a href="http://www.php.net/">PHP</a> 😬. It’s a developer meetup, true but I don’t even write Go. I mean the language is cool and powerful as far as I’ve been told but its not a language I actually write at work or in my free time, I may have been bored on a particular weekend and decided to complete the <a href="https://golang.org/">Go playground examples</a> but I doubt I looked into the language after that. So the more interesting question here is why the heck did I go?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*mn9ZEImYyU2h2jFxgYpIww.gif" /><figcaption>*stares off into space*</figcaption></figure><p>Well… In my head, I was checking something off my imaginary list but actually a friend of mine was going and I decided to tag along. In fact, I was the one that forced him to go, he’s a very hardcore Go developer because he literally writes nothing else these days other than Go and he was going to speak so yaay!</p><p>A day to the event I slapped out my phone looking for the location to the event, found out it was at Hotels.ng, I thought I was going to finally meet Mark Essien (CEO of Hotels.ng) lol but fate did not allow it. I got to the place and the event started, it wasn’t too long into the talks I figured out I was not the only noob Go developer there, half the people that came weren’t exactly Go developers but obviously were devs from other languages mostly PHP and Javascript because Go as I rightfully said in the meetup “Isn’t exactly a typical entry level language”, so it was a bit of a technical meetup. The speakers in the meetup including the friend of mine who spoke were just tearing into other developers and emphasized on the superiority of Go, I had to do something about that and immediately I stood up and spoke to the moderator about it then the other non-Go developers stood up in alliance with me for the justice of devs who don’t write Go. Actually no, the moderator was more like just deal with it Go is superior.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*Z3CTVjjmde6FnyBKWOkzLQ.gif" /></figure><p>There was a talk about interfaces in Go and using Go for Mobile Application development to enhance application speed. Also, on the web browser for highly web performance web pages with faster load times, using Go to build your own apache or nginx literally and of course, the do’s and and dont’s about Go - the bad parts. How Go is almost 7,000 times faster than PHP (a guy actually googled this and it was the first article to pop up), it was really a sad day for developers not writing Go. There was also a mention of Go not having a package manager like npm because standard Go-lang has everything you would ever need and you might never get to use a library.</p><p>Bottom-line is, the meetup was fun, networking with other developers was also nice and my geeky-antenna was all over the place throwing geek slangs and jokes all through. Seemed like something to be done often.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4667867a77d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>