Notes

Beginners

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.

CSS Text Overflow Ellipsis: 1 Line, 2 Lines and Flexbox
Coding tips

CSS Text Overflow Ellipsis: 1 Line, 2 Lines and Flexbox

One-line ellipsis needs white-space: nowrap, overflow: hidden and text-overflow: ellipsis. Tested fixes for flexbox, grid and tables, plus 2- and 3-line truncation with line-clamp.

October 6, 2026 · 15 min read · 133 views

Git Delete Branch Local and Remote (Tested Commands)
Coding tips

Git Delete Branch Local and Remote (Tested Commands)

git branch -d name deletes the local branch, git push origin --delete name deletes the remote one. Tested errors, pruning stale branches, bulk clean-ups and how to undo a delete.

October 6, 2026 · 19 min read · 49 views

JavaScript Sort Array of Objects by Property (Tested)
Coding tips

JavaScript Sort Array of Objects by Property (Tested)

Pass sort() a compare function: a.price - b.price for numbers, a.name.localeCompare(b.name) for strings. Dates, multiple properties, toSorted() and the mistakes to avoid, all tested.

October 6, 2026 · 20 min read · 28 views

Python Remove Duplicates From List (and Keep the Order)
Coding tips

Python Remove Duplicates From List (and Keep the Order)

list(dict.fromkeys(items)) removes duplicates and keeps the original order; set() is fast but scrambles it. Lists of dicts, case-insensitive matching, pandas and speed tests.

October 6, 2026 · 19 min read · 44 views

0%