Skip to content

Instantly share code, notes, and snippets.

View lukecav's full-sized avatar
🙏
If we're kind and polite, the world will be right.

Luke Cavanagh lukecav

🙏
If we're kind and polite, the world will be right.
View GitHub Profile
@lukecav
lukecav / Commands
Created October 29, 2024 18:19
How to temporarily stop and start the Imunify360 service
systemctl stop imunify360
systemctl start imunify360
@lukecav
lukecav / Command
Last active October 16, 2024 16:03
Update Advanced Custom Field plugin using WP-CLI
wp plugin install --force https://www.advancedcustomfields.com/latest/
@lukecav
lukecav / Prompt examples
Last active October 4, 2023 00:37
DALLE-3 - Prompt Examples
Prompts
cinemaitc movie still of
cinematic scene of, ultra realistic, high-quality photos, UHD, 8k uhd, 32k uhd
Ratios
Wide 1792 x 1024 pixels
Square 1024 x 1024
Talk 1024 x 1792
@lukecav
lukecav / robots.txt
Created September 29, 2023 20:58
Disallow Google Extended for site content being included in AI training (Bard and Vertex AI generative APIs)
User-agent: Google-Extended
Disallow: /
@lukecav
lukecav / functions.php
Created September 26, 2023 18:14
Disable the after payment action for email notification to remove any delay in sending in EDD
add_filter( 'edd_use_after_payment_actions', '__return_false' );
@lukecav
lukecav / Prompts
Last active December 22, 2023 21:19
DALL-E Prompts - Cinematic
Cinematic cameras
Captured by (camera)
Sony cinealta
Cannon cinema eos
Phantom high speed camera
Arri Alexa
Arri Alexa 35
Super-16
@lukecav
lukecav / Cron events
Created September 1, 2023 17:04
EWWW Image Optimizer plugin cron events
wp_ewwwio_image_optimize_cron
ewww_image_optimizer_auto
@lukecav
lukecav / Prompt examples
Last active December 4, 2024 20:36
Stable Diffusion XL Prompt examples
Cinematic images
detailed textures, sharp focus, ultra-high pixel detail, intricate, realistic, movie scene, cinematic, high-quality, full colors, incredibly detailed, 4k, 8k, 16k, hyper-realistic, RAW photo, masterpiece, ultra-detailed, professionally color graded, professional photography
cinematic, cinematic lighting, 8K raw photo, best quality, masterpiece, ultra high res, realistic, photography, digital painting, vibrant, intricate details, high-definition, detailed, sharp focus, 8k uhd
Lens Types
Wide-angle lens
Telephoto lens
@lukecav
lukecav / robots.txt
Created August 7, 2023 20:15
Disallowing GPTBot from OpenAI on your site
User-agent: GPTBot
Disallow: /
@lukecav
lukecav / wc_auto_complete_virtual.php
Created August 4, 2023 13:51 — forked from jessepearson/wc_auto_complete_virtual.php
Auto Complete all WooCommerce virtual orders
<?php // only copy this line if needed
/**
* Auto Complete all WooCommerce virtual orders.
*
* @param int $order_id The order ID to check
* @return void
*/
function custom_woocommerce_auto_complete_virtual_orders( $order_id ) {