Skip to content

Instantly share code, notes, and snippets.

View gbissland's full-sized avatar

Gareth Bissland gbissland

View GitHub Profile
You are the orchestrator.
You think, design and plan architectural decision only. Write only essential technical specs and reasoning. Prefer not to write code yourself unless all executors fail.
Never assume the user's intent. Ask for clarification for ambiguous situations.
Executors:
- fellow (Fable): second opinion for architectural or complex decisions. For hardest problem only.
- mechanical (Sonnet): mechanical for fast/small redundant tasks.
- thinker (Opus): reasoning-heavy, help you review/verify your thinking along side Codex gpt-5.6-sol below.
@maddisondesigns
maddisondesigns / functions.php
Last active September 23, 2026 13:30
Disable AI Support and Remove Connectors Screen in WordPress
/**
* Redirect the new AI Settings > Connectors screen back to the Dashboard so it can't be accessed
*/
function mytheme_admin_redirects() {
global $pagenow;
/* Redirect Connectors screen back to main Dashboard page */
if( $pagenow == 'options-connectors.php' ) {
wp_redirect( admin_url( '/' ), 301 );
exit;
@razamit
razamit / statusline-command.py
Last active June 3, 2026 19:16
Claude Code custom status line
#!/usr/bin/env python3
import json, sys, subprocess, os, time
# Force UTF-8 output on Windows
sys.stdout.reconfigure(encoding='utf-8', errors='replace')
data = json.load(sys.stdin)
model = data.get('model', {}).get('display_name') or data.get('model', {}).get('id', 'Unknown')
cwd = data.get('workspace', {}).get('current_dir') or data.get('cwd') or os.getcwd()
@flomero
flomero / docker-compose.yml
Last active October 19, 2025 15:09
Twenty x Coolify using Docker Compose
name: twenty
services:
server:
image: 'twentycrm/twenty:${TAG:-latest}'
volumes:
- 'server-local-data:/app/packages/twenty-server/.local-storage'
ports:
- '3000:3000'
environment:
SERVICE_FQDN_SERVER_3000: null
@gbissland
gbissland / devitkit.php
Created March 8, 2025 04:16
Configure DevKit error logs for Nginx Error logs on Gridpane
<?php
/**
* DevKit related tweaks
* https://dplugins.com/downloads/devkit/
*
* Must be included in functions.php
*
* @package GenerateChild
*/
# documentation: https://twenty.com/developers/section/self-hosting/docker-compose
# slogan: Twenty is a CRM designed to fit your unique business needs.
# tags: crm, self-hosted, dashboard
# logo: svgs/twenty.svg
# port: 3000
services:
change-vol-ownership:
image: ubuntu
user: root
@gbissland
gbissland / gp_global_color_grid.php
Last active January 14, 2025 20:33
GP Global Color Grid (for Styleguide)
<?php
/**
* Remove this opening PHP tag when adding to your theme's functions.php
* It's included here for proper syntax highlighting in the gist.
*/
/**
* Displays an grid of the GeneratePress global color palette with color blocks.
* Built to use on website style guides with Beaver Builder but can be used anywhere.
* Global Colors must be set in the GP Customiser
@jodzeee
jodzeee / gist:dd5e65759ae0d386d369c95de4d69d5b
Created January 6, 2025 21:09
Gravity Forms - send to spam if URLs or email in text field
<?php
add_filter( 'gform_entry_is_spam', 'filter_gform_entry_is_spam_urls_and_emails', 11, 3 );
function filter_gform_entry_is_spam_urls_and_emails( $is_spam, $form, $entry ) {
if ( $is_spam ) {
return $is_spam;
}
$field_types_to_check = array(
'hidden',
@Pross
Pross / functions.php
Created August 20, 2024 12:53
Show in pages list if BB layout has unpublished changes
add_filter( 'display_post_states', function( $post_states, $post ) {
if ( get_post_meta( $post->ID, '_fl_builder_enabled', true ) ) {
$draft = get_post_meta( $post->ID, '_fl_builder_draft', true );
$live = get_post_meta( $post->ID, '_fl_builder_data', true );
if ( '' !== $draft && $draft != $live ) {
$post_states['bb_draft'] = 'Unpublished Changes';
}
}