<?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 Ramisha Gimhana on Medium]]></title>
        <description><![CDATA[Stories by Ramisha Gimhana on Medium]]></description>
        <link>https://medium.com/@rmi99?source=rss-7f8a2a397ca3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*GfmuQ60HPWTaZx9f</url>
            <title>Stories by Ramisha Gimhana on Medium</title>
            <link>https://medium.com/@rmi99?source=rss-7f8a2a397ca3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:05:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rmi99/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 Rockstar Games Estimated and Delivered a 13-Year Software Behemoth Without Imploding]]></title>
            <link>https://rmi99.medium.com/how-rockstar-games-estimated-and-delivered-a-13-year-software-behemoth-without-imploding-caf77423d3fb?source=rss-7f8a2a397ca3------2</link>
            <guid isPermaLink="false">https://medium.com/p/caf77423d3fb</guid>
            <category><![CDATA[estimations]]></category>
            <category><![CDATA[gaming]]></category>
            <category><![CDATA[gta-6]]></category>
            <dc:creator><![CDATA[Ramisha Gimhana]]></dc:creator>
            <pubDate>Fri, 20 Nov 2026 07:25:18 GMT</pubDate>
            <atom:updated>2026-11-20T07:25:18.834Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cALFh85R0ZJ5Iwv4sAoR-A.jpeg" /><figcaption>How Rockstar Games Estimated and Delivered a 13-Year Software Behemoth Without Imploding</figcaption></figure><h3>With Grand Theft Auto VI finally hitting consoles after a 13-year gap, here is what software engineers, DevOps teams, and tech leaders can learn about long-horizon estimation, scope control, and shipping at scale.</h3><p>On November 19, 2026, <em>Grand Theft Auto VI</em> officially launched on PlayStation 5 and Xbox Series X/S — landing thirteen years after <em>GTA V</em> first debuted in 2013.</p><p>In the software world, a 13-year gap between major releases sounds like a cautionary tale of scope creep, missed sprints, and runaway technical debt. Yet Rockstar Games didn’t just survive that timeline; they turned it into one of the most anticipated and polished software launches in entertainment history.</p><p>When engineers look at a timeline that spans more than a decade, the natural question is: <strong>How do you possibly estimate a project that big and actually deliver it?</strong></p><p>The short answer is that Rockstar didn’t estimate a 13-year project on Day 1. Instead, their engineering and product lifecycle reveals five disciplined principles that any modern software organization can apply.</p><h3>1. They Didn’t Scale the Team Until the Foundation Was Ready</h3><p>A common misconception is that thousands of developers spent 13 uninterrupted years building <em>GTA VI</em>. In reality, software projects of this magnitude require staged resource allocation.</p><p>Following <em>GTA V</em> in 2013, Rockstar’s primary engineering muscle went into shipping <em>Red Dead Redemption 2</em> (<em>RDR2</em>) in 2018. While early pre-production and world-building concepts for <em>GTA VI</em> began around 2014, full-scale production didn’t ramp up until <em>RDR2</em> was out the door.</p><p><strong>The Engineering Lesson:</strong> Prematurely throwing headcount at an undefined architecture creates coordination overhead, not velocity. Keep a lean core team during discovery and pre-production, and scale your engineering force only after your previous flagship deliverable is stable.</p><h3>2. No External Deadlines During the “Unknown Unknowns” Phase</h3><p>In enterprise software and SaaS, teams routinely commit to hard release dates before the hardest architectural problems have even been prototyped. Once that external date is locked in, quality becomes the variable that gets sacrificed.</p><p>Rockstar inverted that model. They stayed completely silent for nearly a decade, waiting until December 2023 — when the core game was already largely built — to drop their first official reveal. Even after setting initial release windows (shifting from a broad 2025 target to May 26, 2026, and ultimately locking in November 19, 2026), every adjustment was made late in the lifecycle specifically to protect final polish and performance.</p><p><strong>The Engineering Lesson:</strong> Accurate estimation is impossible when 60% of your system is still theoretical. Delay hard external commitments until your core architecture is feature-complete and your remaining backlog consists of predictable stabilization and optimization work.</p><h3>3. Compounding Returns on Internal Tooling (The RAGE Engine)</h3><p>Building a sprawling, reactive open world like the state of Leonida from scratch would have made a seven- or eight-year production cycle impossible. Instead, Rockstar relied on continuous, iterative evolution of their proprietary <strong>RAGE (Rockstar Advanced Game Engine)</strong>.</p><p>The breakthroughs built for <em>Red Dead Redemption 2</em> — advanced NPC AI routines, dynamic weather physics, volumetric lighting, and dense ecosystem simulations — weren’t treated as throwaway project code. They became the baseline infrastructure for <em>GTA VI</em>.</p><p><strong>The Engineering Lesson:</strong> Treating internal platforms, CI/CD pipelines, and core libraries as first-class products pays massive compound interest. When your internal platform matures with every release, your engineers spend their cycles building new features rather than rebuilding plumbing.</p><h3>4. Global Studios Operating as a Single Unified Pipeline</h3><p>Rockstar Games isn’t a single office; it is a distributed network spanning Rockstar North, New York, San Diego, India, Toronto, and beyond. Rather than splitting studios into isolated silos with conflicting priorities, Rockstar operates them as a unified development pipeline contributing to one cohesive build.</p><p>At this scale, build automation, asset pipelines, version control hygiene, and cross-timezone handoffs become just as critical as writing the code itself.</p><p><strong>The Engineering Lesson:</strong> Distributed engineering only scales when teams share unified tooling, clear ownership boundaries, and automated integration pipelines. Without strong DevOps and release engineering practices, global headcount simply multiplies integration bottlenecks.</p><h3>5. Financial Runway Protects Engineering Integrity</h3><p>Even the best engineering culture will crumble if leadership forces an unfinished product out the door to hit a quarterly revenue target. Backed by parent company Take-Two Interactive and fueled by the sustained, multi-billion-dollar cash flow of <em>GTA Online</em>, Rockstar had the financial runway to say “not yet” when the product needed extra months of refinement.</p><p>When they pushed the release from May 2026 to November 2026, they explicitly cited the need to polish and perfect the experience rather than shipping a compromised Day-1 build.</p><p><strong>The Engineering Lesson:</strong> Technical excellence requires business alignment. Whether through sustainable revenue or realistic stakeholder expectations, protecting buffer time for QA, load testing, and bug fixing is what separates iconic launches from Day-1 disaster patches.</p><h3>Final Thoughts</h3><p>We often treat software estimation like fortune-telling — demanding exact delivery dates before a single line of production code is written.</p><p>Rockstar’s 13-year journey to <em>GTA VI</em> proves that world-class delivery isn’t about predicting the future from Day 1. It’s about sequencing your focus, building on battle-tested internal platforms, keeping external commitments quiet until the architecture is solid, and giving engineers the space to finish the job right.</p><p><em>If you found this breakdown useful, follow for more articles on software architecture, DevOps workflows, and large-scale engineering leadership.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=caf77423d3fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fixing TimeCamp crashing when you click on Chrome (Ubuntu / Linux)]]></title>
            <link>https://rmi99.medium.com/fixing-timecamp-crashing-when-you-click-on-chrome-ubuntu-linux-e6d53476b11d?source=rss-7f8a2a397ca3------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6d53476b11d</guid>
            <dc:creator><![CDATA[Ramisha Gimhana]]></dc:creator>
            <pubDate>Wed, 04 Nov 2026 05:09:58 GMT</pubDate>
            <atom:updated>2026-11-04T05:09:58.082Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NpwudLB0R1kycoL0oPnUTg.png" /></figure><p><strong>Applies to:</strong> TimeCamp desktop 1.9.5.1-prod-deeplink · Ubuntu 26.04 (Wayland) · Google Chrome, Edge or Brave <strong>Status:</strong> Workaround tested and working (2026–11–04)</p><h3>The problem</h3><p>TimeCamp closes the moment a Chrome window becomes active, for example when you click inside Chrome. Run from a terminal, it ends with:</p><pre>Received fatal signal: SIGSEGV(11)<br>segmentation fault (core dumped)  timecamp</pre><h3>Why it happens</h3><p>When a browser window is active, TimeCamp tries to find out which website you’re on. It doesn’t ask the browser. Instead it <strong>reads Chrome’s internal session files</strong> directly from disk:</p><pre>~/.config/google-chrome/&lt;Profile&gt;/Sessions/Session_*   (open tabs)<br>~/.config/google-chrome/&lt;Profile&gt;/Sessions/Tabs_*      (recently closed tabs)</pre><p>The crash log, with addresses resolved using addr2line, shows exactly where it fails:</p><pre>WGatheringThread::InternalEntry<br> → UForegroundApp::getActiveAppWayland<br>  → ChromeUtils::getCurrentURL<br>   → ChromeUtils::getCurrentURLFromSession<br>    → read_session_file<br>     → read_next_session_command<br>      → read_string16        ← crash</pre><p>read_string16 reads a tab&#39;s title. It takes the title length from the file and <strong>trusts it without checking</strong>. It then reserves that much memory on the stack. These files use Chrome&#39;s private format, which changes between Chrome versions. When the parser lands on a record it doesn&#39;t understand, the &quot;length&quot; is garbage, for example about 1.8 billion characters. The program runs out of stack and crashes.</p><p>Whether it crashes depends on what’s in your tabs at that moment, which is why it seemed to happen “from time to time”.</p><blockquote><em>The </em><em>wxsqlite ... bad parameter or other API misuse lines at the end of the log are </em><strong><em>not</em></strong><em> the cause. They are TimeCamp trying to save its state after it has already crashed.</em></blockquote><h3>Things that did not fix it permanently</h3><ul><li><strong>Deleting or moving the session files.</strong> That helped for a minute, but Chrome rewrites them constantly, so the crash came back.</li><li><strong>Settings in the TimeCamp app.</strong> Window-title collection is set by the company account, so you can’t turn it off locally.</li></ul><h3>The fix: hide the browser folders from TimeCamp only</h3><p>Run TimeCamp inside a lightweight <strong>bubblewrap</strong> sandbox (bwrap, installed by default on Ubuntu). TimeCamp sees everything as normal, <strong>except</strong> the Chrome, Edge and Brave profile folders, which appear empty to it. It finds no session files to parse, so it can&#39;t crash.</p><ul><li>Chrome, your tabs and your profiles are <strong>not touched</strong>. Only TimeCamp’s view changes.</li><li>TimeCamp still tracks time, active applications, window titles, idle time and screenshots.</li><li>The one thing lost: TimeCamp <strong>won’t record exact Chrome URLs</strong>. The window title, usually the page title, is still recorded. If your company relies on URL tracking, let your TimeCamp admin know.</li></ul><h3>Step 1: Create the launcher</h3><p>Save this as ~/.local/bin/timecamp-safe:</p><pre>#!/bin/sh<br># Start TimeCamp with Chromium-browser profile folders hidden (shown as empty)<br>args=&quot;--dev-bind / /&quot;<br>for d in &quot;$HOME/.config/google-chrome&quot; &quot;$HOME/.config/microsoft-edge&quot; \<br>         &quot;$HOME/.config/BraveSoftware&quot; &quot;$HOME/.config/chromium&quot;; do<br>  [ -d &quot;$d&quot; ] &amp;&amp; args=&quot;$args --tmpfs $d&quot;<br>done<br>exec /usr/bin/bwrap $args -- /usr/bin/timecamp &quot;$@&quot;</pre><p>Make it executable:</p><pre>chmod +x ~/.local/bin/timecamp-safe</pre><p>What the bwrap options mean:</p><p>OptionMeaning--dev-bind / /Give TimeCamp the normal filesystem--tmpfs &lt;dir&gt;Replace this one folder with an empty in-memory one, for TimeCamp only</p><h3>Step 2: Use it from the app menu and at login</h3><pre>mkdir -p ~/.local/share/applications<br>sed &quot;s|^Exec=.*|Exec=$HOME/.local/bin/timecamp-safe %u|&quot; \<br>    /usr/share/applications/timecamp.desktop &gt; ~/.local/share/applications/timecamp.desktop<br>sed &quot;s|^Exec=.*|Exec=$HOME/.local/bin/timecamp-safe %u|&quot; \<br>    /usr/share/applications/timecamp.desktop &gt; ~/.config/autostart/timecamp.desktop</pre><ul><li>~/.local/share/applications/timecamp.desktop overrides the app-menu icon for your user.</li><li>~/.config/autostart/timecamp.desktop is what starts TimeCamp at login.</li></ul><h3>Step 3: Restart TimeCamp</h3><p>Quit TimeCamp from its tray menu, then start it again from the app menu, or run ~/.local/bin/timecamp-safe &amp;.</p><h3>Check that it worked</h3><p>Click around in Chrome for a minute, then:</p><pre>pgrep -a timecamp          # still running?<br>grep -c &quot;Looking for chrome&quot; &quot;$(ls -t ~/.timecamp/TimeCamp.g3log.*.log | head -1)&quot;</pre><p>If TimeCamp is still running and the count is above zero, it checked Chrome and survived.</p><h3>After a TimeCamp update</h3><p>TimeCamp may rewrite its autostart file on startup. If the crashes come back after a reboot or an update, check it:</p><pre>grep Exec ~/.config/autostart/timecamp.desktop</pre><p>If it says /usr/bin/timecamp again, repeat Step 2.</p><h3>How to undo</h3><pre>rm ~/.local/share/applications/timecamp.desktop ~/.local/bin/timecamp-safe<br>cp /usr/share/applications/timecamp.desktop ~/.config/autostart/timecamp.desktop</pre><h3>Report it to TimeCamp</h3><p>This is a bug in TimeCamp, and only they can fix it properly. Suggested message:</p><blockquote><em>TimeCamp 1.9.5.1-prod-deeplink on Ubuntu 26.04 (Wayland) segfaults whenever a Chrome window is focused. The stack is </em><em>getActiveAppWayland → ChromeUtils::getCurrentURLFromSession → read_session_file → read_next_session_command → read_string16. </em><em>read_string16 uses the string length from the SNSS file without checking it against the command payload size. With current Chrome session files (including </em><em>Tabs_* files, where command id 6 is </em><em>SetExtensionAppID), that length is garbage (~1.8e9) and the stack allocation overflows. Please bounds-check string lengths and skip unknown commands.</em></blockquote><p>Attach the crash log from ~/.timecamp/ and the timecamp_dbgrpt-*.zip crash report from /tmp (copy it first; /tmp is cleared on reboot).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6d53476b11d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Next.js 16: Why It’s a Game-Changer for Modern Web Apps]]></title>
            <link>https://rmi99.medium.com/next-js-16-why-its-a-game-changer-for-modern-web-apps-d5b872ca9743?source=rss-7f8a2a397ca3------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5b872ca9743</guid>
            <dc:creator><![CDATA[Ramisha Gimhana]]></dc:creator>
            <pubDate>Mon, 10 Nov 2025 11:34:14 GMT</pubDate>
            <atom:updated>2025-11-10T11:34:14.330Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/237/1*EFXSF5z1iDYo4UPfcMYY3g.png" /></figure><p>In late 2025, the <strong>Next.js 16 release</strong> reshaped how developers build, scale, and optimize web applications. Already a powerhouse in the React ecosystem, Next.js continues to push boundaries — balancing <strong>developer experience</strong>, <strong>performance</strong>, and <strong>future-ready architecture</strong>.</p><p>With this version, the Vercel-backed framework doubles down on speed, scalability, and simplicity, solidifying its reputation as one of the <strong>most reliable frameworks for modern web development</strong>.</p><h3>🚀 What’s New in Next.js 16</h3><p>The latest release brings several upgrades that elevate both the performance and workflow of modern React development.</p><h3>1. Turbopack Becomes the Default Bundler</h3><p>Next.js 16 now ships with <strong>Turbopack</strong> as the default bundler for all new projects. The results are jaw-dropping:</p><ul><li><strong>5–10× faster Fast Refresh</strong></li><li><strong>2–5× faster development builds</strong></li></ul><p>By harnessing Rust-based compilation, Turbopack replaces Webpack with near-instant updates during development — ideal for large apps and monorepos.</p><h3>2. Cache Components &amp; Partial Pre-Rendering (PPR)</h3><p>This is where Next.js blurs the line between <strong>static</strong> and <strong>dynamic</strong>.<br> PPR allows developers to pre-render part of a page while dynamically fetching other data on demand — making navigation feel instantaneous. Combined with <strong>Cache Components</strong>, users experience <strong>lightning-fast transitions</strong> even on data-heavy apps.</p><h3>3. Advanced Caching APIs</h3><p>Fine-grained cache controls are now first-class citizens. Developers can assign <strong>cache tags</strong>, perform <strong>selective invalidation</strong>, and merge static performance with dynamic freshness.<br> This upgrade brings caching precision once reserved for complex infrastructures — now built right into Next.js.</p><h3>4. Enhanced Routing and Prefetch Logic</h3><p>Routing gets smarter.<br> Next.js 16 introduces <strong>layout deduplication</strong> and <strong>incremental prefetching</strong>, ensuring only necessary assets load. This results in noticeably faster transitions and smaller bundles — without changing any app logic.</p><h3>5. React Compiler &amp; React 19 Integration</h3><p>Next.js 16 natively supports <strong>React Compiler</strong>, enabling automatic memoization and compatibility with <strong>React 19’s latest features</strong>.<br> The integration means developers get more out of React — without writing extra hooks or boilerplate code.</p><h3>6. File System Caching &amp; Faster Cold Starts</h3><p>Large projects benefit from a new <strong>file system caching layer</strong>, improving startup time dramatically — especially for monorepos or enterprise apps.</p><h3>7. Stronger TypeScript Support</h3><p>TypeScript developers get better inference, faster builds, and tighter integration with ESLint and VSCode — enhancing the developer experience for teams large and small.</p><h3>⚡ Real-World Benefits</h3><h3>SEO That Works Out of the Box</h3><p>With a combination of <strong>server-side rendering (SSR)</strong>, <strong>static generation</strong>, and <strong>metadata management</strong>, Next.js 16 ensures content-rich websites rank higher and load faster.</p><p>For example, e-commerce platforms can pre-render product listings while keeping inventory data live, giving users both <strong>speed and accuracy</strong>.</p><h3>Performance That Feels Instant</h3><p>From image optimization to automatic code splitting, Next.js continues to lead in <strong>runtime efficiency</strong>. Partial pre-rendering and advanced prefetch logic make even complex apps — like SaaS dashboards or news portals — feel native-level fast.</p><h3>Scalability and Modularity</h3><p>Next.js 16 fits everything — from startups launching MVPs to enterprises handling millions of requests per day. Its <strong>hybrid rendering</strong> model means you can mix SSR, ISR, static, and now <strong>PPR</strong> within the same project.</p><h3>💡 Developer Experience: Polished and Productive</h3><p>Next.js 16 isn’t just fast for users — it’s faster for developers, too.<br> Hot reloading through Turbopack, improved TypeScript ergonomics, and file system caching keep iteration loops tight. Teams upgrading from previous versions will find the <strong>migration path smooth</strong>, with minimal breaking changes.</p><p>Developers now get to focus on <strong>building features</strong>, not configuring tooling.</p><h3>🧭 When (and Why) to Choose Next.js</h3><p>Choose <strong>Next.js 16</strong> if you want:</p><ul><li>Performance without sacrificing flexibility</li><li>Built-in SEO optimization for content-driven apps</li><li>A seamless developer experience with React 19 support</li><li>The ability to scale from prototypes to enterprise systems</li></ul><p>However, smaller static-only sites might still prefer lighter solutions like <strong>Astro</strong> or <strong>Eleventy</strong>. But for apps combining dynamic interactivity and performance, Next.js 16 reigns supreme.</p><h3>🔮 The Future of Web Development with Next.js</h3><p>The web ecosystem evolves fast — but Next.js has shown it can evolve faster. With Turbopack, React Compiler integration, and next-gen caching APIs, <strong>Next.js 16 is more than an upgrade — it’s a redefinition of what “modern web” means</strong>.</p><p>Whether you’re building an e-commerce empire, a SaaS dashboard, or a personal portfolio, investing in Next.js means investing in <strong>speed, stability, and sustainability</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5b872ca9743" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Ubuntu AppArmor: Enable on Startup + Fix Docker & Chrome Errors]]></title>
            <link>https://rmi99.medium.com/ubuntu-apparmor-enable-on-startup-fix-docker-chrome-errors-8713b8feec5a?source=rss-7f8a2a397ca3------2</link>
            <guid isPermaLink="false">https://medium.com/p/8713b8feec5a</guid>
            <dc:creator><![CDATA[Ramisha Gimhana]]></dc:creator>
            <pubDate>Wed, 08 Oct 2025 03:16:49 GMT</pubDate>
            <atom:updated>2025-10-08T03:17:59.952Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a <strong>post</strong> on how to configure <strong>AppArmor in Ubuntu with Docker and Chrome</strong>, ensuring it runs on system startup. It’s written in a clean format ideal for sharing on Blogspot, Medium, or technical blogs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FFFkVWL8_Pf1F7qE.jpg" /></figure><h3>What is AppArmor?</h3><p><strong>AppArmor (Application Armor)</strong> is a <strong>Linux kernel-level security module</strong> used in Ubuntu and other Debian-based systems. It controls what programs can or cannot do, using a system of “profiles” that define permissions.</p><p>Instead of reacting to malicious behavior, it <strong>prevents it from the start</strong> by restricting what each program can access.</p><p>Sometimes, applications like <strong>Docker</strong> and <strong>Google Chrome/Chromium</strong> may <strong>clash</strong> with AppArmor, resulting in security denials. If you’re using Ubuntu and see messages like:</p><pre>apparmor=&quot;DENIED&quot; operation=&quot;userns_create&quot; ...<br>docker: Error response from daemon: AppArmor profile could not be loaded...<br>[FATAL:zygote_host_impl_linux.cc] No usable sandbox!</pre><p>…then you’re probably facing an AppArmor-related issue.</p><p>In this post, we’ll explore:</p><ul><li>Why these errors happen</li><li>How to ensure AppArmor runs correctly on system startup</li><li>How to fix common AppArmor conflicts with Docker and Chrome</li></ul><h3>🧠 What is AppArmor?</h3><ul><li><strong>AppArmor = Application Armor</strong></li><li>A <strong>Mandatory Access Control (MAC)</strong> system built into the Linux kernel</li><li>Instead of reacting to attacks, it <strong>prevents them by enforcing profiles</strong></li><li>Profiles define what a given program <strong>is allowed or not allowed</strong> to do</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8uzEote2EsirXC98.png" /></figure><h3>⚠️ Common AppArmor Errors with Docker &amp; Chrome</h3><h3>🐳 Docker:</h3><p>By default, Docker containers use the docker-default AppArmor profile, which can:</p><ul><li>Block certain syscalls (like ptrace, mount)</li><li>Deny unprivileged namespace creation</li><li>Block signals (like SIGKILL)</li></ul><p><strong>Example:</strong></p><pre>docker run hello-world</pre><p><strong>Possible error:</strong></p><pre>Error response from daemon: AppArmor profile could not be loaded: permission denied</pre><h4>Fix for Docker:</h4><pre>docker run --security-opt apparmor=unconfined ubuntu</pre><p>This disables AppArmor for that container, preventing the conflict.</p><h3>🌐 Google Chrome / Chromium:</h3><p>Chrome uses its own <strong>sandboxing mechanism</strong> (chrome-sandbox) that relies on:</p><ul><li>User namespaces</li><li>seccomp</li><li>A setuid helper</li></ul><p>Some Ubuntu kernels restrict this through AppArmor.</p><h4>Error:</h4><pre>[FATAL:zygote_host_impl_linux.cc] No usable sandbox!</pre><h4>Fix:</h4><ol><li>Disable AppArmor user namespace restriction temporarily:</li></ol><pre>echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns</pre><ol><li>To disable it permanently:</li></ol><pre>echo &quot;kernel.apparmor_restrict_unprivileged_userns = 0&quot; | sudo tee /etc/sysctl.d/99-apparmor.conf<br>sudo sysctl --system</pre><h3>🔄 How to Enable AppArmor at System Startup (Step-by-Step)</h3><p>Ubuntu usually has AppArmor enabled by default. But if you’ve disabled it or need to ensure custom profiles load at startup, follow these steps.</p><h3>✅ 1. Check if AppArmor is Active</h3><p>Run:</p><pre>sudo apparmor_status</pre><p>If you see:</p><pre>apparmor module is loaded.</pre><p>You’re good. Otherwise, move to the next step.</p><h3>✅ 2. Enable AppArmor via GRUB Bootloader</h3><p>Edit the GRUB config:</p><pre>sudo nano /etc/default/grub</pre><p>Look for this line:</p><pre>GRUB_CMDLINE_LINUX_DEFAULT=&quot;quiet splash&quot;</pre><p>Change it to:</p><pre>GRUB_CMDLINE_LINUX_DEFAULT=&quot;quiet splash apparmor=1 security=apparmor&quot;</pre><p>Save and exit (Ctrl + O, then Ctrl + X), then update GRUB:</p><pre>sudo update-grub<br>sudo reboot</pre><h3>✅ 3. Enable the AppArmor System Service</h3><p>Run:</p><pre>sudo systemctl enable apparmor<br>sudo systemctl start apparmor</pre><p>Check status:</p><pre>systemctl status apparmor</pre><h3>✅ 4. Load a Custom AppArmor Profile at Startup (Optional)</h3><p>If you have your own profile:</p><ol><li>Copy it to /etc/apparmor.d/:</li></ol><pre>sudo cp my-profile /etc/apparmor.d/</pre><ol><li>Load it manually:</li></ol><pre>sudo apparmor_parser -r /etc/apparmor.d/my-profile</pre><ol><li>To load it automatically on boot, create a systemd unit:</li></ol><pre>sudo nano /etc/systemd/system/load-apparmor-profile.service</pre><p>Paste this:</p><pre>[Unit]<br>Description=Load custom AppArmor profile<br>After=apparmor.service<br>Requires=apparmor.service</pre><pre>[Service]<br>Type=oneshot<br>ExecStart=/sbin/apparmor_parser -r /etc/apparmor.d/my-profile</pre><pre>[Install]<br>WantedBy=multi-user.target</pre><p>Then reload and enable:</p><pre>sudo systemctl daemon-reload<br>sudo systemctl enable load-apparmor-profile</pre><h3>🧪 Verifying the Setup</h3><p>After a reboot:</p><pre>sudo reboot</pre><p>Then run:</p><pre>sudo apparmor_status<br>sudo aa-status</pre><p>Make sure your custom profile is loaded.</p><h3>📝 Common Errors &amp; Quick Fixes</h3><p>Error Cause Fix AppArmor profile could not be loaded AppArmor parser not found sudo apt install apparmor apparmor-utils DENIED: userns_create Chrome sandbox blocked Disable apparmor_restrict_unprivileged_userns Docker signals blocked Default profile too strict Use --security-opt apparmor=unconfined Chrome fails to launch Sandbox conflict Use --no-sandbox or adjust AppArmor namespace flag</p><h3>🔚 In Summary</h3><ul><li>AppArmor is a core security feature in Ubuntu.</li><li>Applications like Docker and Chrome may conflict with its strict profiles.</li><li>You can fix common issues by relaxing AppArmor for certain apps or modifying kernel options.</li><li>For full control, use <strong>systemd services</strong> to load custom profiles at boot.</li></ul><p>If you need an <strong>automation script</strong>, a <strong>Docker-specific configuration</strong>, or a <strong>YouTube script</strong>, feel free to ask.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8713b8feec5a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Setting Up a GitHub Self-Hosted Runner on EC2 with systemd — The Complete Guide (with 404 Fix)]]></title>
            <link>https://rmi99.medium.com/setting-up-a-github-self-hosted-runner-on-ec2-with-systemd-the-complete-guide-with-404-fix-8f19a50bfeea?source=rss-7f8a2a397ca3------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f19a50bfeea</guid>
            <dc:creator><![CDATA[Ramisha Gimhana]]></dc:creator>
            <pubDate>Fri, 20 Jun 2025 10:30:40 GMT</pubDate>
            <atom:updated>2025-06-20T10:30:40.874Z</atom:updated>
            <content:encoded><![CDATA[<h3>🚀 Setting Up a GitHub Self-Hosted Runner on EC2 with systemd — The Complete Guide (with 404 Fix)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K3z1mgNRLw6aMtkIPhcSwA.png" /></figure><p>Self-hosted runners give you control and flexibility for CI/CD pipelines — whether you want faster builds, custom environments, or to avoid GitHub-hosted runner limitations.</p><p>In this article, I’ll walk you through:</p><p>✅ How to properly install and configure a GitHub self-hosted runner<br> ⚙️ How to register it with systemd for automatic startup<br> 🛠 How to avoid the infamous 404 (Not Found) GitHub registration error<br> 📌 How to clean up and reconfigure properly</p><h3>🧰 Prerequisites</h3><ul><li>A Linux server (e.g. EC2 instance)</li><li>systemd available (systemctl command exists)</li><li>A GitHub repository or organization</li><li>A <strong>valid runner registration token</strong></li></ul><h3>⚙️ Step-by-Step Setup</h3><h3>1. Clone the GitHub Actions Runner Binary</h3><pre>mkdir ~/website-runner &amp;&amp; cd ~/website-runner<br>curl -O -L https://github.com/actions/runner/releases/download/v2.325.0/actions-runner-linux-x64-2.325.0.tar.gz<br>tar xzf ./actions-runner-linux-x64-2.325.0.tar.gz</pre><h3>2. Register the Runner</h3><p>Run:</p><pre>./config.sh --url https://github.com/&lt;YOUR REPO&gt;website --token &lt;YOUR_TOKEN&gt;</pre><h4>🛑 Got this error?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iIPPr5-Xa8PyTrPIxNC4Jg.png" /></figure><pre>Http response code: NotFound from &#39;POST https://api.github.com/actions/runner-registration&#39;<br>{&quot;message&quot;:&quot;Not Found&quot;,&quot;documentation_url&quot;:&quot;https://docs.github.com/rest&quot;,&quot;status&quot;:&quot;404&quot;}</pre><h3>✅ How to fix the 404 error:</h3><p>This usually means one of the following:</p><ul><li>🔐 <strong>Invalid token</strong>: Make sure the token is freshly copied from GitHub.</li><li>🧭 <strong>Wrong </strong><strong>--url</strong>: Use a full <strong>repo URL</strong>, like:</li><li>✅ Correct: https://github.com/&lt;Your_ORG_/_USERNAME&gt;/website<br> ❌ Wrong: <a href="https://github.com/increast-team">https://github.com/</a>&lt;Your ORG / USERNAME&gt;</li></ul><p>You must generate a token <strong>from the <em>target repo</em></strong> or organization’s <strong>Settings &gt; Actions &gt; Runners</strong>.</p><h3>3. Test the Runner</h3><pre>./run.sh</pre><p>You should see:</p><pre>√ Connected to GitHub<br>Listening for Jobs</pre><p>Stop it with Ctrl+C.</p><h3>🧠 Optional: Clean Up a Broken Runner</h3><p>Before re configuring, clean previous configs:</p><pre>rm -f .runner .credentials .env<br>rm -rf _work _temp _diag</pre><p>Then re-run ./config.sh.</p><h3>🔁 Set Up with systemd</h3><p>Create a service file:</p><pre>sudo nano /etc/systemd/system/website-runner.service</pre><p>Paste this:</p><pre>[Unit]<br>Description=GitHub Runner<br>After=network.target</pre><pre>[Service]<br>ExecStart=/home/ec2-user/website-runner/run.sh<br>WorkingDirectory=/home/ec2-user/website-runner<br>User=ec2-user<br>Restart=always</pre><pre>[Install]<br>WantedBy=multi-user.target</pre><h3>✅ Enable and Start the Runner Service</h3><pre>sudo systemctl daemon-reload<br>sudo systemctl enable website-runner.service<br>sudo systemctl start website-runner.service</pre><p>Check status:</p><pre>sudo systemctl status website-runner.service</pre><p>Watch logs:</p><pre>sudo journalctl -u website-runner -f</pre><h3>🧼 Disable / Remove the Runner</h3><p>To disable:</p><pre>sudo systemctl stop website-runner.service<br>sudo systemctl disable website-runner.service</pre><p>To remove:</p><pre>./config.sh remove<br>rm -f .runner .credentials .env<br>rm -rf _work _temp _diag</pre><h3>🎉 Conclusion</h3><p>You now have a robust, systemd-managed GitHub self-hosted runner on EC2.<br> This setup allows background running, auto-start on boot, and easy observability with journalctl.</p><h3>✍️ Pro Tips</h3><ul><li>Always double-check the --url and token source</li><li>Use run.sh for testing, then switch to systemd</li><li>Store a copy of your website-runner.service for easy redeploys</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f19a50bfeea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ How to Host a Secure Static Website Using AWS CloudFront, ACM, and S3 (IaC Way)]]></title>
            <link>https://rmi99.medium.com/how-to-host-a-secure-static-website-using-aws-cloudfront-acm-and-s3-iac-way-3d0a00ed3f87?source=rss-7f8a2a397ca3------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d0a00ed3f87</guid>
            <dc:creator><![CDATA[Ramisha Gimhana]]></dc:creator>
            <pubDate>Fri, 30 May 2025 09:44:01 GMT</pubDate>
            <atom:updated>2025-05-30T09:44:01.784Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5zQoj28a2B_2GKr88mLOVg.png" /><figcaption>Modern cloud architecture with AWS S3, CloudFront (HTTPS/ACM)</figcaption></figure><p><strong>Static websites</strong> are fast, cheap, and easy to host, especially with Amazon S3 and CloudFront. But when you add HTTPS with a custom domain, things can get tricky. This article walks you through using a pre-built CloudFormation template — templates/s3-cloudfront-domain/cloudfront-with-acm.yml—to automate the setup with SSL, CloudFront CDN, and DNS.</p><h3>🔧 What We’ll Set Up</h3><ul><li>✅ S3 bucket (you already created it)</li><li>✅ SSL certificate via AWS Certificate Manager (ACM)</li><li>✅ CloudFront distribution for global performance + HTTPS</li><li>✅ Cloudflare (or any DNS provider) for domain setup</li><li>✅ IaC deployment using AWS CLI + CloudFormation</li><li>📦 All using this CloudFormation template:<br> 👉 <a href="https://github.com/rMi99/cloudformation-aws-infra-templates/blob/main/templates/s3-cloudfront-domain/cloudfront-with-acm.yml">GitHub Repo</a></li></ul><h3>🧱 Step 1: Prepare Your Prerequisites</h3><p>Before you begin, make sure you have:</p><ul><li>A registered domain (e.g., yourdomain.com)</li><li>An existing public S3 bucket with static website hosting enabled</li><li>AWS CLI configured</li><li>Your CloudFormation YAML file located at templates/s3-cloudfront-domain/cloudfront-with-acm.yml</li></ul><blockquote><em>🧠 </em><strong><em>Tip:</em></strong><em> The S3 bucket should be publicly readable and named exactly like your domain for simpler routing.</em></blockquote><h3>📦 Step 2: Understand the Template Structure</h3><p>Here’s what the template sets up:</p><ul><li><strong>ACM Certificate</strong> (Validation: DNS)</li><li><strong>CloudFront Distribution</strong> pointing to the S3 bucket</li><li><strong>Outputs</strong> for easy copy-paste DNS entries into Cloudflare</li></ul><pre>Parameters:<br>  DomainName: &quot;yourdomain.com&quot;<br>  S3BucketDomain: &quot;yourbucket.s3.us-east-1.amazonaws.com&quot;</pre><h3>🚀 Step 3: Deploy the CloudFormation Stack</h3><p>Use AWS CLI to deploy:</p><pre>aws cloudformation deploy \<br>  --template-file templates/s3-cloudfront-domain/cloudfront-with-acm.yml \<br>  --stack-name static-site-stack \<br>  --capabilities CAPABILITY_NAMED_IAM \<br>  --parameter-overrides \<br>    DomainName=yourdomain.com \<br>    S3BucketDomain=yourdomain.com.s3.us-east-1.amazonaws.com</pre><blockquote><em>🧠 </em><strong><em>DevOps Tip</em></strong><em>: Add this command to a shell script and version it in your repo.</em></blockquote><h3>🔐 Step 4: Validate the ACM Certificate</h3><p>Once deployed, the output will include:</p><ul><li>ACM CNAME record (for DNS validation)</li><li>CloudFront domain name</li></ul><p>In Cloudflare (or your DNS provider):</p><ol><li><strong>Create a CNAME</strong> to validate ACM:</li></ol><ul><li><strong>Name</strong>: from CertificateValidationRecord</li><li><strong>Value</strong>: same as output</li><li>TTL: 300</li><li>Proxied: <strong>False</strong></li></ul><p>✅ Wait a few minutes for validation (check ACM in AWS Console).</p><h3>🌍 Step 5: Point Your Domain to CloudFront</h3><p>After validation, go back to Cloudflare and add another CNAME:</p><ul><li><strong>Name</strong>: yourdomain.com</li><li><strong>Value</strong>: CloudFront domain name (from stack output)</li><li>TTL: 300</li><li>Proxied: <strong>False</strong> (unless you want Cloudflare SSL, but not needed)</li></ul><h3>🧪 Step 6: Test Your Static Site</h3><p>Open your browser and visit:</p><pre>https://yourdomain.com</pre><p>You should see your S3-hosted site via CloudFront, encrypted with HTTPS!</p><h3>💡 Bonus DevOps Tips</h3><ul><li>✅ Automate with GitHub Actions or GitLab CI</li><li>✅ Use Route 53 instead of Cloudflare for a fully AWS-native setup</li><li>✅ Monitor CloudFront logs with AWS CloudWatch</li><li>✅ Set up invalidation for cache busting in your CI/CD pipeline</li></ul><h3>📌 Repo Reference</h3><p>Access the full template here:<br> 📁 <strong>GitHub Repo</strong>:<br> 🔗 <a href="https://github.com/rMi99/cloudformation-aws-infra-templates/blob/main/templates/s3-cloudfront-domain/cloudfront-with-acm.yml">rMi99/cloudformation-aws-infra-templates</a></p><h3>🧼 Conclusion</h3><p>By using this IaC approach with CloudFormation, you’ve:</p><ul><li>⛓ Removed manual setup</li><li>✅ Ensured reproducibility</li><li>🌐 Delivered HTTPS content globally</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d0a00ed3f87" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Step-by-Step Guide: Migrating Your Domain to a New Cloudflare Account]]></title>
            <link>https://rmi99.medium.com/step-by-step-guide-migrating-your-domain-to-a-new-cloudflare-account-c265de2e0739?source=rss-7f8a2a397ca3------2</link>
            <guid isPermaLink="false">https://medium.com/p/c265de2e0739</guid>
            <dc:creator><![CDATA[Ramisha Gimhana]]></dc:creator>
            <pubDate>Thu, 22 May 2025 17:46:50 GMT</pubDate>
            <atom:updated>2025-05-22T17:46:50.396Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vk3PgqFKVlMcawNirhdvRQ.jpeg" /></figure><h3>1. Create a New Cloudflare Account</h3><ul><li>Visit <a href="https://dash.cloudflare.com/sign-up">Cloudflare’s Sign-Up Page</a> and register with a new email address.</li></ul><h3>2. Add Your Domain to the New Account</h3><ul><li>After logging in, click on <strong>“Add a Site”</strong>.</li><li>Enter your domain name (e.g., example.com) and select an appropriate plan (Free, Pro, Business, or Enterprise).</li></ul><h3>3. Export DNS Records from the Old Account</h3><ul><li>In your old Cloudflare account, navigate to the DNS settings for your domain.</li><li>Manually note down all DNS records or export them if an option is available.</li></ul><h3>4. Import DNS Records into the New Account</h3><ul><li>In the new account, go to the DNS settings for your domain.</li><li>Manually input the DNS records you obtained from the old account.</li></ul><h3>5. Recreate Firewall and Page Rules</h3><ul><li>Reconfigure any firewall rules, page rules, or other settings from the old account in the new account.</li><li>This is an opportunity to optimize and update your configurations using the enhanced features available in the new dashboard.</li></ul><h3>6. Update Nameservers at Your Domain Registrar</h3><ul><li>Cloudflare will provide you with new nameserver addresses.</li><li>Log in to your domain registrar’s dashboard and replace the existing nameservers with the new ones provided by Cloudflare.(<a href="https://community.cloudflare.com/t/need-to-upgrade-account-but-dont-know-original-account-holder/628380?utm_source=chatgpt.com">Cloudflare Community</a>)</li></ul><h3>7. Verify the Domain in the New Account</h3><ul><li>Return to the Cloudflare dashboard in your new account.</li><li>Navigate to the <strong>“Overview”</strong> section for your domain and click <strong>“Re-check now”</strong> to prompt Cloudflare to verify the updated nameservers.(<a href="https://developers.cloudflare.com/registrar/account-options/transfer-out-from-cloudflare/?utm_source=chatgpt.com">Cloudflare Docs</a>, <a href="https://developers.cloudflare.com/fundamentals/setup/manage-domains/move-domain/?utm_source=chatgpt.com">Cloudflare Docs</a>)</li></ul><h3>8. Monitor and Test Your Configuration</h3><ul><li>Ensure that your website is functioning correctly.</li><li>Monitor traffic, security settings, and performance metrics to confirm that all configurations are operating as intended.</li></ul><h3>📝 Additional Considerations</h3><ul><li><strong>DNSSEC</strong>: If DNSSEC was enabled in your old account, disable it before initiating the transfer. You can re-enable it after the migration is complete.</li><li><strong>SSL/TLS Certificates</strong>: Reissue any necessary SSL/TLS certificates in the new account to maintain secure connections.</li><li><strong>Third-Party Integrations</strong>: Reconfigure any third-party services or integrations that were connected to your old Cloudflare account.(<a href="https://developers.cloudflare.com/registrar/account-options/inter-account-transfer/?utm_source=chatgpt.com">Cloudflare Docs</a>, <a href="https://developers.cloudflare.com/fundamentals/setup/manage-domains/move-domain/?utm_source=chatgpt.com">Cloudflare Docs</a>)</li></ul><h3>📚 References</h3><p>For more detailed information, you can refer to the following resources:</p><ul><li><a href="https://developers.cloudflare.com/fundamentals/setup/manage-domains/move-domain/">Cloudflare: Move a domain between accounts</a></li><li><a href="https://community.cloudflare.com/t/steps-to-move-a-domain-to-another-cloudflare-account-non-cloudflare-registrar/792274">Cloudflare Community: Steps to Move a Domain to Another Cloudflare Account</a></li><li><a href="https://youtu.be/tBL2X82kYjk">https://youtu.be/tBL2X82kYjk</a></li></ul><p>By following this guide, you can successfully migrate your domain to a new Cloudflare account, thereby accessing the latest features and improvements offered by Cloudflare’s updated dashboard.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c265de2e0739" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Manage Multiple GitHub Accounts with Different SSH Keys on Ubuntu]]></title>
            <link>https://rmi99.medium.com/how-to-manage-multiple-github-accounts-with-different-ssh-keys-on-ubuntu-552cd042e382?source=rss-7f8a2a397ca3------2</link>
            <guid isPermaLink="false">https://medium.com/p/552cd042e382</guid>
            <dc:creator><![CDATA[Ramisha Gimhana]]></dc:creator>
            <pubDate>Mon, 28 Apr 2025 18:23:50 GMT</pubDate>
            <atom:updated>2025-04-28T18:23:50.282Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ODDzBDVMprEVjbV0cj44sg.jpeg" /></figure><p>If you juggle between personal and professional GitHub accounts, you may run into conflicts when working on the same machine. Fortunately, with a little SSH configuration magic, you can manage multiple GitHub accounts smoothly.</p><p>In this guide, I’ll show you how to set up <strong>two GitHub accounts</strong> using <strong>different SSH keys</strong> in a <strong>single Ubuntu user account</strong>.</p><h3>Step 1: Generate Separate SSH Keys</h3><p>First, you need to create separate SSH key pairs for each GitHub account.</p><p>Open your terminal and run:</p><pre># For Personal GitHub Account<br>ssh-keygen -t ed25519 -C &quot;your_personal_email@example.com&quot; -f ~/.ssh/id_ed25519_personal</pre><pre># For Work GitHub Account<br>ssh-keygen -t ed25519 -C &quot;your_work_email@example.com&quot; -f ~/.ssh/id_ed25519_work</pre><ul><li>-t ed25519: Specifies the key type.</li><li>-C: Adds a label (your email).</li><li>-f: Defines the file name for the keys.</li></ul><p>After running these commands, you will have two sets of SSH keys:</p><ul><li>~/.ssh/id_ed25519_personal and id_ed25519_personal.pub</li><li>~/.ssh/id_ed25519_work and id_ed25519_work.pub</li></ul><blockquote><strong><em>Tip:</em></strong><em> When prompted for a passphrase, you can set one for extra security (recommended) or leave it empty.</em></blockquote><h3>Step 2: Add SSH Keys to Your GitHub Accounts</h3><p>Now, upload each public key (.pub file) to the correct GitHub account:</p><ol><li>Go to GitHub → <strong>Settings</strong> → <strong>SSH and GPG Keys</strong>.</li><li>Click <strong>“New SSH key”</strong>.</li><li>Give it a title like “Ubuntu Personal” or “Ubuntu Work”.</li><li>Paste the content of your .pub key.</li></ol><p>Repeat the process for both accounts.</p><h3>Step 3: Configure Your SSH Client</h3><p>Next, create or edit your SSH config file to define which key to use for each account.</p><p>Open your SSH configuration file:</p><pre>nano ~/.ssh/config</pre><p>Add the following content:</p><pre># Personal GitHub Account<br>Host github.com-personal<br>    HostName github.com<br>    User git<br>    IdentityFile ~/.ssh/id_ed25519_personal</pre><pre># Work GitHub Account<br>Host github.com-work<br>    HostName github.com<br>    User git<br>    IdentityFile ~/.ssh/id_ed25519_work</pre><p><strong>What this does:</strong></p><ul><li>Host github.com-personal: Creates an alias for the personal account.</li><li>Host github.com-work: Creates an alias for the work account.</li><li>Both still point to github.com, but use different SSH keys.</li></ul><blockquote><strong><em>Important:</em></strong><em> Ensure your private keys have correct permissions:</em></blockquote><blockquote><em>chmod 600 ~/.ssh/id_ed25519_personal chmod 600 ~/.ssh/id_ed25519_work chmod 700 ~/.ssh</em></blockquote><h3>Step 4: Clone Repositories with the Correct Alias</h3><p>When cloning repositories, use the alias (github.com-personal or github.com-work) instead of the default github.com.</p><p>For Personal GitHub:</p><pre>git clone git@github.com-personal:your-username/your-repo.git</pre><p>For Work GitHub:</p><pre>git clone git@github.com-work:your-work-username/your-work-repo.git</pre><h3>Step 5: Update Existing Repositories (If Needed)</h3><p>If you already cloned repositories using the default URL, you can update their remote origin to use the correct SSH alias.</p><p>Navigate into your repository and run:</p><pre># For Personal Repo<br>git remote set-url origin git@github.com-personal:your-username/your-repo.git</pre><pre># For Work Repo<br>git remote set-url origin git@github.com-work:your-work-username/your-work-repo.git</pre><h3>Step 6: (Optional) Configure Git Identity Per Repository</h3><p>If you want your commits to show the correct GitHub user (especially important if you’re using different emails for personal and work), you can set Git user info per repository.</p><p>Inside the repository:</p><pre># Set Git identity for this repo only<br>git config user.name &quot;Your Name&quot;<br>git config user.email &quot;your_personal_or_work_email@example.com&quot;</pre><p>Check your Git identity:</p><pre>git config user.name<br>git config user.email</pre><h3>Step 7: Test Your Setup</h3><p>You can test if your SSH keys are properly configured:</p><pre># Test Personal GitHub SSH<br>ssh -T git@github.com-personal</pre><pre># Test Work GitHub SSH<br>ssh -T git@github.com-work</pre><p>You should see a successful authentication message like:</p><pre>Hi your-username! You&#39;ve successfully authenticated, but GitHub does not provide shell access.</pre><h3>Conclusion</h3><p>Managing multiple GitHub accounts on a single Ubuntu system might seem tricky at first, but by using SSH key aliases and a simple ~/.ssh/config setup, it becomes a smooth experience.</p><p>Now you can work on personal and professional projects without mixing credentials!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=552cd042e382" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloudinary vs. AWS Lambda + MediaConvert: Choosing the Right Media Processing Solution]]></title>
            <link>https://rmi99.medium.com/cloudinary-vs-aws-lambda-mediaconvert-choosing-the-right-media-processing-solution-5166a0833e42?source=rss-7f8a2a397ca3------2</link>
            <guid isPermaLink="false">https://medium.com/p/5166a0833e42</guid>
            <dc:creator><![CDATA[Ramisha Gimhana]]></dc:creator>
            <pubDate>Fri, 18 Apr 2025 14:36:20 GMT</pubDate>
            <atom:updated>2025-04-18T14:36:20.516Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gC9iRrgV_clLAFqk8xNIIw.jpeg" /></figure><p>Modern applications rely heavily on media processing — images and videos must be resized, optimized, and delivered efficiently. Two popular approaches are:</p><ol><li><strong>Cloudinary</strong> — A fully managed SaaS solution for media uploads, transformations, and delivery.</li><li><strong>AWS Lambda + Elemental MediaConvert + S3</strong> — A serverless, event-driven architecture for custom media workflows.</li></ol><p>Which one is right for you? Let’s break it down.</p><h3>1. Architecture Comparison</h3><h3>🔹 Cloudinary</h3><p>✅ <strong>Fully Managed</strong> — No servers, storage, or CDN setup required.<br>✅ <strong>Real-Time &amp; Async Processing</strong> — Transform images/videos via URL parameters or background jobs.<br>✅ <strong>Built-in AI Features</strong> — Auto-tagging, background removal, and facial recognition.</p><p><strong>Workflow:</strong></p><pre>User → Cloudinary API → Processing → CDN Delivery</pre><h3>🔹 AWS Lambda + MediaConvert + S3</h3><p>✅ <strong>Cost-Effective at Scale</strong> — Pay-per-use pricing (no fixed tiers).<br>✅ <strong>Customizable</strong> — Full control over transcoding (FFmpeg, MediaConvert).<br>✅ <strong>Enterprise-Grade Video</strong> — MediaConvert supports broadcast-quality workflows.</p><p><strong>Workflow:</strong></p><pre>User → S3 Upload → Lambda Trigger → MediaConvert → S3 Output → CloudFront CDN</pre><h3>2. Key Differences</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*2dcNbuS5SZNN6LfoLYUbYw.png" /><figcaption>Key Differences</figcaption></figure><h3>3. Performance &amp; Scalability</h3><h3>📊 Cloudinary</h3><p>✔ <strong>Fast image transforms</strong> (edge-optimized)<br>✔ <strong>Auto-scaling</strong> (no worries about traffic spikes)<br>❌ <strong>Video processing slower</strong> than AWS MediaConvert</p><h3>📊 AWS Solution</h3><p>✔ <strong>Better for heavy video workloads</strong> (4K, HDR, adaptive bitrate)<br>✔ <strong>Lambda scales automatically</strong> (but has cold starts)<br>❌ <strong>Requires CDN setup</strong> (CloudFront vs. Cloudinary’s built-in Fastly)</p><h3>4. Pricing Breakdown</h3><h3>💵 Cloudinary</h3><ul><li><strong>Pay per transformation + storage + bandwidth</strong></li><li>Example:</li><li>100K image transformations ≈ <strong>$10-$20</strong></li><li>1TB bandwidth ≈ <strong>$100-$200</strong></li></ul><h3>💵 AWS Solution</h3><ul><li><strong>Pay per usage (S3, Lambda, MediaConvert, CloudFront)</strong></li><li>Example (100K images):</li><li><strong>Lambda:</strong> ~$0.50 (1M invocations @ $0.20 per million)</li><li><strong>S3 Storage:</strong> ~$2.30 (100GB @ $0.023/GB)</li><li><strong>MediaConvert (video):</strong> ~$7.50 (1000 mins @ $0.0075/min HD)</li></ul><p><strong>👉 AWS is cheaper for high-volume processing.</strong></p><h3>5. When to Choose Which?</h3><h3>✅ Pick Cloudinary If…</h3><p>✔ You need <strong>quick setup</strong> with minimal coding.<br>✔ Your app <strong>mostly handles images</strong> (e-commerce, social media).<br>✔ You want <strong>built-in AI features</strong> (auto-tagging, moderation).</p><h3>✅ Pick AWS Lambda + MediaConvert If…</h3><p>✔ You process <strong>lots of videos</strong> (streaming, broadcasts).<br>✔ You need <strong>custom workflows</strong> (watermarking, DRM, HLS/DASH).<br>✔ You’re <strong>cost-sensitive at scale</strong> (AWS can be 50%+ cheaper).</p><h3>6. Sample AWS Implementation (Serverless Video Processing)</h3><p>Here’s how to set up an <strong>event-driven video transcoding pipeline</strong>:</p><h3>Step 1: Upload to S3</h3><pre>// Frontend uploads to S3 via presigned URL<br>const AWS = require(&#39;aws-sdk&#39;);<br>const s3 = new AWS.S3();</pre><pre>const params = {<br>  Bucket: &#39;my-media-bucket&#39;,<br>  Key: `uploads/${file.name}`,<br>  ContentType: file.type,<br>};</pre><pre>const presignedUrl = s3.getSignedUrl(&#39;putObject&#39;, params);<br>// Use this URL for client-side upload</pre><h3>Step 2: Lambda Triggers MediaConvert Job</h3><pre>const AWS = require(&#39;aws-sdk&#39;);<br>const mediaconvert = new AWS.MediaConvert();</pre><pre>exports.handler = async (event) =&gt; {<br>  const fileKey = event.Records[0].s3.object.key;<br>  <br>  const params = {<br>    Role: &#39;arn:aws:iam::123456789:role/MediaConvertRole&#39;,<br>    Settings: {<br>      Inputs: [{<br>        FileInput: `s3://my-media-bucket/${fileKey}`,<br>      }],<br>      OutputGroups: [{<br>        OutputGroupSettings: {<br>          HlsGroupSettings: {<br>            Destination: `s3://my-media-bucket/outputs/${fileKey}/`,<br>          },<br>        },<br>      }],<br>    },<br>  };<br>  <br>  await mediaconvert.createJob(params).promise();<br>};</pre><h3>Step 3: Deliver via CloudFront</h3><pre>https://d123.cloudfront.net/outputs/video.mp4/master.m3u8</pre><h3>Final Verdict</h3><ul><li><strong>For most developers:</strong> <strong>Cloudinary</strong> is the easiest choice.</li><li><strong>For advanced video &amp; cost efficiency:</strong> <strong>AWS Lambda + MediaConvert</strong> wins.</li></ul><p>Which one are you using? Let me know in the comments! 🚀</p><p><strong>🔗 Further Reading:</strong></p><ul><li><a href="https://cloudinary.com/pricing">Cloudinary Pricing</a></li><li><a href="https://aws.amazon.com/mediaconvert/">AWS MediaConvert Docs</a></li><li><a href="https://medium.com/aws-tip/serverless-image-processing-with-aws-lambda-and-s3-8739a1d5e147">Serverless Image Processing with Lambda</a></li></ul><p>Would you like a deep dive into optimizing MediaConvert jobs? Let me know!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5166a0833e42" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Reset MySQL Root Password with Secure Password Policy Enabled]]></title>
            <link>https://rmi99.medium.com/how-to-reset-mysql-root-password-with-secure-password-policy-enabled-97598ede9d7f?source=rss-7f8a2a397ca3------2</link>
            <guid isPermaLink="false">https://medium.com/p/97598ede9d7f</guid>
            <dc:creator><![CDATA[Ramisha Gimhana]]></dc:creator>
            <pubDate>Sat, 15 Feb 2025 14:03:00 GMT</pubDate>
            <atom:updated>2025-02-15T14:03:00.517Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DesvaaQaSj1XgJKC28w3DQ.jpeg" /></figure><p>If you’ve forgotten your MySQL root password or need to change it, you can reset it even if the secure password policy is enabled. In this article, we’ll walk you through the process of resetting the root password, dealing with MySQL’s password policy, and ensuring that you can log in with your new credentials.</p><h4>Step 1: Stop MySQL Service</h4><p>The first step in the process is to stop the MySQL service so that you can modify its settings. To stop MySQL, run the following command:</p><pre>sudo service mysql stop</pre><p>This command will gracefully stop the MySQL server.</p><h4>Step 2: Start MySQL in Safe Mode</h4><p>Next, start MySQL in safe mode with the --skip-grant-tables option. This will allow you to access the MySQL database without needing a password, bypassing the authentication mechanism temporarily. Run the following command:</p><pre>sudo mysqld_safe --skip-grant-tables &amp;</pre><p>You may need to wait a few moments for the MySQL server to start. You’ll notice logs being generated, such as:</p><pre>2025-02-15T13:31:39.124252Z mysqld_safe Logging to &#39;/var/log/mysql/error.log&#39;.</pre><p>However, if you encounter an error like this:</p><pre>2025-02-15T13:48:35.872912Z mysqld_safe Logging to &#39;/var/log/mysql/error.log&#39;.<br>2025-02-15T13:48:35.915869Z mysqld_safe A mysqld process already exists</pre><p>This means a previous MySQL process is still running. To address this, you should kill the existing MySQL process by using the following command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*Q0pC8C_WIkj5_hcYlI_grA.png" /></figure><pre>sudo kill -9 $(pgrep mysqld)</pre><p>After killing the process, re-run:</p><pre>sudo mysqld_safe --skip-grant-tables &amp;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*6x-AGS6t0vWrGE7EY5A9DA.png" /></figure><h4>Step 3: Log Into MySQL Without a Password</h4><p>Now that MySQL is running in safe mode, you can log into the MySQL server as the root user without a password:</p><pre>mysql -u root</pre><p>If you encounter the following error:</p><pre>ERROR 1045 (28000): Access denied for user &#39;root&#39;@&#39;localhost&#39; (using password: NO)</pre><p>This indicates that the root user is still being restricted. Ensure that no other MySQL processes are running, and if necessary, repeat the previous step of killing any lingering MySQL processes (sudo kill -9 $(pgrep mysqld)). After ensuring no processes are running, try the login command again.</p><h4>Step 4: Adjust Password Policy (Optional)</h4><p>If MySQL’s password policy is set to “strong” (which is common in newer versions), you may face issues when setting a new root password, as the password might not meet the security criteria. You can change the policy temporarily to allow a lower strength password.</p><p>To change the password policy to LOW:</p><pre>SET GLOBAL validate_password.policy=LOW;</pre><p>You can verify the current password policy level by using the following query:</p><pre>SHOW VARIABLES LIKE &#39;validate_password.policy&#39;;</pre><p><strong>Tip</strong>: The default LOW policy requires only a minimum length of 8 characters, while higher policies might require more complex passwords with mixed case, numbers, and symbols.</p><h4>Step 5: Update the Root Password</h4><p>Once the password policy is set appropriately, you can change the root user password. Use the following ALTER USER command, which is the preferred method in MySQL 8.x and later:</p><pre>ALTER USER &#39;root&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;new_password&#39;;</pre><p>Alternatively, for earlier versions of MySQL or if needed, you can use this method:</p><pre>UPDATE user SET authentication_string=PASSWORD(&#39;new_password&#39;) WHERE User=&#39;root&#39;;</pre><p>Make sure to replace &#39;new_password&#39; with your desired password.</p><h4>Step 6: Flush Privileges</h4><p>After updating the root password, you need to flush the privileges so that the changes take effect immediately. Run the following command:</p><pre>FLUSH PRIVILEGES;</pre><p>This command reloads the grant tables and applies the new password settings.</p><h4>Step 7: Restart MySQL Service</h4><p>Now that you’ve updated the root password and flushed the privileges, restart MySQL to ensure all changes are applied:</p><pre>sudo service mysql restart</pre><h4>Step 8: Verify the New Password</h4><p>To confirm that the password reset was successful, try logging into MySQL again using the new password:</p><pre>mysql -u root -p</pre><p>Enter the new password when prompted. If you are logged in successfully, the password reset process was successful!</p><h4>Step 9: Restore Strong Password Policy (Optional)</h4><p>If you changed the password policy to LOW for the reset process, it’s a good idea to change it back to a higher strength policy once you are done:</p><pre>SET GLOBAL validate_password.policy=MEDIUM;</pre><h3>Troubleshooting Tips</h3><ul><li><strong>MySQL Not Starting After Reset</strong>: If MySQL fails to start after making these changes, ensure the data directory has the correct permissions, and check the error log (/var/log/mysql/error.log) for specific issues.</li><li><strong>Password Not Accepted</strong>: Ensure that the password meets the criteria for the selected password policy. If you face issues with strong passwords, consider adjusting the policy again before setting the password.</li></ul><h3>Conclusion</h3><p>By following these steps, you should be able to reset your MySQL root password successfully, even with secure password policies enabled. Be sure to adjust the password policy back to a secure level after the reset to maintain the security of your MySQL server.</p><p>If you have further questions or encounter any issues, feel free to reach out for more assistance!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97598ede9d7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>