Skip to content

Instantly share code, notes, and snippets.

View mwr's full-sized avatar
🤓

Matthias Walter mwr

🤓
View GitHub Profile
@mwr
mwr / gist:e3f0a96a4a6576ae9a97116f17d03a2a
Created October 1, 2018 08:23
git list all branches with details
git for-each-ref --sort=committerdate --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
@mwr
mwr / composer.json
Created May 3, 2018 05:49
Magento2 composer with relative paths
{
"name": "magento/project-community-edition",
"description": "eCommerce Platform for Growth (Community Edition)",
"type": "project",
"version": "2.2.3",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"require": {
@mwr
mwr / phpunit_parameter_validation_callback.php
Last active February 4, 2016 09:00
PHPUnit Parameter Validation using Callback (phpunit 4.1.0)
<?php
// Validation Callback
$validator1 = new \PHPUnit_Framework_Constraint_Callback(
function (/** @todo add parameter **/) {
// @todo add assertions here
return true;
}
);
$validator2 = new \PHPUnit_Framework_Constraint_Callback(
Verifying that +mwalter is my blockchain ID. https://onename.com/mwalter