Skip to content

Instantly share code, notes, and snippets.

View jeffpaul's full-sized avatar
🌊
at work, but dreaming of the beach

Jeffrey Paul jeffpaul

🌊
at work, but dreaming of the beach
View GitHub Profile
@kasparsd
kasparsd / readme.md
Last active June 13, 2025 14:26
WordPress handbooks as a single markdown file for LLMs (source https://developer.wordpress.org)
<?php
/**
* Plugin Name: Speculative Loading: Eagerly Prerender Homepage from Singular Template
* Plugin URI: https://gist.github.com/westonruter/eb51e56c7e92f3cd6e3088eb87d9ce07
* Description: When viewing a singular post or page, eagerly prerender the homepage so that navigating there will be instant.
* Requires at least: 5.7
* Requires PHP: 7.2
* Version: 0.1.0
* Author: Weston Ruter
* Author URI: https://weston.ruter.net/
<?php
/**
* Plugin Name: Speculative Loading: Eagerly Prerender First Post in Archive Loop
* Plugin URI: https://gist.github.com/westonruter/78c0640fb108e2e94e7b0a536e9a9140
* Description: For templates that list out one or more posts (i.e. blog index, archives, search results), eagerly prerender the first post in The Loop since it is the most likely link the user will visit.
* Requires at least: 5.7
* Requires PHP: 7.2
* Version: 0.1.0
* Author: Weston Ruter
* Author URI: https://weston.ruter.net/
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active August 23, 2025 10:42
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@lynt-smitka
lynt-smitka / lynt-installer-security.php
Last active September 1, 2022 20:17
This MU plugin blocks attempts to install WP to remote databases. https://smitka.me/2022/07/01/wordpress-installer-attack-race/
<?php
/**
* Plugin Name: Lynt WP Installer Security PoC1
* Author: Vladimir Smitka
* Author URI: https://lynt.cz/
* License: GNU General Public License v3 or later
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
if ( defined( 'WP_SETUP_CONFIG' ) && !empty( $_POST['dbhost'] ) ) {
@alanbsmith
alanbsmith / peach-thyme-bourbon-infusion.md
Created August 27, 2021 23:59
Peach Thyme Bourbon Cocktail 🥃

Peach Thyme Bourbon Cocktail

Infusion

Ingredients

  • 2 cups high-proof bourbon (I like Knob Creek)
  • 1 peach
  • a few small fresh thyme sprigs
@jamesckemp
jamesckemp / changelog.yml
Created June 16, 2021 16:57
Add pull request title to end of changelog file on PR merge
on:
pull_request:
branches:
- dev
types: [closed]
jobs:
update_changelog:
name: Update and Commit Changelog
runs-on: ubuntu-latest
<?php
/*
Migrate from WP User Avatar to Simple Local Avatars
Allows sites to easily move away from the WP User Avatar plugin and switch to Simple Local Avatars instead.
Run by invoking with WP CLI like so:
`wp eval-file migrate-wp-user-avatar.php`
Author: Philip John
@felipeelia
felipeelia / ngrok.php
Last active September 1, 2022 23:41
WordPress MU Plugin to have it working with ngrok.io
<?php
/**
* Place this file in the wp-content/mu-plugins directory and run ngrok with
* `ngrok http http://<local_url> --host-header=<local_url>`
*/
$ngrok_url = '<id>.ngrok.io';
define( 'WP_HOME', 'http://' . $ngrok_url );
define( 'WP_SITEURL', 'http://' . $ngrok_url );
@ChristopherA
ChristopherA / brew-bundle-brewfile-tips.md
Last active August 23, 2025 17:17
Brew Bundle Brewfile Tips

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.