Skip to content

Instantly share code, notes, and snippets.

PR Risk Classifier — Build-It-Yourself Prompt Pack

This document is a sequence of self-contained prompts that you can feed, one at a time, to an AI coding agent (Claude Code, Cursor, etc.) to build a PR risk classification system from scratch in your own Rails repository.

The system being built is a 3-step pipeline that classifies open pull requests as LOW_RISK or HIGH_RISK:

Static Analysis (deterministic) → Semantic Analysis (LLM) → Agentic Analysis (Claude Code CLI)
@fellipec
fellipec / pihole-dhcp.md
Last active May 14, 2026 23:06
Pi-Hole DHCP configuration guide

Introduction

Pi-Hole's primary function is to be a DNS server with the ability to block domains, usually used for advertising, tracking or other unwanted sites. It also features a built-in DHCP Server.

Usually, your router will also have a built-in DHCP server, pre-configured from factory, and for most users this is perfectly fine. But in some cases you may want to run another DHCP server instead of relying on your router's one. This guide will help you understand how a DHCP server works and how to configure it without disturbing your network.

If you already know the networking basics, you can cut to the chase and read just the configuration part

Understanding the IP Addressing

@count23all
count23all / gist:49b83be49a587efab83af3dfa04f9d8c
Last active October 29, 2024 15:35
This userscript creates a right aligned overlay that accesses the Perplexity.AI Restful API for a user while htey are searching to provide an indication of the remaining limits they have for their searches for the refresh interval.
// ==UserScript==
// @name Perplexity.ai Limits Overlay (Dark Mode, Draggable)
// @namespace http://tampermonkey.net/
// @version 2.0
// @description Overlays various limit values on Perplexity.ai main and search pages, updates on submit
// @match https://www.perplexity.ai/
// @match https://www.perplexity.ai/search*
// @grant GM_setValue
// @grant GM_getValue
// ==/UserScript==
@bahadiraraz
bahadiraraz / Git_Commit_Freeze_Solution.md
Last active July 22, 2026 02:51
Git Commit Freeze Due to GPG Lock Issues (Solution)

Git Commit Freeze Due to GPG Lock Issues

If you encounter a problem where you cannot commit changes in Git – neither through the terminal nor via the GitHub Desktop application – the issue might be a freeze during the Git commit process. This is often caused by GPG lock issues. Below is a concise and step-by-step guide to resolve this problem.

Solution Steps

1. Check for GPG Lock Messages

Open your terminal and try to perform a GPG operation (like signing a test message). If you see repeated messages like gpg: waiting for lock (held by [process_id]) ..., it indicates a lock issue.

@CKolkey
CKolkey / Gemfile.dev
Last active February 11, 2025 10:07
Using personal gems with Bundle without bothering your colleagues.
# NOTE: When updating gems, the ENV var below will need to be _unset_, so bundler updates the correct lock file.
# NOTE 2: The name 'Gemfile.dev' isn't important - it could be `dev_gems.rb` or anything else.
# SETUP:
# - Set the ENV var: BUNDLE_GEMFILE=Gemfile.dev in your app dir
# - Add Gemfile.dev and Gemfile.dev.lock to your .gitignore (global or local)
# - Copy the rest of this gist into Gemfile.dev (in your project root):
# Copy real lock file to ensure it gets priority
@mabenson00
mabenson00 / cheatsheet.rb
Last active June 14, 2026 20:56
Rails Postgres ActiveRecord JSON cheatsheet
# Basic key operators to query the JSON objects :
# #> : Get the JSON object at that path (if you need to do something fancy)
# -> : Get the JSON object at that path (if you don't)
# ->> : Get the JSON object at that path as text
# {obj, n} : Get the nth item in that object
# https://www.postgresql.org/docs/9.4/functions-json.html#FUNCTIONS-JSONB-OP-TABLE
# Date
# date before today
@SkyyySi
SkyyySi / youtube-vanced-alternatives.md
Last active July 20, 2026 05:20
A list of alternatives after the shutdown of Vanced

NONE OF THESE CLIENTS ARE VERIFIED BY ME FOR SECURITY OR ANYTHING ELSE! USE AT YOUR OWN RISK!


Update 2025-07-16: Use either Revanced, NewPipe or Firefox with add-ons. Revanced is my personal pick, due to it being a mod of the official App like Vanced, but better (e.g. it has integration of Sponsor Block, Return YouTube Disklike and more).

I wouldn't recommend Kiwi Browser anymore as it has been discontinued. AFAIK it has been accuired by Microsoft and the extension support has been merged into Edge (Canary). But you'd have to use Edge. Yuck.


@onlurking
onlurking / programming-as-theory-building.md
Last active July 13, 2026 23:44
Programming as Theory Building - Peter Naur

Programming as Theory Building

Peter Naur

Peter Naur's classic 1985 essay "Programming as Theory Building" argues that a program is not its source code. A program is a shared mental construct (he uses the word theory) that lives in the minds of the people who work on it. If you lose the people, you lose the program. The code is merely a written representation of the program, and it's lossy, so you can't reconstruct

@dieechtenilente
dieechtenilente / pihole.list
Last active July 29, 2024 14:18
Blocks many bad domains (pihole, host list, ...)
#
#
#
#
#
# Please use this blocklist: https://github.com/dieechtenilente/hostlist
#
#
#
#