Skip to content

Instantly share code, notes, and snippets.

Avatar

Josh Ribakoff joshribakoff

View GitHub Profile
@joshribakoff
joshribakoff / Vagrantfile
Created Oct 11, 2017 — forked from stephenreay/Vagrantfile
Local file override for Memory/CPU limits in Vagrant
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby
if File.exists?('./Vagrantfile.override.rb')
require_relative './Vagrantfile.override.rb'
end
# Defaults for CPU and Memory
CPUS ||= 1
MEMORY ||= 1024
View gist:5885687
<?php
require_once 'app/Mage.php';
Mage::app();
$quote = Mage::getModel('sales/quote')
->setStoreId(Mage::app()->getStore('default')->getId());
$product = Mage::getModel('catalog/product')->load(6); /* 6 => Some product ID */
You can’t perform that action at this time.