Skip to content

Instantly share code, notes, and snippets.

View mbessolov's full-sized avatar

Michael Bessolov mbessolov

  • Los Angeles, CA
View GitHub Profile
@mbessolov
mbessolov / vm-secureboot.md
Created April 10, 2017 18:11 — forked from gabrieljcs/vm-secureboot.md
Instructions on signing VirtualBox and VMware modules for Secure Boot

Signing VirtualBox & VMware modules

Source

Creating a key

You can change "MOK".priv/.der to any desired name; "CN=" MUST hold your username, signing the modules may not work otherwise (on shim, possibly due to a bug).

$ openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=John Doe/"
<?php
namespace OroB2B\Bundle\TaxBundle\Migrations\Data\Demo\ORM;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Doctrine\ORM\EntityManager;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\FixtureInterface;
<?php
$this->createPriceListSubset(
100, // percentage of product catalog, e.g. 100 = all products, 5 = 5% of the entire catalog
['USD', 'EUR'], // currencies
[
1 => 1, // price tier "1 or more"
10 => 0.9, // price tier "10 or more", price value should be 90% of the previous tier
100 => 0.85, // price tier "100 or more", price value should be 85% of the previous tier
],