Skip to content

Instantly share code, notes, and snippets.

View Maxiviper117's full-sized avatar
🚧
Building

David Maxiviper117

🚧
Building
View GitHub Profile
@Maxiviper117
Maxiviper117 / 01 Burke Beast Chat mode Sequence Diagram.md
Last active August 19, 2025 14:40
Burke Beast Chat mode Sequence Diagram Prompt (COPY RAW)

Just had a thought, LLMs work best by following a sequence of actions and steps… yet we usually guide them with plain English prompts, which are unstructured and vary wildly depending on who writes them.

Some people in other AI use cases have used JSON prompts for example, but that is still rigid and not expressive enough.

What if we gave AI system instructions as sequence diagrams instead?

What is a sequence diagram:

A sequence diagram is a type of UML (Unified Modeling Language) diagram that illustrates the sequence of messages between objects in a system over a specific period, showing the order in which interactions occur to complete a specific task or use case.

@Maxiviper117
Maxiviper117 / zod-schema.ts
Created August 12, 2025 17:19
Zod V4 Treeify Schema for Flattened Treeify Errors
const TreeifyErrorNode: z.ZodType<any> = z.lazy(() =>
z.object({
errors: z.array(z.string()),
properties: z.record(z.string(), TreeifyErrorNode).optional(),
items: z.array(TreeifyErrorNode.or(z.undefined())).optional(),
})
);
@Maxiviper117
Maxiviper117 / laravel-dev-setup.prompt.md
Created August 3, 2025 19:34
Laravel Dev Setup Copilot Prompt
mode model
agent
GPT-4.1

You are a Laravel development setup assistant. Your task is to setup a Laravel development environment with the necessary tools and configurations. You MUST follow the steps below exactly and in order. Do NOT skip, reorder, or modify any step. Use only the necessary tools to create and edit files, as well as terminal command executions. If any step fails, halt and report the error immediately.

Tasks

Setup Larastan

@Maxiviper117
Maxiviper117 / service-example-1.ts
Last active July 28, 2025 09:07
Figuring out Effect
import { Effect, Layer, Console } from "effect"
// ─────────────────────────────────────────────────────────────────────────────
// 1) CONFIG AS A SERVICE
// ─────────────────────────────────────────────────────────────────────────────
export class Config extends Effect.Service<Config>()("Config", {
accessors: true,
effect: Effect.succeed({
getConfig: Effect.succeed({
logLevel: "DEBUG",
@Maxiviper117
Maxiviper117 / laravel-12-dev-setup.instruction.md
Last active July 26, 2025 08:33
Laravel 12 Dev Setup GitHub Copilot Prompt
mode model
agent
GPT-4.1

You are a Laravel development setup assistant. Your task is to setup a Laravel development environment with the necessary tools and configurations. You MUST follow the steps below exactly and in order. Do NOT skip, reorder, or modify any step. Use only the necessary tools to create and edit files, as well as terminal command executions. If any step fails, halt and report the error immediately.

Tasks

Setup Larastan

@Maxiviper117
Maxiviper117 / franken-local-dev.md
Created July 22, 2025 17:18
FrankenPHP + Docker + Custom HTTPS (laravel.test) Setup Guide for Local Development

FrankenPHP + Docker + Custom HTTPS (laravel.test) Setup Guide

A step‑by‑step guide to run your Laravel app with FrankenPHP in β€œclassic mode” inside Docker, using your own locally‑trusted HTTPS certificates.


πŸ“‹ Prerequisites

  • Docker Desktop installed and running
  • PowerShell on Windows
@Maxiviper117
Maxiviper117 / caddy-php-serve.md
Last active July 30, 2025 12:23
HTTPS for `php artisan serve` on WSL2 via Caddy reverse proxy with auto‑trusted certs.

Prerequisites

  • Windows 10/11 with WSLβ€―2 and your Laravel project working under WSL.
  • Chocolatey installed on Windows (for easy Caddy install).
  • A .test (or similar) hostname mapped to 127.0.0.1 (we’ll set that up below).

1. Install Caddy on Windows

@Maxiviper117
Maxiviper117 / caddy-https.md
Last active July 16, 2025 12:17
Caddy WSL HTTPS Setup Docker

1. Installing mkcert on Windows

According to the official mkcert README, the simplest way on Windows is via Chocolatey:

choco install mkcert -y
mkcert -install

This will download the mkcert.exe installer, create a local CA, and add it to the Windows trust stores.

@Maxiviper117
Maxiviper117 / nuke-php.sh
Created July 14, 2025 11:06
Remove PHP 8.4 and composer form linux
#!/usr/bin/env bash
set -euo pipefail
echo "==> Stopping any running PHP services ..."
for svc in $(systemctl list-units --type=service --all --no-legend | awk '/php.*fpm/ {print $1}'); do
sudo systemctl stop "$svc" || true
done
echo "==> Building package list ..."
mapfile -t php_pkgs < <(dpkg -l | awk '/^ii.*php/ {print $2}')
@Maxiviper117
Maxiviper117 / 4.1-git-commiter.md
Last active July 9, 2025 18:13
4.1 Lazy Man Git V1
description tools
Git Commit Agent v1
changes
codebase
githubRepo
runCommands
search
searchResults
terminalLastCommand
terminalSelection

You are a Git Commit Agent. Your job is to:

  1. Inspect the current working directory’s uncommitted changes by calling the changes tool.
  2. Based on the diff output, stage relevant files and craft clear, concise commit messages using the Conventional Commits format.
  3. Use the terminal tool to run the appropriate git commands (git add, git commit) to record those changes.