Skip to content

Instantly share code, notes, and snippets.

View georgestephanis's full-sized avatar

George Stephanis georgestephanis

View GitHub Profile
@georgestephanis
georgestephanis / branch-blueprint.json
Created September 1, 2026 21:29
Playground blueprint: pento/react @ swap-to-emoji-picker-element
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"preferredVersions": {
"php": "8.5",
"wp": "latest"
},
"landingPage": "/?name=react-plugin-demo",
"steps": [
{
"step": "login",
@georgestephanis
georgestephanis / outbound-firewall.php
Created August 7, 2026 20:11
Drop this into your `mu-plugins` for a local clone of a site. Prevent outbound http calls to anywhere unless you approve them.
<?php
/**
* Plugin Name: Outbound Firewall
* Description: Blocks all outgoing HTTP requests and email unless the destination domain is on the allowlist. Logs blocked attempts for admin review under Tools → Outbound Firewall.
* Version: 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
@georgestephanis
georgestephanis / Leaders and Supports.md
Created June 26, 2026 13:49
11th Edition Leaders and Supports by faction

11th Edition: Leaders & Supports by Faction

Characters that can attach to other units, grouped by the slot they fill.


Adepta Sororitas

Leaders

@georgestephanis
georgestephanis / conversation-log.html
Last active June 22, 2026 20:28
Ever want to keep a log of conversations you have with claude in your projects, to serve as instructional tools or something to look at and review later? This'll do it, just drop the python file in `~/.claude/hooks/` and then drop the html file in your projects so it can render the generated jsonl file for you easily!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Conversation Log</title>
<script src="https://cdn.jsdelivr.net/npm/marked@15/marked.min.js"></script>
<style>
* { box-sizing: border-box; }
body {

Warhammer 40,000 (11th Edition) Core Rules Reference

A comprehensive rules reference for answering rules questions. Covers all major rules topics from the Core Rules PDF. Section numbers in parentheses reference the original document (e.g., 01.01).


Table of Contents

  1. Core Concepts
  2. Datasheets
@georgestephanis
georgestephanis / backlinks.sh
Created April 18, 2026 23:33 — forked from retlehs/CC.md
Backlinks for any domain via Common Crawl
@georgestephanis
georgestephanis / kadence-elements-preview-fix.php
Created March 17, 2026 13:57
If using Kadence Elements to override a template, the WordPress Block Editor's "Preview in new tab 🔗" link renders the saved version of the post, rather than the unsaved changes in the block editor that the user is trying to preview. This code will fix that, but only fix it for the post content -- if there are other unsaved changes such as postm…
<?php
/**
* Kadence Elements Preview Fix
*
* This plugin fixes the content for Kadence Elements previews in
* Gutenberg. When previewing, the unsaved content is spliced into
* $GLOBALS['post'], but Kadence runs pulling the saved content
* instead. This plugin ensures that the correct content is
* displayed in the preview.
*/
@georgestephanis
georgestephanis / wp-freeze.php
Last active February 4, 2026 17:59
Drop this file into `wp-content/mu-plugins/` and it will disable login and authentications. Why would you want this? Maybe you need to make an editorial freeze before migrating a site from one host to another, and don't want to risk admins writing content that would get lost in the migration.
<?php
// Usage: Drop this file into `wp-content/mu-plugins/` and it will disable logins and authentication.
namespace WPFreeze;
// In addition, the salts should be temporarily rotated in wp-config.php to invalidate existing sessions.
define( 'WP_FREEZE_MESSAGE', 'This site is currently frozen for maintenance. Please check back later.' );
<?php
// Plugin Name: George Load Time Debugging
function qm_track_current_action( $suffix = '' ) {
static $last_action = null;
if ( $last_action ) {
do_action( 'qm/stop', $last_action );
}
if ( function_exists( 'current_action' ) ) {
<?php
/**
* Plugin name: Georgestephanis Custom CSS
*/
namespace Georgestephanis\CustomCSS;
add_action( 'admin_menu', function() {
add_theme_page(