Cardiovascular Disease

Asking ChatGPT and DeepSeek.ai (DieticienGPT?) about what diet is best for reducing Cardiovascular Disease – just want to store it here to keep it handy:

Here was the prompt:

can you please provide list of 10 meta analysis studies in a table that show what the best diet is for reducing cardiovascular disease? please include publication date, authors, journal, title of the study and summary of the studies. Please also include low-carb diet meta analysis. Please also include the URL for each study in the table as well. Only focus on studies that talk about cardiovascular disease as the main target of their analysis.

Continue reading “Cardiovascular Disease” →

AWS WordPress Deployment with CloudFront using Terraform

I couldn’t find an existing repo with a simple way to deploy a WordPress site on AWS with CloudFront CDN integration, so I created this Terraform script to do it: main-salman/aws-wordpress-cloudfront-terraform: A WordPress deployment on AWS fronted by CloudFront CDN deployed using Terraform.

This is great to test out CloudFront CDN integration with WordPress on AWS. Bunch of other scripts I found required owning a domain name and other inputs. This is just a simple script to get you started. Just simply run “terraform init” and “terraform apply” and you’re good to go!

Before running the script, the only three things you need to provide are:

  1. AWS Access Key
  2. AWS Secret Key
  3. Key Pair Name

All the other variables are optional and you can change them to your liking.

Continue reading “AWS WordPress Deployment with CloudFront using Terraform” →

Tool for testing globally deployed databases in three different AWS regions

My team is building an application that needs to scale to 10,000s of users – but not millions. Accordingly, we can’t necessarily follow SaaS models/best practices meant for scaling to millions of users as that would be overkill and not cost efficient.

One architecture we came up with involves compute in one region with serverless RDS databases deployed in different regions due to data residency/compliance requirements. Of course, generally, you never want applications to be too far away from their databases – definitely not continents apart! But that’s part of our literal requirement.

So to test to make sure our application will be able to have adequate database performance even with databases deployed literally in other continents, I built the Global DB Performance Tester using Cursor AI

Continue reading “Tool for testing globally deployed databases in three different AWS regions” →

Make a Web Application from scratch with CURSOR – no development experience needed!

My awesome friend Dipto Biswas introduced me to the world of AI development – and I am totally hooked!

Anyone can make web applications, and so much more, using AI, with no programming / development experience required! And you can actually make stuff that’s useful – not just basic “hello world” type beginer tutorials.

In this video, I make an app that can summarize a list of all AWS resources in a particular AWS account. You can make whatever you want using the same process. Make a 3D Pong game. Make an app that can remove background from images. Make an app that shows what the stars look like on a particular night based on latitude and longitude. Or whatever else your imagination thinks of! Here are the tools and accounts you need:

Cursor – The AI Code Editor

Vercel

GitHub

Install WSL | Microsoft Learn

Install Ubuntu on WSL2 – Ubuntu WSL documentation

How To Install Node.js on Ubuntu 20.04 | DigitalOcean (I referred to this part as NPM in the video)

Go nuts!

Crossplane and ArgoCD on your own local machine on a KinD cluster – from scratch

A bunch of Crossplane/ArgoCD tutorials exist already – so why create another one? This one starts FROM SCRATCH, and takes you through all the way to creating resources on AWS.

Crossplane is not necessarily easy to get started with. But, once you get it going, it’s not much harder to use than Terraform, but with a whole lot more benefits.

If you’re new to Crossplane, these videos offer an excellent introduction. Now, are you ready to dive into the world of Crossplane?

Continue reading “Crossplane and ArgoCD on your own local machine on a KinD cluster – from scratch” →

Delete Buckets and List Resources based on tags

Here is an easy couple of sets of commands to list all resources with a certain tag and delete all buckets with a certain tag. Certain beats manually deleting buckets with lots of contents. I got these little snippets from this AWS Workshop: https://workshops.aws/card/unauthorized

List resources with a certain tag:

aws resourcegroupstaggingapi get-resources --tag-filters Key=MY_TAG_KEY,Values=MY_TAG_VALUE --query 'ResourceTagMappingList[].ResourceARN'

Delete buckets with a certain tag:

aws resourcegroupstaggingapi get-resources --tag-filters Key=MY_TAG_KEY,Values=MY_TAG_VALUE --query 'ResourceTagMappingList[].ResourceARN' > buckets.json

((for bucket in {0..1}; do cat buckets.json |jq -r ".[$bucket]";done) |cut -d":" -f 6) > buckets-to-delete

while read line; do aws s3 rb s3://$line --force; done < buckets-to-delete

rm buckets.json

rm buckets-to-delete

Blog at WordPress.com.

Up ↑