<?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: prasadkjose</title>
    <description>The latest articles on DEV Community by prasadkjose (@prasadkjose).</description>
    <link>https://dev.to/prasadkjose</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%2F411645%2F108c2804-1c96-4b18-9093-2e2c57da6beb.jpeg</url>
      <title>DEV Community: prasadkjose</title>
      <link>https://dev.to/prasadkjose</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/prasadkjose"/>
    <language>en</language>
    <item>
      <title>Why I Turned My Portfolio Into a Linux Operating System</title>
      <dc:creator>prasadkjose</dc:creator>
      <pubDate>Wed, 29 Apr 2026 22:14:58 +0000</pubDate>
      <link>https://dev.to/prasadkjose/why-i-turned-my-portfolio-into-a-linux-operating-system-2od5</link>
      <guid>https://dev.to/prasadkjose/why-i-turned-my-portfolio-into-a-linux-operating-system-2od5</guid>
      <description>&lt;p&gt;If you want to check out the live demo, please visit &lt;a href="//prasadkjose.com"&gt;https://prasadkjose.com/&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;As someone who loves math, I am a big fan of formulas. I appreciate their structure, universality and idempotency. As developers and engineers, we always follow the same formula for our portfolio websites - a hero section, project cards, contact form and repeat. Let me stress here that there is nothing wrong with this tried and tested formula but I had a couple of months of unemployment, a very bored brain and a deep dislike for LeetCode practicing. So, I turned my portfolio into an interactive Linux desktop experience, complete with terminal style commands, distro inspired themes, draggable windows and a project that showcases both my technical skills and kooky personality. Which is why I built and open-sourced - &lt;a href="https://github.com/prasadkjose/Linux-Portfolio" rel="noopener noreferrer"&gt;Linux-Portfolio&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The big why
&lt;/h2&gt;

&lt;p&gt;I wanted to work on something which is technically challenging, use my 5 years of software engineering expertise and do more than list my education. I wanted it to &lt;em&gt;be&lt;/em&gt; a project. I have been using Linux since as long as I remember. I can go on about the perks of Linux for a long time, especially now that the closed source competitors will charge you monthly for the privilege of using their services. But this is not a blog about Linux. I want you to understand my obsession. I want to create a portfolio that blends software engineering and my favorite OS. The goal was simple: build something that mimics the best software ever built, runs in the browser, and use the patterns I have learnt the last 5 years. So this project became a chance to combine React, TS, StyledComponents, serverless functions, etc into one experience. I believe a portfolio should say something about the person behind it. I wanted mine to reflect my love for Linux and some level of technical depth. So I built one that feels less like a webpage and more like a machine you can explore and interact. &lt;/p&gt;

&lt;p&gt;Once I committed to the idea of creating a Linux-themed portfolio, the end goal became clear to me. It had to be interactive, playful, and still practical enough for recruiters who may not want to spend 20 minutes learning Linux or terminal commands just to find my resume. So the project became a balancing act between creativity and usability. I’ll split the following section into two parts. First, I’ll cover my thought process behind the design flow and UX decisions. For you programming nerds, I’ll explain how I approached the technical decisions in the second part.&lt;/p&gt;

&lt;h2&gt;
  
  
  Designing the Experience
&lt;/h2&gt;

&lt;p&gt;I wanted a desktop-like experience with multiple ways to explore. I wanted a natural flow for different users to interact with the app. Users can click around visually, open windows, navigate like a desktop user, or go full power-user mode through the terminal. Basically:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Casual visitor: clicks icons&lt;/li&gt;
&lt;li&gt;Developer visitor: opens terminal&lt;/li&gt;
&lt;li&gt;Recruiter: views resume right in app with just one click. &lt;/li&gt;
&lt;li&gt;Curious person: gets lost for 45 minutes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One of the most fun parts was developing different Linux-themed UX experiences. I got to play around with colors, feel, and personality. Each distro has its own identity, visual language, and vibe. It’s basically theme switching... but with stronger opinions.&lt;/p&gt;

&lt;p&gt;To make the experience feel like a real GUI operating system, the app needed stateful, persistent, draggable, and interactive windows for different apps. The end goal is to open all of my projects like applications inside the OS. That small detail changes the experience dramatically. It feels less like reading content and more like using software.&lt;/p&gt;

&lt;p&gt;Now here’s the catch: fun interfaces can become slow interfaces very quickly. So I had to pay close attention to keeping the experience smooth, responsive, and usable across screen sizes. Every design decision had to be followed by deliberate performance considerations. Because if your portfolio app takes 9 seconds to load, users may assume your code does too. Unfair? Maybe. Realistic? Absolutely.&lt;/p&gt;




&lt;p&gt;I would really like to list and talk about the tech stack used here and throw in some fancy-sounding technical terms. But I am going to do something different. I will walk though my failures, how I had to fix them, and how I ended up with a half-decent facsimile of the end product that I envisioned.   &lt;/p&gt;

&lt;p&gt;I started with a typical question that plagues every new and experienced engineer starting a new project. Do I start from scratch? Will I be lesser of an engineer if I get some help? Luckily for me, from working at one of the biggest corporations on the planet, I learned that many products are built on top of others—open source or otherwise. Long story short, I decided to fork an existing open-source project and re-engineer the inner mechanics according to my own patterns. After a long search, I found the wonderful &lt;a href="https://github.com/jihedkdiss/Kali-Linux-Hacker-Portfolio" rel="noopener noreferrer"&gt;Kali-Linux-Hacker-Portfolio&lt;/a&gt;. It fit my need for a minimal, performant framework to serve as a foundation for my portfolio. &lt;strong&gt;Full credits&lt;/strong&gt; to the developer for their excellent work and for making it open source.&lt;/p&gt;

&lt;p&gt;Next, I had to decide which features to work on and how to improve it. I looked around the web for ideas, brainstormed with ChatGPT, and explored my favorite distro for inspiration. I ended up with 50+ overwhelming ideas, often conflicting with each other. Each one felt more important than the last. For a moment, I forgot that I had merged thousands of features and fixes in my career, and suddenly I was back to feeling like I was on my first project ever. That’s when reality slapped me with Agile. Why can’t I be agile? I can have Scrum with myself. I love talking to myself.&lt;/p&gt;

&lt;p&gt;I had to start with one issue. I meant that literally. I created my &lt;a href="https://github.com/prasadkjose/Linux-Portfolio/issues/1" rel="noopener noreferrer"&gt;first GitHub Issue&lt;/a&gt; for my portfolio. It was simply to refactor the main App.tsx file, to follow the basic React component structure. What's the famous saying? A tiny drop of water... You know it. Right? This helped me focus and get started on the right track. Every other idea took a back seat. A clear project lifecycle and methodology started forming in my head.&lt;/p&gt;

&lt;p&gt;That's my segue into another issue I often encounter. How do I consistently keep myself motivated to contribute and not let the project rot in my github. The obvious answer seems to be code quality, consistency, and maintainability. There are an overwhelming number of tools for each stage of software &lt;a href="https://www.geeksforgeeks.org/software-engineering/software-development-life-cycle-sdlc/" rel="noopener noreferrer"&gt;SDLC&lt;/a&gt;, so I'll make this part tech stack agnostic. I decided to start with the basics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Linter&lt;/li&gt;
&lt;li&gt;Code formatter&lt;/li&gt;
&lt;li&gt;Hosting and CI/CD&lt;/li&gt;
&lt;li&gt;Version control hooks. &lt;/li&gt;
&lt;li&gt;Documentation tool and structure. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'll list out all specific tools at the end of this blog post. After a month, I became a one-person Agile team. I automated most of the maintenance and deployment noise, so now I can focus mainly on coding and QA. I don't want to dissuade you from setting up a maintainable, scalable project, especially if you are a newbie. My intention was to walk you through the real struggles of an experienced engineer, so you know you’re not alone. Sometimes, working in a team can make you oblivious to the other parts of building software. That's my story of how I set out to build a portfolio website and how I ended up with a lifelong project I can be excited to work on everyday. &lt;/p&gt;

&lt;h2&gt;
  
  
  Summary:
&lt;/h2&gt;

&lt;p&gt;You do not need to build everything from scratch. Using open source foundations wisely is smart engineering, not cheating. Too many ideas can stall progress. Turning ideas into clear GitHub issues creates momentum. Good engineering habits matter even for solo projects: linting, formatting, CI/CD, hooks, and documentation save time later. Even experienced engineers struggle with scope, decision fatigue, and consistency. That is normal. Don't forget. Something is better than nothing. &lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Motivation often comes from structure. Consistency comes from struture. Systems beat moods.&lt;/li&gt;
&lt;li&gt;Side projects can teach ownership skills that team environments sometimes hide.&lt;/li&gt;
&lt;li&gt;A personal project can become more than a portfolio, it can become proof of how you think and build.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Technology Stack-
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fytnce9grx7isi034e8r3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fytnce9grx7isi034e8r3.png" alt=" " width="800" height="875"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>beginners</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Keeping Linux Responsive - Taming the OOM Killer with EarlyOOM</title>
      <dc:creator>prasadkjose</dc:creator>
      <pubDate>Sat, 01 Nov 2025 22:00:39 +0000</pubDate>
      <link>https://dev.to/prasadkjose/keeping-linux-responsive-taming-the-oom-killer-with-earlyoom-14ef</link>
      <guid>https://dev.to/prasadkjose/keeping-linux-responsive-taming-the-oom-killer-with-earlyoom-14ef</guid>
      <description>&lt;center&gt;Ready, Aim, Kill. The Linux hitman that decides what to kill. But is it a dud? &lt;/center&gt;




&lt;p&gt;Here is another, more accurate analogy. Linux kernel's OOM killer is like a firefighter who shows up after the house is already ashes. I am pretty sure it kills something, but your screen is already grey, system is frozen, and those Ctrl+ALT+Del panic smashing is fruitless. &lt;/p&gt;




&lt;h3&gt;
  
  
  Findings
&lt;/h3&gt;

&lt;p&gt;How does the linux kernel choose it's target to kill? &lt;br&gt;
 Let me quote the original kernel method doc for &lt;code&gt;out_of_memory()&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;[!cite] &lt;a href="https://github.com/torvalds/linux/blob/ec0b62ccc986c06552c57f54116171cfd186ef92/mm/oom_kill.c#L1118" rel="noopener noreferrer"&gt;Kernal Doc&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If we run out of memory, we have the choice between either killing a random task (bad), letting the system crash (worse) OR try to be smart about which process to kill. Note that we don't have to be perfect here, we just have to be good.&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;

&lt;p&gt;It chooses a process based on its &lt;em&gt;badness&lt;/em&gt;, a kind of naughty list. &lt;br&gt;
A process is “naughty” if it uses a lot of memory but hasn’t been running long.  It’s important to note that it’s not easy to determine which process to kill.&lt;br&gt;&lt;br&gt;
The OOM killer is partial toward root processes, as they’re assumed to be well-behaved.  If processes have direct access to any hardware, they’re pushed further down the naughty list.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;So why does Linux hang indefinitely when the system runs out of memory?&lt;/em&gt;&lt;br&gt;
In theory, the OOM killer should free up space and fix this, but why doesn’t it? I became curious about this and set out to find why Linux’s default OOM killer doesn’t work as expected.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The big why:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
It turns out that the OOM killer is called by the kernel as the absolute &lt;em&gt;last resort.&lt;/em&gt; It provides no guarantees about the unpredictable state of the system. In reality, the system isn’t truly locked up. It will eventually process the pending tasks, or the OOM killer will finally get enough time to kill a few processes.&lt;br&gt;
So here’s the question I always have when my machine just freezes: Why didn’t the mighty hitman take out a process and unfreeze my system?&lt;br&gt;
It turns out the native OOM killer tries its best to stay away from any processes in &lt;em&gt;userspace.&lt;/em&gt;&lt;br&gt;
Do I have 20 Chrome tabs open, devouring my RAM? Yes.  Will the OOM killer do anything about it? No.&lt;/p&gt;




&lt;p&gt;So here is where the question gets more complicated. On my machine, I expect the OOM killer to terminate a couple of older Chrome tabs. But what about a server? Do you really want to kill your DB and hope that those beautiful schemas remain unaffected? &lt;br&gt;
What about the combustion control system on the International Space Station? What process do we kill there? The last one might have been an hyperbole, but the complexity of the issue remain. &lt;/p&gt;

&lt;p&gt;I know some of you are thinking: &lt;em&gt;what about memory swaps&lt;/em&gt;? It doesn't really help to allocate half of your SSD as swap memory and wait for the processes to crawl along painfully.&lt;/p&gt;

&lt;p&gt;What I needed specifically for my use case was an OOM killer that targets user processes, like those memory hungry Chrome tabs.  If you have gotten this far, I'll assume you have also been in this situation. So, without further ado, let me introduce you to &lt;a href="https://github.com/rfjakob/earlyoom" rel="noopener noreferrer"&gt;Earlyoom&lt;/a&gt;, a simple and solid tool that's written in pure C with absolutely no dependencies. You can read about it in detail on their &lt;a href="https://github.com/rfjakob/earlyoom" rel="noopener noreferrer"&gt;Github&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;This is how it works. Earlyoom monitors available memory(both primary and swap) and when user defined thresholds(default is 10%) are reached, it kills the process consuming the most memory. &lt;/p&gt;

&lt;p&gt;Earlyoom came out as a winner to me among alternatives like Meta's &lt;a href="https://github.com/facebookincubator/oomd" rel="noopener noreferrer"&gt;OOMD&lt;/a&gt; for it's simplicity, easy usage and excellent documentation. &lt;/p&gt;

&lt;p&gt;Did I forget to mention that it checks the memory 10 times per second? It leaves no chances for a frozen system. Guess how much memory it uses for all this? 2MiB total and almost 90% of it is native c libraries that's shared with other processes. &lt;/p&gt;




&lt;h3&gt;
  
  
  Summary
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Linux's kernel is very robust and plans to act when there is a serious issue. sometimes this might take some time or won't yield the results you expect. &lt;/li&gt;
&lt;li&gt;The native OOM killer is built to save your machine or server from many general issues like memory leaks and total collapse.
&lt;/li&gt;
&lt;li&gt;This is where Earlyoom is effective and gets to work before the kernel has to. It's fast, small and efficient and get the job done. &lt;/li&gt;
&lt;li&gt;You can run it as a &lt;code&gt;systemd&lt;/code&gt; service on machine startup and access all it's logs with &lt;code&gt;journalctl&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;You can set up desktop notifications in GUI to know which process was terminated.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Don't worry if your personal computer has only 4 or 8 GB ram. Use Earlyoom to prevent your system being slow or frozen. &lt;/li&gt;
&lt;li&gt;The best solution is the one that acts before you even notice the issue. &lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Commands to Remember
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Installation - &lt;/span&gt;
&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;earlyoom

&lt;span class="c"&gt;# Make sure it's running as a systemd service&lt;/span&gt;
&lt;span class="nb"&gt;sudo &lt;/span&gt;systemctl status earlyoom

&lt;span class="c"&gt;# If it's not, start it as a systemd service&lt;/span&gt;
&lt;span class="nb"&gt;sudo &lt;/span&gt;systemctl &lt;span class="nb"&gt;enable&lt;/span&gt; &lt;span class="nt"&gt;--now&lt;/span&gt; earlyoom

&lt;span class="c"&gt;# Check logs&lt;/span&gt;
&lt;span class="nb"&gt;sudo &lt;/span&gt;journalctl &lt;span class="nt"&gt;-u&lt;/span&gt; earlyoom | &lt;span class="nb"&gt;grep&lt;/span&gt; &amp;lt;process name/pid or SIGTERM to see terminated process&amp;gt;

&lt;span class="c"&gt;# Change threshold from default 10% to 20%, &lt;/span&gt;
&lt;span class="c"&gt;# edit /etc/default/earlyoom config file and set line to&lt;/span&gt;
&lt;span class="nv"&gt;EARLYOOM_ARGS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"-m 20"&lt;/span&gt;

&lt;span class="c"&gt;# Set a preferred process to kill over others. &lt;/span&gt;
&lt;span class="c"&gt;#EARLYOOM_ARGS="-m 20 --prefer '(^|/)(java|chromium)$'"&lt;/span&gt;

&lt;span class="c"&gt;# Avoid any critical process like db to be killed by earlyoom&lt;/span&gt;
&lt;span class="nv"&gt;EARLYOOM_ARGS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"-m 20--avoid '(^|/)(sql)&lt;/span&gt;&lt;span class="nv"&gt;$'&lt;/span&gt;&lt;span class="s2"&gt; --prefer '(^|/)(java|chromium)&lt;/span&gt;&lt;span class="nv"&gt;$'&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Nerd Score
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Coolness:&lt;/strong&gt; 🔥🔥🔥🔥&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Effort:&lt;/strong&gt; 🔨&lt;/li&gt;
&lt;/ol&gt;




&lt;ol&gt;
&lt;li&gt;Do you prefer the native linux kernel or a different OOM Killer? &lt;/li&gt;
&lt;li&gt;Do you have a different strategy to prevent your system from freezing? &lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Sources:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://github.com/rfjakob/earlyoom" rel="noopener noreferrer"&gt;https://github.com/rfjakob/earlyoom&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.kernel.org/doc/gorman/html/understand/understand016.html" rel="noopener noreferrer"&gt;https://www.kernel.org/doc/gorman/html/understand/understand016.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://chrisdown.name/2018/01/02/in-defence-of-swap.html" rel="noopener noreferrer"&gt;https://chrisdown.name/2018/01/02/in-defence-of-swap.html&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>linux</category>
      <category>programming</category>
      <category>opensource</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
