Skip to content

Instantly share code, notes, and snippets.

View EmadMokhtar's full-sized avatar
🚀
Build with intention, fail with grace, grow without end.

Emad Mokhtar EmadMokhtar

🚀
Build with intention, fail with grace, grow without end.
View GitHub Profile

Coding Agents: Semantic RAG Search vs Traditional Retrieval Methods

A comprehensive analysis of code retrieval approaches for AI coding agents, comparing semantic/RAG-based search against traditional methods (grep, keyword search) and agentic tool use. Focus: empirical data and benchmarks over opinions.


Executive Summary

Approach Accuracy Speed Cost Scalability Best For
@ErikFontanel
ErikFontanel / filter-youtube-domains.sh
Last active March 11, 2026 21:34
Pi-hole Youtube ad blocking
#!/bin/sh
# This script will fetch the Googlevideo ad domains and append them to the Pi-hole block list.
# Run this script daily with a cron job (don't forget to chmod +x)
# More info here: https://discourse.pi-hole.net/t/how-do-i-block-ads-on-youtube/253/136
# File to store the YT ad domains
FILE=/etc/pihole/youtube.hosts
# Fetch the list of domains, remove the ip's and save them
curl 'https://api.hackertarget.com/hostsearch/?q=googlevideo.com' \
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active June 12, 2026 18:55
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@sloria
sloria / bobp-python.md
Last active May 26, 2026 18:59
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@goldhand
goldhand / Django + Ajax dynamic forms .py
Last active September 29, 2023 06:32
Django form with Ajax. A simple Task model that can be updated using a CBV with an AJAX mixin. The view sends post data with ajax then updates the view with a callback to a DetailView with a json mixin.There is an abstract CBV, AjaxableResponseMixin, based on the example form django docs, that is subclassed in the TaskUpdateView CBV. TaskUpdateV…
#models.py
class Task(models.Model):
title = models.CharField(max_length=255)
description = models.TextField()
def __unicode__(self):
return self.title