Skip to content

Instantly share code, notes, and snippets.

View ideadude's full-sized avatar

Jason Coleman ideadude

View GitHub Profile
@ideadude
ideadude / install-automem.md
Created February 5, 2026 00:56
Claude Skill to Install AutoMem how Jason did on his local Mac and Ubuntu machines.

Install AutoMem for Claude Code

Install and configure AutoMem - a long-term memory system for Claude Code that persists across sessions.

What This Does

AutoMem gives Claude Code persistent memory using:

  • FalkorDB (graph database) for relationship tracking
  • Qdrant (vector database) for semantic search
  • MCP integration for seamless Claude Code access
@ideadude
ideadude / create-soul.md
Created February 5, 2026 00:55
Skill for Claude Code with AutoMem running to set up SOUL.md and IDENTITY.md

Create Soul and Identity

Help me create a custom soul and identity for Claude in this workspace.

Instructions

  1. First, read these template files from the openclaw reference:
    • https://github.com/openclaw/openclaw/tree/main/docs/reference/templates/SOUL.md
    • https://github.com/openclaw/openclaw/tree/main/docs/reference/templates/IDENTITY.md
  • https://github.com/openclaw/openclaw/tree/main/docs/reference/templates/BOOTSTRAP.md
@ideadude
ideadude / my_excerpt_continue_reading_link.php
Last active October 12, 2025 18:07
Add a continue reading link on archive pages with Memberlite Theme.
@ideadude
ideadude / htaccess_block_direct_access_of_php_files.txt
Created August 27, 2025 16:45
Block direct execution of PHP inside wp-content/plugins or wp-content/themes
# Block direct execution of PHP inside wp-content/plugins or wp-content/themes
# Add these lines above the WP core rules in .htaccess.
RewriteEngine On
RewriteRule ^wp-content/plugins/[^/]+/.*\.php$ - [F,L]
RewriteRule ^wp-content/themes/[^/]+/.*\.php$ - [F,L]
@ideadude
ideadude / encrypt_some_options.php
Created August 4, 2025 20:39
Encrypt/decrypt some options stored in the wp_options table.
<?php
/**
* Encrypt/decrypt some options stored in the wp_options table.
* Note this will only work for options that are stored as strings.
*
* title: Encrypt/Decrypt Some Options
* layout: snippet
* collection:
* category:
* link:
@ideadude
ideadude / webhook-handler.php
Created May 7, 2025 12:05
Dummy webhook handler for testing. Saves incoming data to a file.
<?php
/**
* Just place this file on the webserver and then point your webhook to the location.
* This will save the incoming timestamp and data to a webhook-handler.log file in the same folder.
* Use `tail -f webhook-handler.log` to monitor the log file.
*/
// Set the log file path
$logFile = __DIR__ . '/webhook-handler.log';
$timestamp = date('Y-m-d H:i:s');
@ideadude
ideadude / my_pmproll_track_login_spam.php
Last active May 22, 2025 12:46
Consider failed login attempts as spam, and if a user is consider a spammer, block them from logging in.
<?php
/**
* We will consider failed login attempts as spam.
* If a user is consider a spammer, block them from logging in.
*
* Some ideas if we merge this into PMPro core:
* - Need documentation RE bypassing the login block.
* - Consider adding settings RE what spammers are blocked from.
* - Consider a way to view/clear the spam activity queue.
* - We know the username they tried to login with,
@ideadude
ideadude / my_init_memory.php
Created March 24, 2025 14:22
Increase memory and execution time for WP admins and crons.
<?php
/**
* Increase memory and execution time for WP admins and crons
* Add this code into a custom plugin or code snippet.
*/
function my_init_memory() {
if( current_user_can( 'manage_options' ) ) {
ini_set( 'max_execution_time', 300 ); //300 seconds = 5 minutes
ini_set( 'memory_limit', '812M' );
} elseif ( wp_doing_cron() ) {
@ideadude
ideadude / my_wp_plugin_check_ignore_directories.php
Created May 27, 2024 21:16
Exclude some extra dirs from the WordPress plugin check plugin.
<?php
/**
* Exclude some extra dirs from the WordPress plugin check plugin.
*/
function my_wp_plugin_check_ignore_directories( $dirs ) {
// For reference, the default dirs as of v1.0.1
// $default_ignore_directories = array(
// '.git',
// 'vendor',
// 'node_modules',
@ideadude
ideadude / my_pmpro_category_filter.php
Last active April 14, 2024 16:18 — forked from strangerstudios/my_pmpro_category_filter.php
Add specific members-only categories back to main loop when filtering searches and archives.
<?php
/**
* Add specific members-only categories back to main loop
* when filtering searches and archives.
* Updated for PMPro 3.0+.
*
* You can add this recipe to your site by creating a custom plugin
* or using the Code Snippets plugin available for free in the WordPress repository.
* Read this companion article for step-by-step directions on either method.
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/