Skip to content

Instantly share code, notes, and snippets.

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). IMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.

I

# claude-code-prompt
This is my Claude Code system prompt (What I put in my `CLAUDE.md` file).
This is an always evolving work-in-progress that is based on my own experience with software development, and my experience working with Claude Code and other similar systems.
It tries to proactively instill certain behaviours into the AI so that you can develop software that is easier to maintain, and have less frustrating experiences with Claude Code.
The prompt itself is pretty generic and will work well with other AI tools like Cline, Roo Code, without any major changes.
@eplord
eplord / export-custom-packages
Created June 30, 2025 18:22 — forked from hashchange/export-custom-packages
Creates and maintains a list of all manually-installed packages in a Ubuntu distro.
#!/usr/bin/env bash
# Script name
PROGNAME=$(basename "$0")
if [[ "$1" == '--help' || "$1" == '-h' ]]; then
fmt -s <<- HELP_TEXT
Writes and updates a list of all manually-installed packages in a Ubuntu distro.
@eplord
eplord / ClearCaches.bat
Created June 29, 2025 02:12 — forked from sachsgit/ClearCaches.bat
This batch file clears out (completely) the caches for Internet Explorer, Chrome, Firefox and Microsoft Edge browsers, and Java Cache.
@ECHO OFF
:: REM URL: http://stackoverflow.com/questions/12621969/clear-cache-of-browser-by-command-line
IF NOT EXIST "%TEMP%" GOTO :SkipTemp
ERASE "%TEMP%\*.*" /F /S /Q
FOR /D %%i IN ("%TEMP%\*") DO RMDIR /S /Q "%%i"
:SkipTemp
IF NOT EXIST "%TMP%" GOTO :SkipTmp
ERASE "%TMP%\*.*" /F /S /Q
FOR /D %%i IN ("%TMP%\*") DO RMDIR /S /Q "%%i"
function Find-Software {
[CmdletBinding()]
param (
<#
The name, or part of a name, of a package.
Should be enough to get a unique match or the results will get really messy.
#>
[Parameter(Mandatory)]
[Alias('Name')]
function Get-InstalledSoftware {
<#
.SYNOPSIS
Get all installed from the Uninstall keys in the registry.
.DESCRIPTION
Read a list of installed software from each Uninstall key.
This function provides an alternative to using Win32_Product.
.EXAMPLE
Get-InstalledSoftware
@eplord
eplord / aveyo_edge_removal.bat
Created June 24, 2025 02:04 — forked from ishad0w/aveyo_edge_removal.bat
AveYo (Microsoft Edge Removal)
@(set "0=%~f0"^)#) & powershell -nop -c iex([io.file]::ReadAllText($env:0)) & exit /b
#:: just copy-paste into powershell - it's a standalone hybrid script
sp 'HKCU:\Volatile Environment' 'Edge_Removal' @'
$also_remove_webview = 1
## why also remove webview? because it is 2 copies of edge, not a slimmed down CEF, and is driving bloated web apps
$also_remove_widgets = 1
## why also remove widgets? because it is a webview glorified ad portal on msn and bing news cathering to stupid people
$also_remove_xsocial = 1
## why also remove xsocial? because it starts webview setup every boot - xbox gamebar will still work without the social crap

Simple dns resolver implemented in go

Build Status Go Walker

Based on based on miekg/dns.

Features

  • Uses provided dns servers array in random order
  • Retries dns requests in case of i/o timeout
@eplord
eplord / README.md
Created June 2, 2025 04:49
patternalyzer

Usage

% go run main.go /tmp/example.com.txt | sort | uniq -c | sort -n | awk '{print $2}' | tail -n 10