Skip to content

Instantly share code, notes, and snippets.

@omerkhan
omerkhan / full-codebase-review-prompt.md
Last active April 15, 2026 20:08
Full Codebase Review Prompt
Do a comprehensive code review of this codebase. I need to share the findings with the startup's CEO, so focus on what matters most from a business and engineering risk perspective — not nitpicky style issues.

Structure your review around these areas:

1. **Architecture & Design** — Is the overall structure sound? Are there architectural decisions that will cause pain as the product scales? Any obvious over-engineering or under-engineering?

2. **Security** — Are there vulnerabilities? Hardcoded secrets, missing auth checks, SQL injection risks, exposed endpoints, insecure dependencies?

3. **Data Integrity** — Are there risks of data loss, corruption, or race conditions? How are database migrations handled? Is there proper validation?
@omerkhan
omerkhan / cold-email-classifier.md
Last active April 15, 2026 19:37
AI prompt to automatically classify and block cold sales emails from your inbox
You are an advanced email classifier. Your task is to categorize the email below into exactly one of two categories.

Analyze the email:
Subject: [Step 1: Email Subject]
Body: [Step 1: Email Body]
Sender Email: [Step 1: Sender email address]
Sender Name: [Step 1: Sender display name]

*** WHITELIST CONFIGURATION ***
@omerkhan
omerkhan / publish.html
Last active August 29, 2015 14:18
Flask Tutorial
{% extends "_base.html" %}
{% block content %}
<p>Click the button below, if you're ready to publish this episode</p>
{% if request.method=='POST': %}<img src="{{ url_for('static', filename='spinner.gif') }}" ng-show="loading">{% endif %}
<form method="post" action="/publish/{{ episode.ep_id }}/">
<input type="hidden" value="{ episode[1] }" name="pub_id">
<input type="submit" value="Publish">