Skip to content

Instantly share code, notes, and snippets.

View royduin's full-sized avatar

Roy Duineveld royduin

View GitHub Profile
@royduin
royduin / SKILL.md
Created November 25, 2026 15:19
rapidez-storefront: a Claude Code skill that rebuilds a reference webshop as a Rapidez storefront (Magento + Statamic)
name rapidez-storefront
description Rebuild the look and structure of a reference webshop as a Rapidez storefront (Laravel/Vue frontend for Magento 2, optionally with Statamic CMS). Use when the user asks to "rebuild", "clone" or "recreate the look and structure of <url> as a Rapidez storefront". The argument is the reference URL. Covers a fresh install, read-only research, restyling through Blade overrides, a Magento catalog with attribute sets and example products, Statamic content, the full shop flow and a Playwright verification walk.

Rapidez storefront from a reference shop

Argument: <reference-url>, the webshop to take as an example. If it is missing, ask for it.

Goal

var saveBlob = (function () {
var a = document.createElement("a");
document.body.appendChild(a);
a.style = "display: none";
return function (blob, fileName) {
var url = window.URL.createObjectURL(blob);
a.href = url;
a.download = fileName;
a.click();
window.URL.revokeObjectURL(url);
@royduin
royduin / crawl.php
Last active September 24, 2016 18:05
Search for public git repositories in the Alexa 1 million top ranked websites list, see: https://royduineveld.nl/hacking-public-git-repositories/
<?php
// Download the list from: http://s3.amazonaws.com/alexa-static/top-1m.csv.zip
$csv = file_get_contents('top-1m.csv');
$lines = explode(PHP_EOL,$csv);
$counter = 1;
foreach($lines as $line){
$url = explode(',',$line)[1];
echo $counter.' '.$url.PHP_EOL;
<?php
/*
Plugin Name: Import demo
Plugin URI: http://royduineveld.nl
Description: A demo import for my blog
Version: 1.0
Author: Roy Duineveld
Author URI: http://royduineveld.nl
*/