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 / 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 / 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 / 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 / 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:
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 / 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
*/