| id | DE38DEE7-10BB-43D4-B74F-CF47E30CE946 |
|---|---|
| name | Unslopify |
| icon | wand.and.stars |
| tooltip | Deep cleanup audit with safe implementation |
| description | Audit and clean code slop across focused lanes: dead code, weak types, cycles, error hiding, legacy paths, bad comments, and obvious duplication. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # patch-claude-code.sh — Rebalance Claude Code prompts to fix corner-cutting behavior | |
| # | |
| # What this does: | |
| # Patches the npm-installed @anthropic-ai/claude-code cli.js to rebalance | |
| # system prompt instructions that cause the model to cut corners, simplify | |
| # excessively, and defer complicated work. | |
| # |
| name | pdf-ocr-feedback |
|---|---|
| description | High-accuracy OCR pipeline using Maj@K consensus voting, structured self-evaluation, and adaptive compute budgets to achieve ≥95% transcription accuracy. |
Use when transcribing PDF pages via vision model and you need high accuracy — especially for:
- Equations or mathematical notation
- Tables with complex structure (3+ columns, merged cells)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - name: Overprovision like the pros' | |
| hosts: all | |
| tasks: | |
| - name: Install early OOM killer and zram | |
| ansible.builtin.apt: | |
| pkg: | |
| - earlyoom | |
| - zram-tools | |
| - name: Configure early OOM killer | |
| ansible.builtin.lineinfile: |
An example page for https://www.evidence.studio/
Many Components now have a "compare to" option, and thats going to serve most purposes, but what if you want to plot a metric over time against a comparison period?
This is definitely more involved, but it solves that case, and allows for a little less repetition in component settings. This is probably not the only way to do it, just an example for anyone that might find it useful
This example only uses the demo_daily_orders source, so can be tried out by anyone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #cloud-config | |
| # Enable automatic package updates and upgrades during cloud-init execution | |
| package_update: true | |
| package_upgrade: true | |
| packages: | |
| # Security and Hardening | |
| - ufw | |
| - fail2ban |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { getZodConstraint, parseWithZod } from "@conform-to/zod" | |
| import type { HTMLAttributes } from "astro/types" | |
| import { ZodAny, z, type ZodIssue } from "zod" | |
| export type Constraint = ReturnType<typeof getZodConstraint>[0] | |
| export type FieldAttributes = { | |
| name: string | |
| value: string | |
| type: NonNullable<HTMLAttributes<"input">["type"]> | |
| } & Partial<Record<Lowercase<keyof Constraint>, any>> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| namespace HakunaMatata; | |
| use Doctrine\DBAL\Exception; | |
| use Doctrine\DBAL\Query\QueryBuilder; | |
| use Doctrine\DBAL\Types\Type; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| use Symfony\Component\HttpKernel\Event\ControllerEvent; | |
| use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; | |
| class SessionListener | |
| { | |
| public function __construct( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| import type { ImageMetadata, ImageTransform } from "astro"; | |
| import { getImage } from "astro:assets"; | |
| import LoadableImage from "./LoadableImage.astro"; | |
| type Props = { | |
| src: ImageMetadata; | |
| alt: string; | |
| /** | |
| * Array of screens to generate the image for i.e [320, 480, 1200] |
NewerOlder