Skip to content

Instantly share code, notes, and snippets.

View claytoncollie's full-sized avatar
🏠
Working from home

Clayton Collie claytoncollie

🏠
Working from home
View GitHub Profile
@claytoncollie
claytoncollie / bypass-login.php
Created November 14, 2017 15:37
bypass-login
<?php
/**
* Plugin Name: Bypass Login
* Plugin URL: https://serverpress.com/plugins/bypass-login
* Description: Allows developer bypass of login credentials at /wp-admin
* Version: 1.2.2
* Author: Stephen Carnam
* Author URI: http://steveorevo.com
*/
add_filter( 'wp_insert_post_data', 'prefix_insert_post_data', 10, 3);
/**
* Filter the post data just before it goes to the database.
*
* Inserts custom fields into the post name and post title.
*
* @param array $data An array of slashed post data.
* @param array $postarr An array of sanitized, but otherwise unmodified post data.
* @return array
*/
@claytoncollie
claytoncollie / release.yml
Created June 15, 2021 18:59
Tag, build, release
name: Tag, Build, Release
on:
push:
# Run when tag is pushed to repository
# Pattern matching for semantic version number
# https://semver.org/#summary
tags:
- '*.*.*'
jobs:
build:
@claytoncollie
claytoncollie / cursor-rules.md
Last active August 14, 2025 17:27
Cursor Rules

You are an expert software engineer with versatile full-stack development skills and specialized knowledge in:

  • Modern frontend and backend development
  • Web standards and best practices
  • API design and implementation
  • Security and performance optimization
  • Database design and query optimization
  • Responsive and accessible user interfaces

Developer Persona

@claytoncollie
claytoncollie / setup.sh
Last active March 9, 2026 18:55
terminal install
#!/bin/bash
# setup.sh
# Run from your home directory: chmod +x setup.sh && bash setup.sh
# Sets up iTerm2, Oh My Zsh, and common dev tools on a fresh Mac
set -e
# Colors for output
GREEN='\033[0;32m'
NC='\033[0m'
@claytoncollie
claytoncollie / AGENT-PROMPT.md
Created April 9, 2026 07:55
Obsidian Wiki setup — human guide + one-shot Claude Code prompt

Obsidian Wiki — One-Shot Setup Prompt for Claude Code

Paste everything below the line into Claude Code. Replace the three placeholders before pasting.

  • VAULT_DIR — where you want the wiki to live (e.g., ~/wiki)
  • GITHUB_USERNAME — your GitHub username
  • REPO_NAME — what to call the private repo (e.g., wiki)

Make sure you have git, gh (GitHub CLI, authenticated), and Obsidian installed before running.

@claytoncollie
claytoncollie / SKILL.md
Created August 13, 2026 13:16
wifi-audit — a Claude Code skill that audits and optimizes a home/mesh Wi-Fi network from macOS using real networking tools (signal, channel congestion, latency, LAN inventory, topology) and returns a ranked, data-backed tuning plan. macOS only.
name wifi-audit
description Audit and optimize a home or mesh Wi-Fi network from a macOS machine. Use when the user wants to analyze, troubleshoot, speed up, or "make better/faster/stronger" their Wi-Fi, mesh, router, or home internet. It gathers REAL data with networking tools (signal, channel congestion, latency/loss/jitter, LAN device inventory, topology, router vendor), then returns a concise, ranked, data-backed tuning plan plus exactly where to change each setting. macOS only.
@claytoncollie
claytoncollie / mac-health-SKILL.md
Created August 13, 2026 13:20
Claude Code skill: on-demand Mac health, performance, and safety check. Install as ~/.claude/skills/mac-health/SKILL.md
name mac-health
description On-demand Mac health, performance, and safety check. Discovers the machine fresh each run, measures everything with real commands, and changes nothing without approval. Use for "check my mac", "mac slow", "mac cleanup", "mac tune-up".

Mac Health Check

Diagnose first, then fix. Rediscover everything each run — this skill keeps no state between runs.

Rules