Skip to content

Instantly share code, notes, and snippets.

View stefandoorn's full-sized avatar

Stefan Doorn stefandoorn

View GitHub Profile
@stefandoorn
stefandoorn / gist:85715dbb50cfdae42bdae4bc96efdfd1
Created January 27, 2018 19:31
Move JPG files recursive from folders to single folder
find ./folder-from -name '*.jpg' -exec cp '{}' ./folder-to \;
diff --git a/app/migrations/Version20170406115337.php b/app/migrations/Version20170406115337.php
new file mode 100644
index 0000000..37d72a7
--- /dev/null
+++ b/app/migrations/Version20170406115337.php
@@ -0,0 +1,34 @@
+<?php
+
+namespace Sylius\Migrations;
+
@stefandoorn
stefandoorn / magento2-resources.md
Last active October 6, 2017 14:43
Magento 2 resources
@stefandoorn
stefandoorn / mandrill-api-filter-embedded-images-list.php
Created June 23, 2015 12:02
Mandrill PHP API filter embedded images array with embedded images used in e-mail HTML content
/**
* Insert list of embedded images (Mandrill API format) & HTML content
* Finds cid elements in HTML and filters $images list with it
* Unused images are shown as attachment in Outlook eg
*
* Format of $images:
*
* $images = array(
* array(
* 'type' => 'image/png',