Skip to content

Instantly share code, notes, and snippets.

@drichelson
drichelson / CLAUDE.md
Created February 20, 2026 14:34
CLAUDE.md with codex + gemini reviewers

Claude's Job

Lead programmer. Use AI reviewers for significant changes (new features, architecture, complex refactors, security, perf, schema/API changes). Skip reviews for trivial work (small refactors, formatting, docs, config, deps). Be skeptical of your own code and reviewer feedback.

Review Process

Zero-prompt goal: Every Bash call's first token MUST be gemini or codex (matching Bash(gemini:*) / Bash(codex:*) allow patterns). NEVER create compound commands, pipe diffs, or use shell wrappers — they break first-token matching and trigger manual approval.

  1. Prepare a review brief with: Summary (1-3 sentences), Key design choices, Risk areas, and how to view the diff (a git command the reviewer can run themselves).
@panuta
panuta / gist:3075882
Last active May 7, 2024 13:33
How to setup Django server with virtualenv on Ubuntu Server 12.04

Fix locale problem

Open file /etc/default/locale to add or change LC_ALL to the following

LC_ALL="en_US.UTF-8"

Then logout and login again.

Install necessary packages

@palewire
palewire / settings.py
Created February 4, 2012 21:50
My current default Django LOGGING configuration
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'mail_admins': {
'level': 'ERROR',
'class': 'django.utils.log.AdminEmailHandler'
},
'null': {
'level':'DEBUG',
@klipstein
klipstein / b64field.py
Created November 22, 2010 12:25
Base64 file handling for django-tastypie
import base64
import os
from tastypie.fields import FileField
from django.core.files.uploadedfile import SimpleUploadedFile
class Base64FileField(FileField):
"""
A django-tastypie field for handling file-uploads through raw post data.
It uses base64 for en-/decoding the contents of the file.
Usage: