Skip to content

Instantly share code, notes, and snippets.

View eeppo's full-sized avatar
🫡

Eeppo eeppo

🫡
  • Finland
View GitHub Profile
@mberman84
mberman84 / prompts.md
Last active March 22, 2026 02:09
Prompts

OpenClaw: Extracted Prompts (Generalized)

22 copy/paste-ready prompts for building your own AI agent system. Each prompt builds a functional system or implements a proven best practice you can hand to an AI coding assistant.

Replace placeholders like <your-workspace>, <your-messaging-platform>, and <your-model> with your own values.


1. Personal CRM

@mberman84
mberman84 / PRD.md
Created February 17, 2026 19:59
OpenClaw PRD

PRD.md - Product Requirements & Feature Inventory

Everything built on top of the base OpenClaw platform. Canonical reference for what exists, where it lives, and how it works. Operational use cases and workflow playbooks live in docs/USE-CASES-WORKFLOWS.md.


Table of Contents

  1. Operational Use Cases & Workflows
@Niq1982
Niq1982 / card.php
Last active June 15, 2025 01:18
Load more to WordPress blog archive using AlpineJS and Axios
<div class="card">
<?php if ($args['link']) : ?>
<a href="<?php echo esc_url($args['link']); ?>" class="global-link">
</a>
<?php endif; ?>
<div class="card-image">
<?php wp_get_attachment_image($args['image']); ?>
</div>
@todeveni
todeveni / wp_collate.php
Last active March 6, 2023 06:22
Convert WordPress collation to utf8mb_swedish_ci
<?php
if ( ! defined( 'WP_CLI' ) ) {
print "Run with wp eval-file wp_collate.php\n";
exit;
}
global $wpdb, $table_prefix;
$wp_config_path = \WP_CLI\Utils\locate_wp_config();
@andrewodri
andrewodri / remove.sql
Created February 26, 2020 18:44
Remove all users from Wordpress Multisite that do not belong to other sites
SET @site_id = 1;
SELECT user_id
FROM wp_usermeta
WHERE meta_key = CONCAT('wp_', @site_id, '_capabilities')
AND meta_value LIKE 'a:1:{s%'
HAVING user_id NOT IN (
SELECT user_id
FROM wp_usermeta
WHERE meta_key LIKE CONCAT('wp_', @site_id, '_capabilities')
@Ruzgfpegk
Ruzgfpegk / wp-perf.md
Last active June 28, 2025 03:36
WordPress Performance & Development tips
@Webkadabra
Webkadabra / brand_names_list.txt
Last active April 9, 2019 06:56
A list of randomly generated brand names (PHP)
setuzi
golaci
cobisy
ruzajy
dubevi
gikicy
gisuxy
sotypi
loxela
kugaxa
@taeo
taeo / delete_bad_usermeta.sql
Created February 22, 2019 00:38
WooCommerce - delete users with customer role and no orders (likely spam accounts)
/* Delete usermeta that nas no related user in users */
DELETE FROM wp_usermeta WHERE wp_usermeta.user_id NOT IN (SELECT ID FROM wp_users);
@Niq1982
Niq1982 / flywheel-local-xdebug-vscode.md
Last active December 17, 2022 09:33
WordPress debugging with XDebug on Flywheel Local & VSCode

Flywheel Local configuration

Flywheel Local has XDebug installed by default if you choose “Custom” instead of “Preferred” when setting up a new local environment. If you don’t know which your current site is running, you can detect it by going to ”Site Setup” tab. If you can change the PHP version there, you have the “Custom” environment running. If not, just export your site, import it back and choose “Custom”.

Now that we have the right environment, remember what PHP version you are running, open the right PHP settings file (for example /Local Sites/my_site/conf/php/7.0.3/php.ini) and add these lines in the [Xdebug] section:

xdebug.remote_enable=1
xdebug.remote_autostart=1

Save the php.ini and restart your site container in Flywheel to apply new settings.

@Niq1982
Niq1982 / debug-translations
Created July 11, 2017 09:57
Find out what WordPress translation text domains an element is using
add_filter( 'gettext', 'debug_translations', 30, 3 );
function debug_translations( $translated_text, $text, $domain ) {
if ( $translated_text ) {
$output = $translated_text;
$output .= '<span style="font-size: 18px; color: white; line-height: 1; background-color: red; width: 24px; padding: 3px; border-radius: 18px;" title="text-domain: ';
$output .= $domain;
$output .= '">�</span>';
}
return $output;
}