Skip to content

Instantly share code, notes, and snippets.

View ProxiBlue's full-sized avatar
🏠
Working from home

Lucas van Staden ProxiBlue

🏠
Working from home
View GitHub Profile
@ProxiBlue
ProxiBlue / 80-mount-usb-to-media-by-label.rules
Created December 29, 2024 11:54 — forked from eklex/80-mount-usb-to-media-by-label.rules
udev rule for Home Assistant OS (hassio) to mount USB drives into the Supervisor Media directory
#
# udev rule
# Mount USB drive to the media directory using the partition name as mount point
#
# Description:
# Created for Home Assistant OS, this rule mounts any USB drives
# into the Hassio media directory (/mnt/data/supervisor/media).
# When a USB drive is connected to the board, the rule creates one directory
# per partition under the media directory. The newly created partition is named
# as the partition name. If the partition does not have a name, then the following
@ProxiBlue
ProxiBlue / immich.sh
Last active January 23, 2025 11:04
HAOS Immich add-on by alexbelgium db restore
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# ref: https://github.com/alexbelgium/hassio-addons/discussions/1467#discussioncomment-11699236
# this script will look for your immich database backup file placed in path
# /share/postgresql_immich_restore.sql
#
# it must not be gzipped.
# requires: Terminal add-on to place files, a way you knwo how to place your .sql on HAOS server.
# I used an external USB I mounted.
@ProxiBlue
ProxiBlue / ConvertRulesCommand.php
Created February 4, 2025 23:24
convert dynamic category products rules to elasticsuite rules
<?php
namespace ProxiBlue\MigrateTasks\Console\Command;
use Magento\Framework\App\ResourceConnection;
use Magento\Framework\Console\Cli;
use Magento\Framework\DB\Adapter\AdapterInterface;
use Magento\Framework\Exception\LocalizedException;
use Magento\Framework\Serialize\Serializer\Json;
use Symfony\Component\Console\Command\Command;
@ProxiBlue
ProxiBlue / ghosts.sh
Created May 13, 2025 09:39 — forked from jakwinkler/ghosts.sh
Remove Ghost Indexes From ElasticSuite - Magento Open Source
#!/bin/bash
ES_HOST="http://localhost:9200" # Replace with your ES host
INDEX_PATTERN="magento2_default_catalog_product_*"
# Get all aliases (used indexes) ===
echo "Fetching all aliases in use..."
USED_INDEXES=$(curl -s "$ES_HOST/_cat/aliases?h=index" | sort | uniq)
# Get all indexes matching the pattern ===
@ProxiBlue
ProxiBlue / ddev_mcp.sh
Last active July 29, 2025 00:55
MCP wrapper for junie and ddev projects
#!/bin/bash
source /home/lucas/.bash_profile
CONTAINER=$1
MCP=$2
cd $PROJECT_PATH
# If WORKING_DIR is set, change to that directory inside the container
@ProxiBlue
ProxiBlue / mcp-tool-comparison-browsers
Created November 6, 2025 00:51
mcp tool comaprison for browser control
Browser MCP Server Comparison
Tool Count
- browsermcp: 12 tools
- playwright: 21 tools
Detailed Comparison
Core Navigation
@ProxiBlue
ProxiBlue / code-investigation-rules.md
Last active April 21, 2026 21:42
claude skill to solve constant pushbacks

Investigation Protocol — MANDATORY

When a test fails, a system errors, or the user reports a bug, behave as follows. These steps are not guidance — they are mandatory. Skipping any of them is the exact failure mode being banned here.

Order of operations — NO SKIPPING

  1. Enumerate own blast radius FIRST. Run git diff --stat HEAD and git status. State out loud what has been changed this session, by file, in one line each. This is the first move on every failure, every time.

  2. Read ALL failure artefacts — not a sample.