Skip to content

Instantly share code, notes, and snippets.

View markusvonplunkett's full-sized avatar

Mark Plunkett markusvonplunkett

View GitHub Profile
@markusvonplunkett
markusvonplunkett / identify.php
Created September 6, 2023 08:12 — forked from peterjaap/identify.php
Identify used Magento 2 frontend extensions in a Luma install
<?php
// Run with the URL pointing to a require-config.js as the first argument;
// php identify.php http://magento2demo.firebearstudio.com/pub/static/frontend/Magento/luma/en_US/requirejs-config.js
$content = file_get_contents($argv[1]);
preg_match_all(
'/(?P<quote>\'|")(?P<extension>[[:alnum:]]+_[[:alnum:]]+)\/js\/.+?(?P=quote)/m',
$content,
$matches
@markusvonplunkett
markusvonplunkett / 0. Synology RAID Expansion-Resync Performance.md
Created November 6, 2018 15:07 — forked from fbartho/0. Synology RAID Expansion-Resync Performance.md
Walkthrough of what I did to increase performance on my Synology NAS box during an expansion, and afterwards.

Performance on Synology RAIDs

(especially while expanding)

Warning: The exact commands may not match for your particular linux OS / Synology(NAS) device. I had to customize the commands after exploring my particular system's setup.

If you're new to linux, or this is a new piece of hardware / a new synology device, jump down to the section called "Inspecting a setup"

Contents