Notes

Coding tips

Security notes, SOC lab write-ups and tested code by Mahir Faysal, a SOC Level 1 cybersecurity learner in Bangladesh, plus notes from my Next.js and Gemini projects. Sample posts are marked and drafts stay in the admin area.

Build an Offline Habit Tracker With localStorage
Coding tips

Build an Offline Habit Tracker With localStorage

A small offline habit tracker in plain HTML and JavaScript: habits saved as JSON in localStorage, streaks from local dates, a 7-day row and a JSON backup.

October 2, 2026 · 10 min read · 122 views

How to Add a Gemini API Key to Next.js and Vercel
Coding tips

How to Add a Gemini API Key to Next.js and Vercel

Step by step: a Gemini key from Google AI Studio in .env.local, a server-only helper, a Next.js route handler, Vercel environment variables and a leak test.

October 2, 2026 · 8 min read · 413 views

Simple Math Captcha in PHP With Sessions
Coding tips

Simple Math Captcha in PHP With Sessions

A simple PHP math captcha in two functions: store the answer in the session, check it once with ctype_digit and ===, then add a honeypot and time check.

October 2, 2026 · 8 min read · 38 views

PHP Contact Form With mail(), No PHPMailer Needed
Coding tips

PHP Contact Form With mail(), No PHPMailer Needed

How I send contact form emails with PHP's built-in mail(): a fixed recipient, Reply-To, header injection checks, a UTF-8 subject and a fake sendmail.

October 2, 2026 · 9 min read · 139 views

JavaScript Async/Await Tutorial for Beginners
Coding tips

JavaScript Async/Await Tutorial for Beginners

A beginner async/await tutorial: async functions, try/catch, fetch with response.ok, Promise.all for parallel work, retries, and the forEach mistake to avoid.

October 2, 2026 · 11 min read · 239 views

JavaScript map, filter and reduce Explained
Coding tips

JavaScript map, filter and reduce Explained

JavaScript map, filter and reduce explained with practical examples: transform, keep and combine array items, chain them, and avoid the classic mistakes.

October 2, 2026 · 11 min read · 87 views

0%