Skip to content

Instantly share code, notes, and snippets.

@fooman
fooman / table.md
Last active January 15, 2021 16:47
Magento 2 / PHP versions Matrix
@fooman
fooman / gist:ea7e6b5eb11721148f7b2a7c93f23bd0
Created January 29, 2020 00:58
Remove copyright updates from Magento 1 patch file
tac CE-1.9.4.3-1.9.4.4-2020-01-28-04-51-47.diff | sed '/+ \* @copyright/{n;N;N;N;N;N;N;d;}' |sed '/+\/\/ @copyright/{n;N;N;N;N;N;N;d;}'| tac | sed '/+ \* @copyright/{N;N;N;N;N;d;}' | sed '/+\/\/ @copyright/{N;N;N;N;N;d;}'> CE-actual.diff
@fooman
fooman / tag-release.sh
Created June 8, 2019 21:40
Keep composer version in sync with git tag
#!/bin/bash
# tested on MacOS - uses gsed
# brew install gnu-sed
TAG="$1"
if [[ -z "$TAG" ]]; then
echo "Usage: tag-release.sh TAG"
echo " Example: tag-release.sh 1.0.0"
@fooman
fooman / composer.json
Last active July 4, 2018 02:20
Magento Project - composer.json comparison
{
"name": "magento/project-community-edition",
"description": "eCommerce Platform for Growth (Community Edition)",
"type": "project",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"config": {
"preferred-install": "dist",
@fooman
fooman / validate_m2_package.php
Last active February 2, 2016 03:06 — forked from alankent/validate_m2_package.php
Magento Marketplace beta Composer package ZIP file validator script.
#!/usr/bin/php
<?php
/**
* validate_m2_package.php - a script that checks a given M2 zip package to ensure
* it is structured correctly and has all the required files.
*/
/**