eh?
# **!/bin/bash**
end=$((SECONDS+300))
mkdir -p samay
cd samay
while [ $SECONDS -lt $end ]; do
# Do what you want.
touch $(date "+%F-%T")_file.txt
sleep 60
aws s3 sync ../samay s3://gaddagi-testing-files/ --region ap-south-1
:
done
# **!/bin/bash**
end=$((SECONDS+300))
mkdir -p samay
cd samay
while [ $SECONDS -lt $end ]; do
# Do what you want.
touch $(date "+%F-%T")_file.txt
sleep 60
aws s3 sync ../samay s3://gaddagi-testing-files/ --region ap-south-1
:
done
Understanding Virtual 1D index → 2D coordinates: How does this formula work? row = index / n col = index % n Mapping 1D to 2D Imagine you have a bookshelf with 4 shelves (rows), and each shelf holds 3 books (columns). Shelf 0: [Book0] [Book1] [Book2] Shelf 1: [Book3] [Book4] [Book5] Shelf 2: [Book6]
I was solving the classic problem of calculating the widest binary tree level - essentially finding the maximum width of in the tree. I had doubts around how left and right indices of nodes is calulated because I thought we use the standard formulas for calculating indices: left := 2i + 1
Why nslookup works but ping says “Name or service not known”? Let’s get basic terminology straight up — and it’s assumed you already understand how DNS resolution works. In my quest to understand how tools like nslookup and ping behave differently, I was honestly confused by the terms DNS
In my experience, I've revisited this topic multiple times — and every single time, I’ve learned something new. So here’s a simple visual walkthrough for those who want to understand what really happens when you type a domain name into your browser. We’ll break this into