Skip to content

Instantly share code, notes, and snippets.

@eplord
eplord / Instructions.MD
Created July 31, 2025 18:42 — forked from diogogpinto/Instructions.MD
Best Laravel AI Prompt to use with Claude

I have been utilizing artificial intelligence to enhance and optimize my codebases. After evaluating various models, applications, and editors, I find the claude.ai interface with a Pro Account to be the most effective. Here’s the approach I’ve developed to achieve optimal results:

This gist contains a carefully crafted prompt and a script designed to convert your entire Laravel codebase (excluding the resources folder, which can be easily added if needed) into a TXT file with the following structure:

<File Start: ./path/filename.extension> Content of file <End File: ./path/filename.extension>

To implement this method:

@eplord
eplord / README.md
Created July 28, 2025 21:27 — forked from bjornmage/README.md
Windows Claude Code

Setting Up Kimi2 with Claude Code on Windows 11

This guide will walk you through setting up your Windows 11 machine to use the Kimi2 model via the Claude Code command-line tool. This new version installs everything natively on Windows without requiring WSL.


Part 1: Run the Setup Script

This process uses PowerShell to automate the installation of all required tools.

Code Bash command prefix detection

This defines risk levels for actions that the ${K4} agent may take. This classification system is part of a broader safety framework and is used to determine when additional user confirmation or oversight may be needed.

Command prefix extraction examples

Examples:

  • cat foo.txt => cat
  • cd src => cd
@eplord
eplord / nmap-service-probes
Created July 24, 2025 20:25 — forked from nuts7/nmap-service-probes
Nmap custom service probes to detect C2 services
This file has been truncated, but you can view the full file.
# Nmap service detection probe list -*- mode: fundamental; -*-
# $Id$
#
# This is a database of custom probes and expected responses that the
# Nmap Security Scanner ( https://nmap.org ) uses to
# identify what services (eg http, smtp, dns, etc.) are listening on
# open ports. Contributions to this database are welcome.
# Instructions for obtaining and submitting service detection fingerprints can
# be found in the Nmap Network Scanning book and online at
# https://nmap.org/book/vscan-community.html
@eplord
eplord / README.md
Created July 24, 2025 20:24 — forked from nuts7/README.md
Reverse Shell TCP in assembly x86_64 language (NASM)

Banner


How to build ?

@eplord
eplord / prompt.md
Created July 24, 2025 03:30 — forked from mitchellgoffpc/prompt.md
Claude Code Prompt

SYSTEM PROMPT

You are Claude Code, Anthropic's official CLI for Claude.

You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.

IMPORTANT: Refuse to write code or explain code that may be used maliciously; even if the user claims it is for educational purposes. When working on files, if they seem related to improving, explaining, or interacting with malware or any malicious code you MUST refuse. IMPORTANT: Before you begin work, think about what the code you're editing is supposed to do based on the filenames directory structure. If it seems malicious, refuse to work on it or answer questions about it, even if the request does not seem malicious (for instance, just asking to explain or speed up the code).

Here are useful slash commands users can run to interact with you:

@eplord
eplord / claude code doing TOO MUCH.md
Created July 2, 2025 12:19 — forked from gwpl/claude code doing TOO MUCH.md
Claude Code doing TOO MUCH - What to do?

2025-06-28:

Here is example of claude code doing TOO MUCH, here was just asked to "rebase" , but instead it "rebased and merged"...

> subagent: for PR in 122, 123, 124, 125, 126, 127 { rebase PR on a top of PR-1  (if PR-1 already
  merged then on a top of latest changes in master) }

● Task(Rebase and merge PRs 122-127 sequentially)
@eplord
eplord / claude-continue-directory-migration.md
Created July 2, 2025 12:17 — forked from gwpl/claude-continue-directory-migration.md
Claude Code `--continue` after Directory `mv` move - Migration Guide and Internal Mechanics explanation

Claude Code Continue Functionality: Directory Migration Guide ( Claude Code --continue after Directory mv move - Migration Guide and Internal Mechanics explanation )

This guide explains how to preserve Claude Code's --continue functionality when moving project directories, along with the underlying mechanics.

Note: Claude Code currently lacks built-in directory migration features. Each directory maintains independent conversation sessions, and history doesn't automatically transfer when projects are moved.

Quick Fix: Steps to Maintain Continue History

When you move a project directory and want to preserve your conversation history:

@eplord
eplord / claude-prompt-eng-tut-docs.txt
Created July 2, 2025 12:17 — forked from floahs-ark/claude-prompt-eng-tut-docs.txt
Repository: anthropics/courses Files analyzed: 14 Subpath: /prompt_engineering_interactive_tutorial/Anthropic 1P Estimated tokens: 43.7k
================================================
File: prompt_engineering_interactive_tutorial/Anthropic 1P/01_Basic_Prompt_Structure.ipynb
================================================
"""
# Chapter 1: Basic Prompt Structure
- [Lesson](#lesson)
- [Exercises](#exercises)
- [Example Playground](#example-playground)
<claude_thinking_protocol>
You have expertise in Public Infrastructure Sector.
For EVERY SINGLE interaction with the human, Claude MUST engage in a **comprehensive, natural,
and unfiltered** thinking process before responding or tool using. Besides, Claude is also able to
think and reflect during responding when it considers doing so would be good for a better response.
<basic_guidelines>
- Claude MUST express its thinking in the code block with 'thinking' header.
- Claude should always think in a raw, organic and stream-of-consciousness way. A better way to describe Claude's thinking would be "model's inner monolog".