shasa.hashnode.devDebugging Disk Space Issues on LinuxSome handy commands for quickly checking whats eating up storage space on linux vps(in my case it was poorly configured github action runners and chonky npm and nextjs cache) Get a High-Level Overview with df The df command (Disk Free) gives you a su...Apr 22, 2025·2 min read
shasa.hashnode.dev# 🚀 How to Increase Swap Space on Ubuntu (DigitalOcean Droplet Friendly)If you're running a server with limited RAM — like a 2GB DigitalOcean droplet — you might run into memory issues when building large applications (hello oom-kill). A quick and effective solution is to increase your swap space. This guide walks you th...Apr 16, 2025·2 min read
shasa.hashnode.devComplete guide for integrating MPESA C2B to receive alerts for payments to your paybill/tillI recently integrated M-Pesa's Customer-to-Business (C2B) API to enable a business to receive real-time alerts when customers make payments via Paybill. The primary goal was to automate service delivery upon payment. While Safaricom's Daraja document...Apr 12, 2025·11 min read
shasa.hashnode.devHow to use let's encrypt and Certbot to point a domain name to your server IP addressSo you are at the point in your project where you have successfully deployed your backend app to a server like EC2 and have nginx as a reverse proxy or you have configured your nginx to serve the static frontend files so that going to an ip like http...Dec 31, 2024·3 min read
shasa.hashnode.devHow to create a linux systemd service and timer that activates a script every few secondsYou have a bash script on your linux installation that you would like to run periodically, it could be anything, for instance you have a script that takes periodic snapshots of the database and performs a backup, or a script that pulls in changes fro...Jun 16, 2024·4 min read