Skip to content

Instantly share code, notes, and snippets.

@mileandra
mileandra / webpack.config.js
Last active April 23, 2021 21:00
Vue Storefront theme inheritance
//...
const filterStream = require('postcss-filter-stream');
// Include the Alias Plugin
const AliasPlugin = require('enhanced-resolve/lib/AliasPlugin');
// ADD parent theme - replace with your parent theme's folder
const PARENT_THEME = 'parent'
module.exports = function (config, { isClient }) {
const clientConfig = ... // default clientConfig
@mileandra
mileandra / AbstractTemplatePlugin.php
Created February 24, 2021 14:19
Intercept Forgot password and create account emails for Vue Storefront
<?php
// Plugin/Magento/Email/Model/AbstractTemplatePlugin.php
namespace VENDOR\MODULE\Plugin\Magento\Email\Model;
use Magento\Store\Model\ScopeInterface;
use Magento\Store\Model\Store;
class AbstractTemplatePlugin
{
const VS_URL_XPATH = 'web/unsecure/vue_storefront_url';
@mileandra
mileandra / letsencrypt_setup.md
Last active April 9, 2020 19:39
Letsencrypt on Ubuntu 16.04 with Nginx, Rails and Capistrano-Unicorn-Nginx

Install Letsencrypt

Install with apt-get

$ sudo apt-get update    
$ sudo apt-get install letsencrypt

Generate a strong DH

$ sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048

Configure nginx

@mileandra
mileandra / digital_ocean_setup.md
Created June 14, 2016 19:12 — forked from ChuckJHardy/digital_ocean_setup.md
DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3 Setup Instructions