Skip to content

Instantly share code, notes, and snippets.

@p-makowski
p-makowski / Testing in Magento 2.md
Created January 9, 2023 20:08 — forked from ProcessEight/Testing in Magento 2.md
M2: Notes on setting up PHPUnit and writing/troubleshooting tests in Magento 2

FWIW: I didn't produce the content present here. I've just copy-pasted it from somewhere over the Internet, but I cannot remember exactly the original source. I was also not able to find the author's name, so I cannot give him/her the proper credit.


Effective Engineer - Notes

What's an Effective Engineer?

@p-makowski
p-makowski / thing_clean.py
Created November 2, 2017 18:07 — forked from jvolkman/thing_clean.py
OpenHAB Thing.json cleanup script
import json;
import collections;
with open("org.eclipse.smarthome.core.thing.Thing.json", 'r') as f:
db = json.load(f, object_pairs_hook=collections.OrderedDict)
for thing in db.values():
properties = thing.get("value", {}).get("configuration", {}).get("properties")
if not properties:
continue
@p-makowski
p-makowski / M2 acl.xml
Created February 21, 2016 10:56 — forked from Vinai/M2 acl.xml
My current Magento 2 PHPStorm File Templates (Feb 2016)
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="Magento_Backend::admin">
</resource>
</resources>
</acl>
</config>