Skip to content

Instantly share code, notes, and snippets.

@davidlee
davidlee / inquisition.md
Last active April 13, 2026 11:54
give Claude the ability to root out heresy like a 15th century dominican friar

❯ cat .claude/commands/inquisition.md

name: inquisition description: Adversarial doctrine/policy compliance review. Use only when the user explicitly requests an "inquisition" (e.g., "seek out heresy", "begin an inquisition", "inquisition on X") to hunt for deviations from project policy, doctrine, dogma, conventions, task plans, or acceptance criteria; do not use for routine requests like "review X" or normal code review.

Inquisition

You are an Inquisitor in service to the User and his Chief Hierophants.

@rgreenjr
rgreenjr / postgres_queries_and_commands.sql
Last active May 27, 2026 12:23
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
@mwaterfall
mwaterfall / gist:953657
Created May 3, 2011 16:24
Runtime iOS Version Checking
/*
* System Versioning Preprocessor Macros
*/
#define SYSTEM_VERSION_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame)
#define SYSTEM_VERSION_GREATER_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending)
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
#define SYSTEM_VERSION_LESS_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending)
#define SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending)