How to Migrate from Amazon EFS to EBS on EC2

Recently, I was working with a client who was experiencing unusually high AWS bills, particularly from EFS metadata IO operations. After investigating, I found that their WordPress site’s files were mounted on EFS, which turned out to be the root cause of their cost issues. If you’re wondering why EFS and WordPress don’t play well… Continue reading How to Migrate from Amazon EFS to EBS on EC2

How to Create External Backup of Your Self-Hosted MongoDB Database

Creating external backups of your MongoDB database is essential for data safety. This tutorial demonstrates the process of backing up a self-hosted MongoDB database. The same backup commands will work with any MongoDB instance (including MongoDB Atlas) once you have the connection URL. The only difference is in how you get the connection URL, for… Continue reading How to Create External Backup of Your Self-Hosted MongoDB Database

Published
Categorized as General

How to Create External Backup of Your Supabase-Hosted PostgreSQL Database

While Supabase provides automated daily backups for paid projects, having your own external backups is important, especially if you are on the free plan. This tutorial will guide you through creating manual external backups of your Supabase-hosted PostgreSQL database to your local machine. Prerequisites Check Before we begin, let’s verify if you have PostgreSQL client… Continue reading How to Create External Backup of Your Supabase-Hosted PostgreSQL Database

Integrate Supabase Auth with AWS API Gateway using Lambda Authorizer (React Implementation)

While working on one of my recent projects, I needed to connect a React application with several AWS Lambda functions through AWS API Gateway. The goal was to offload compute-intensive tasks that only authenticated users should access. Since I was using Supabase for authentication, I had to find a way to validate Supabase sessions on… Continue reading Integrate Supabase Auth with AWS API Gateway using Lambda Authorizer (React Implementation)

How to Programmatically Create WooCommerce Subscriptions with Payment Methods

During a recent project, I had to programmatically create WooCommerce subscriptions and link them to existing customer payment methods. I learned a lot through the process, and I thought I would share my findings in this comprehensive tutorial. Whether you’re migrating subscriptions from another platform, or building a custom subscription creation process, this guide will… Continue reading How to Programmatically Create WooCommerce Subscriptions with Payment Methods

How to Convert Regular WooCommerce Products to Subscription Products Programmatically

Converting regular WooCommerce products to subscription products can be tricky. Recently, I needed to convert a bunch of products in bulk and ran into some interesting challenges that I’ll share with you along with the solution. Without further ado, let’s see how we can properly convert both simple and variable products to their subscription counterparts.… Continue reading How to Convert Regular WooCommerce Products to Subscription Products Programmatically

Apply WooCommerce coupons to regular prices instead of sale prices

Ever needed to apply WooCommerce coupons to regular prices instead of sale prices? Maybe you want to run a special promotion that should override existing sales, or you need to ensure your percentage-based coupons are calculated from the original product price. Here’s a simple solution that lets you do just that. In my case, I… Continue reading Apply WooCommerce coupons to regular prices instead of sale prices

Optimizing S3 File Transfers in AWS Lambda: A Performance Comparison

Recently, I conducted a series of experiments to determine the fastest approach for uploading and downloading files smaller than 100MB to and from S3 within AWS Lambda functions. The results were quite interesting, and I thought I’d share my findings with you. Let’s dive into the details of these experiments and see what we can… Continue reading Optimizing S3 File Transfers in AWS Lambda: A Performance Comparison