Download script
wget https://gist.githubusercontent.com/kubaceg/4277ab6f7a2dcaae66bb/raw/5f7e178ca8d76858258038aa5cb6903a36f71ad6/magento-log
Make it executable
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <schema name="car" version="1.1"> | |
| <types> | |
| <fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/> | |
| <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true" omitNorms="true"/> | |
| <fieldType name="integer" class="solr.IntField" omitNorms="true"/> | |
| <fieldType name="long" class="solr.LongField" omitNorms="true"/> | |
| <fieldType name="float" class="solr.FloatField" omitNorms="true"/> | |
| <fieldType name="double" class="solr.DoubleField" omitNorms="true"/> | |
| <fieldType name="sint" class="solr.SortableIntField" sortMissingLast="true" omitNorms="true"/> |
| export PS1="\[\e[36m\]\W\[\e[m\]\[\e[31m\]>>\[\e[m\] " |
| RUN curl -o ioncube.tar.gz http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz \ | |
| && tar -xvvzf ioncube.tar.gz \ | |
| && mv ioncube/ioncube_loader_lin_5.6.so `php-config --extension-dir` \ | |
| && rm -Rf ioncube.tar.gz ioncube \ | |
| && docker-php-ext-enable ioncube_loader_lin_5.6 |
| <?php | |
| // Magento e-mail tester. | |
| // Send mail, the Magento way: | |
| require_once('app/Mage.php'); | |
| Mage::app(); | |
| $appEmulation = Mage::getSingleton('core/app_emulation'); | |
| $initialEnvironmentInfo = $appEmulation->startEnvironmentEmulation(1); | |
| Mage::app()->getTranslator()->init('frontend', true); |
| export PHP_IDE_CONFIG="serverName={SERVER NAME IN PHP STORM}" | |
| export XDEBUG_CONFIG="remote_host=$(echo $SSH_CLIENT | awk '{print $1}') idekey=PHPSTORM" |
| youtube-dl -cik --audio-quality 0 --extract-audio -o "%(title)s.%(ext)s" --audio-format mp3 https://www.youtube.com/playlist\?list\=id |
| /** | |
| * @param int $done | |
| * @param int $total | |
| */ | |
| function progress($done, $total) | |
| { | |
| $totalSeg = 20; | |
| $seq = intval(($done / $total) * $totalSeg); | |
| $str = "[" . str_repeat('=', $seq) . str_repeat(' ', $totalSeg - $seq) . "] $done/$total"; | |
| echo "\r$str"; |
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| case $- in | |
| *i*) ;; | |
| *) return;; | |
| esac |
| #Vizualize dstat data http://vmstax.michenux.net/ | |
| dstat -c -n -N eth0,lo -m -s -d --output dstat2.csv |