Skip to content

Instantly share code, notes, and snippets.

View claudiosanches's full-sized avatar
👨‍💻

Claudio Sanches claudiosanches

👨‍💻
View GitHub Profile
@claudiosanches
claudiosanches / SKILL.md
Created July 29, 2026 23:18
Claude Code - Panel Review (Multiple Agents)
name panel-review
description Multi-agent code review — run four independent reviewers in parallel (Claude Code, OpenAI Codex, Google Antigravity/agy, GitHub Copilot), then cross-verify their findings against the real code and produce one consolidated, de-duplicated report ranked by severity. Use when the user asks to review the current branch/PR/diff with the panel, e.g. "panel review", "run the reviewers", "review with codex/agy/copilot", "/panel-review". Accepts an optional target: a base ref, a PR number, --staged, --uncommitted, or specific paths.

Panel review

Overview

Review a change with four independent reviewers running in parallel, then reconcile their output.

@claudiosanches
claudiosanches / statusline.sh
Created July 29, 2026 23:17
Claude Code Statusline
#!/bin/bash
export LC_NUMERIC=C
input=$(cat)
MODEL=$(echo "$input" | jq -r '.model.display_name')
DIR=$(echo "$input" | jq -r '.workspace.current_dir')
COST=$(echo "$input" | jq -r '.cost.total_cost_usd // 0')
PCT=$(echo "$input" | jq -r '.context_window.used_percentage // 0' | cut -d. -f1)
DURATION_MS=$(echo "$input" | jq -r '.cost.total_duration_ms // 0')
CTX_TOKENS=$(echo "$input" | jq -r '.context_window.total_input_tokens // 0')
@claudiosanches
claudiosanches / Mailhog_installation.md
Last active May 31, 2023 14:16 — forked from dipenparmar12/Mailhog_installation.md
Mailhog installation guide (Linux)

Mailhog

1. Install GoLang

Install

Mailhog Requires Go 1.4+ to run so we will install GO language in system.

sudo apt install golang-go -y

Cross verify Go language is successfully installed.

@claudiosanches
claudiosanches / svn-checkout.sh
Last active July 4, 2022 18:32
SVN - Checkout project and don't fetch content for all tags
svn co --depth=files https://plugins.svn.wordpress.org/woocommerce/ # Checkout project without fetching content
cd woocommerce
svn up assets branches trunk # Fetch content for everything except for the tags
svn up --set-depth=immediates tags # Create tags directory tree, but don't fetch any content
svn up --set-depth=infinity tags/<tag_number> # Fetch content for a tag
@claudiosanches
claudiosanches / woocommerce-pay-button-sample.php
Created November 7, 2019 20:40
WooCommerce - Pay Button sample
<?php
/**
* Plugin Name: Test "pay button" support
*/
add_action( 'plugins_loaded', function() {
class My_Custom_Gateway extends WC_Payment_Gateway {
public function __construct() {
$this->id = 'custom_gateway';
$this->has_fields = false;
@claudiosanches
claudiosanches / functions.php
Created September 21, 2019 18:29
WooCommerce - Change "Sale!" text
add_filter( 'woocommerce_sale_flash', function( $string ) {
echo '<span class="onsale">Promoção!</span>'
}, 10 );
@claudiosanches
claudiosanches / run.php
Created January 18, 2019 18:19
Small script to migrate Bitbucket repositories to GitHub.
<?php
/**
* Migrate repositorioes from Bitbucket to GitHub.
*
* Usage: php run.php
*
* @package CS\Bitbucket_to_Github
* @license MIT License
*/
class CS_Bitbucket_to_Github
@claudiosanches
claudiosanches / wc-products-disable-gutenberg.php
Last active November 6, 2023 20:09
Disable Gutenberg in Edit Product screen for WooCommerce 3.4.x or older
<?php
/**
* Plugin Name: No Gutenberg for old versins of WooCommerce
* Plugin URI: https://gist.github.com/claudiosanches/d0231798eb6041e4911b4bca409ec1ac
* Description: Disable Gutenberg in Edit Product screen for WooCommerce 3.4.x.
* Author: Claudio Sanches
* Author URI: https://claudiosanches.com
* Version: 1.0.0
* License: GPLv3
*
@claudiosanches
claudiosanches / changing-php-version.md
Last active January 23, 2023 02:19
Changing PHP version on Ubuntu

Apache

sudo a2dismod php8.0
sudo a2enmod php7.4
sudo service apache2 restart

Command line

@claudiosanches
claudiosanches / plugin.php
Created May 2, 2017 22:33
WooCommerce - Send "New User Registration" email to admins when new customer is created.
<?php
/**
* Send "New User Registration" email to admins when new customer is created on WooCommerce.
*
* @param int $id New customer ID.
*/
function my_wc_customer_created_notification( $id ) {
wp_new_user_notification( $id, null, 'admin' );
}