git init
or
| {% comment %} | |
| Use this snippet to add a responsive image to page. | |
| Requires lazysizes.js | |
| Specify Shopify image you want to make responsive in the "with" parameter (see examples below). | |
| You can use following variables to customize the image | |
| * type: specifies the type of image file being accessed (ie an image from content, a product image, or a theme asset image). | |
| * default_size: size of placeholder image until full image is loaded (default: '150x') |
| #!/usr/bin/env ruby | |
| require 'tmpdir' | |
| require 'fileutils' | |
| dir = Dir.tmpdir() | |
| if File.directory?("#{dir}/bulma") | |
| FileUtils.remove_dir("#{dir}/bulma") | |
| end |
I've had the opertunity to try a variety of different server configurations but never really got around to trying HHVM with Magento until recently. I thought I would share a detailed walkthrough of configuring a single instance Magento server running Nginx + Fast CGI + HHVM / PHP-FPM + Redis + Percona. For the purpose of this blog post I'm assuming you are using Fedora, CentOS, or in my case RHEL 6.5.
Please note: I'm 100% open to suggestions. If you see something I did that needs to be done a different way, please let me know. I haven't included my Perconca my.conf file yet. I will shortly. Also I plan on trying this same test with HHVM 3.3 and PHP 7.
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm| select | |
| entity_id | |
| FROM | |
| catalog_product_entity | |
| WHERE | |
| type_id = 'simple' | |
| AND( | |
| entity_id NOT IN( | |
| SELECT DISTINCT | |
| (product_id) |
| {% assign emails = case.emails %} | |
| {% assign threadlength = emails.size|minus:1 %} | |
| {% for email in emails reversed %} | |
| {% if forloop.first %} | |
| {{email.new_html}} | |
| {% if email.agent %} | |
| {% if email.agent.signature %} |
| <?php | |
| require_once 'app/Mage.php'; umask(0); Mage::app('default'); | |
| setlocale(LC_MONETARY, 'en_US'); | |
| $customers = Mage::getModel('customer/customer')->getCollection(); | |
| $count = 0; | |
| foreach ($customers as $customer) { |
| test: | |
| override: | |
| - bundle exec rspec spec | |
| deployment: | |
| acceptance: | |
| branch: master | |
| commands: | |
| - ./script/heroku_deploy.sh <ACCEPTANCE_HEROKU_APP>: | |
| timeout: 300 |