Skip to content

Instantly share code, notes, and snippets.

View kayneth's full-sized avatar
🤡
In love with Static Analysis tools

Dylan Ballandras kayneth

🤡
In love with Static Analysis tools
View GitHub Profile
@kayneth
kayneth / .bashrc
Created November 20, 2024 15:25 — forked from shmaltorhbooks/.bashrc
paratest with multiple db instances
alias paratest='php bin/console test:init:database:pool -e=test 10 && vendor/bin/paratest -f -p 10 —max-batch-size 5 —coverage-html=build/coverage'
@kayneth
kayneth / gist:1d35dd76100eda9625cd2c21488eb75e
Created September 6, 2018 15:29 — forked from simshaun/gist:7592631
TinyMCE 4.0.11 - Automatically remove width and height attributes from img elements inserted via the img plugin
setup: function (editor) {
editor.on('init', function(args) {
editor = args.target;
editor.on('NodeChange', function(e) {
if (e && e.element.nodeName.toLowerCase() == 'img') {
tinyMCE.DOM.setAttribs(e.element, {'width': null, 'height': null});
}
});
}