Create Screenshot of an scrollable iframe
This tiny tutorial describes how to capture a screenshot of a scrollable iframe in most modern browsers.
This tiny tutorial describes how to capture a screenshot of a scrollable iframe in most modern browsers.
To resize product images in Magento2, you just have to add a etc/view.xml into your own theme (f.e. app/design/frontend/Sheldon/Happytheme/etc/view.xml) ans add something like that: <?xml version=”1.0″?> <!– /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ –> <view xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Config/etc/view.xsd”> <media> <images module=”Magento_Catalog”> <image id=”product_image” type=”image”> <width>800</width> <height>800</height> […]
To get a list of all files in a folder without path, you can use the following snippet: $> find ../PATH/TO/FOLDER/TO/LIST/FILES/FROM -type f -printf “%f\n” Example result: 5ed8d879-9203-4c26-afe4-4eee702ffcc7.ttf 25h-icons.woff 6ab1eb08-75f2-4c1a-9911-2752e3fd6ec9.woff ada6576a-cbce-4da0-994b-b4719f95ac06.eot dc80306d-6b3e-422b-85c3-bad65f5446d4.woff 1791f364-9061-4459-a14d-0b188cfd7193.woff2 fb754dec-aa8f-444c-be48-868464c47ab0.woff 20988062-bfc8-4c30-9306-8053b179b381.eot 79de9df8-0826-46b9-beea-eb39122d4762.woff2 087e5c21-3358-4cf3-9d2c-289a03a48292.eot 7869ff0a-c18f-4ce1-bf07-fbf5b7172b66.ttf c932b9cc-bd91-4ee0-889b-302d53093448.woff2 c9fa0fce-5615-4509-af40-370a4032df9a.woff2 08bae5d9-f7bd-4e7f-8446-be05a16cc9e6.ttf 56ce7ab2-c49f-4aa1-85ce-f1823fc02355.woff bedf9150-5659-4119-9640-0f16e67d82b9.woff2 9131f395-46ef-4940-8480-8ff008c42e59.woff 77fac51a-d062-438a-a493-6b67508aa97f.woff bb8422a9-7303-4111-8be4-7de2f583aaf3.woff2 746ffa4d-bd68-4487-bb7a-0c90d07c6533.woff2 5fdc935e-9e30-442a-bbe9-8d887b858471.woff 616c4c87-a077-43f4-a9f4-f01267c13818.ttf 084ad33e-9248-40f7-b5ce-1d9dee2809c4.eot d399cbfa-b9be-47ac-983c-3600c2684bb2.ttf 295ff20c-2b48-4fa6-be92-a53bbf9bbbb4.ttf 25h-icons.ttf 2f8b7d6e-428d-4cc1-a456-712fc6aa2123.woff2 9322b01d-540d-464b-8990-dcbfa6a03ce8.eot […]
Sometimes you need to encode a string with a base64 encoding. For example when trying to send a HTTP request with a Basic Authentication header like that: ### own controller: POST http://thedomain.com/webhook/post?XDEBUG_SESSION_START=11931 Content-Type: application/json Authorization: Basic c25zOlVzZVRoZWZvcmNlCg== { “uuid”: “08e9a8d3-9279-4af5-88ff-ebe42359f0e0”, “eventname”: “peng.page.publish”, “data”: { “sitemap_id”: “1234”, “locale”: “de_DE”, “path”: “unigue/page/path”, “title”: “Testpage over API”, “meta_title”: […]
As for Piwik 2.0, I published a new plugin to embed Matomo into DokuWiki today. Matomo ist the follow-up of Piwik and. The switch took place between Piwik 3.2.1 and Matomo 3.3.0 in January 2018. It has exactly the same purpose and functionality but is adapted for Matomo. You can find it on https://www.dokuwiki.org/plugin:matomo and the repository can […]
Today I had to figure out the Java version installed on my machine while digging through some problems with my IntelliJ IDE. This is how you can get the currently installed Java version and vendor on Ubuntu or other Debian derivatives on bash. $> sysinfo That gives you something like that: Java Version: 1.8.0_131 Java […]
Recently I had the job to convert EPS files to SVG graphics. It has been done for a product configurator that had to be implemented. The whole implementation mentioned here was done for a Magento Online Shop. But the base-paradigms described here can be used in other PHP based applications too because I’ve implemented them […]
Recently I had the challenge, that the MySQL database of one of the Magento shops I maintain wasn’t accessible directly through the Net. The access was restricted to the Webserver only. So I had to tunnel MySQL through SSH. And that worked like that: edit the ssh config (~/.ssh/config) on the remote Webserver Host * […]
To remove all files and folders including hidden files such .gitignore, .htaccess, .git etc. on bash you can use the following command: $> rm -rf /PATH/TO/FOLDER/{*,.*} Is the same as: $> rm -rf ${DOCROOT}/* $> rm -rf ${DOCROOT}/.* But ever shorter. 😉