Postări

Se afișează postări din 2017

Find all files larger than ...

find / -type f -size +800M -exec ls -lh {} \; | awk '{ print $NF ": " $5 }' Find all files larger than 800M

nginx for typo3/index.php

location /typo3/ {         alias /var/www/html/typo3/;         index index.php; }

Magento 2

Change base_url php bin/magento setup:store-config:set --base-url="http://local.dev/" php bin/magento setup:store-config:set --base-url-secure="https://local.dev/" php bin/magento cache:flush

Detect changes in DOM - JS

Js on change DOM dynamically from here https://stackoverflow.com/questions/3219758/detect-changes-in-the-dom ( function ( window ) { var last = + new Date (); var delay = 100 ; // default delay // Manage event queue var stack = []; function callback () { var now = + new Date (); if ( now - last > delay ) { for ( var i = 0 ; i < stack . length ; i ++) { stack [ i ](); } last = now ; } } // Public interface var onDomChange = function ( fn , newdelay ) { if ( newdelay ) delay = newdelay ; stack . push ( fn ); }; // Naive approach for compatibility function naive () { var last = document . getElementsByTagName ( '*' ); var lastlen = last . length ; var timer = setTimeout ( function check () { // get current state of the doc...