Skip to content

Instantly share code, notes, and snippets.

View MrHappyAsh's full-sized avatar

Ashley MrHappyAsh

View GitHub Profile
@velvet-shark
velvet-shark / openclaw-50-day-prompts.md
Last active August 23, 2026 00:12
OpenClaw after 50 days: all prompts for 20 real workflows (companion to YouTube video)

OpenClaw after 50 days: all prompts

Companion prompts for the video: OpenClaw after 50 days: 20 real workflows (honest review)

These are the actual prompts I use for each use case shown in the video. Copy-paste them into your agent and adjust for your setup. Most will work as-is or the agent will ask you clarifying questions.

Each prompt describes the intent clearly enough that the agent can figure out the implementation details. You don't need to hand-hold it through every step.

My setup: OpenClaw running on a VPS, Discord as primary interface (separate channels per workflow), Obsidian for notes (markdown-first), Coolify for self-hosted services.

@lightningspirit
lightningspirit / doing-it-wrong-filter.php
Created November 21, 2024 22:13
Remove notice messages for _load_textdomain_just_in_time being loaded before init, in WordPress 6.7
<?php
/**
* Plugin Name: Shut I18n Doing It Wrong Messages
* Description: Filters _load_textdomain_just_in_time doing it wrong messages in 6.7
* Author: Move Your Digital, Inc.
* Author URI: https://moveyourdigital.com
* Version: 0.0.1
*
* @package SIDIWM
*/
@bomsn
bomsn / automatewoo_export_snippet.php
Created July 30, 2022 11:32
Export AutomateWoo plugin optin emails ( for WordPress - WooCommerce )
<?php
header('Content-type: text/csv');
header('Content-Disposition: attachment; filename="optins-data-' . date("d/m/Y") . '.csv"');
header('Pragma: no-cache');
header('Expires: 0');
$file = fopen('php://output', 'w');
fputcsv($file, array('Name', 'Email'));
$query = new AutomateWoo\Customer_Query();
@woogists
woogists / wc-show-cart-contents-total-ajax.php
Last active December 31, 2023 10:08
[Theming Snippets] Show cart contents / total Ajax
/**
* Show cart contents / total Ajax
*/
add_filter( 'woocommerce_add_to_cart_fragments', 'woocommerce_header_add_to_cart_fragment' );
function woocommerce_header_add_to_cart_fragment( $fragments ) {
global $woocommerce;
ob_start();
@DavidWells
DavidWells / reset.css
Last active August 15, 2026 04:31 — forked from karbassi/reset.css
CSS reset. Follow me on the twitters for more tips: https://twitter.com/davidwells
/* http://meyerweb.com/eric/tools/css/reset/
v2.0-modified | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@thenbrent
thenbrent / extend-subscription-intervals.php
Last active May 14, 2024 21:04
Add a new billing interval to WooCommerce Subscriptions. Specifically a "every 10 weeks" billing interval to selling a subscription to something and be charged every 10 weeks.
<?php
/**
* Plugin Name: Extend WooCommerce Subscription Intervals
* Description: Add a "every 10 weeks" billing interval to WooCommerce Subscriptions
* Author: Brent Shepherd
* Author URI: http://brent.io
* Version: 1.0
* License: GPL v2
*/
@cosmocatalano
cosmocatalano / instagram_scrape.php
Last active June 9, 2026 18:03
Quick-and-dirty Instagram web scrape, just in case you don't think you should have to make your users log in to deliver them public photos.
<?php
//returns a big old hunk of JSON from a non-private IG account page.
function scrape_insta($username) {
$insta_source = file_get_contents('http://instagram.com/'.$username);
$shards = explode('window._sharedData = ', $insta_source);
$insta_json = explode(';</script>', $shards[1]);
$insta_array = json_decode($insta_json[0], TRUE);
return $insta_array;
}