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 / 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 / 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 / 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 / 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 / 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 / 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 / cronUnitTest
Created December 4, 2024 01:52
cron_unit_test
<?php
namespace Uptactics\PpsTheme\Test\Unit;
use PHPUnit\Framework\TestCase;
class CronListTest extends TestCase
{
private $filePath;
@ProxiBlue
ProxiBlue / repmanfix
Created March 1, 2024 08:12
repman packages fix from 404
#!/bin/env bash
# Requires HTTPie and JQ
ORG_NAME='xxxxxx'
API_KEY='xxxxxx'
SLEEP_S=0.5
# End of variables that need to change
package_url="https://app.repman.io/api/organization/${ORG_NAME}/package"
@ProxiBlue
ProxiBlue / n98-magerun2.yaml
Created May 2, 2022 05:44
n98-magerun2 more extensive list of required php modules
commands:
N98\Magento\Command\System\CheckCommand:
php:
required-extensions:
- bcmath
- ctype
- dom
- fileinfo
- json
- mbstring
@ProxiBlue
ProxiBlue / gist:ad1bc6db0f74e4494f92f94d04423b4b
Last active January 26, 2022 22:06
cypress random test from sitemap.xml that old site and new site match data
Add the following to plugins/index.js
module.exports = (on, config) => {
on('task', {
log (message) {
console.log(message)
return null
}
})
}