Skip to content

Instantly share code, notes, and snippets.

View claudiu-marginean's full-sized avatar

Claudiu Marginean claudiu-marginean

View GitHub Profile
@claudiu-marginean
claudiu-marginean / Makefile
Created March 15, 2023 09:16 — forked from mpneuried/Makefile
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)
@claudiu-marginean
claudiu-marginean / MockeryMockIterator.php
Last active May 24, 2018 08:27 — forked from pgraham/gist:4127832
function to create a mock iterator over an array using PHP Mockery lib
/**
* Create a mock iterator over the given array.
*
* @param array $a
* @param string $class The class to use for the mock, should be/implement/extend Iterator
* @param boolean $complete Whether or not to build a complete iteration. This is
* used when an exception/break is expected in the middle of the iteration.
* @param integer $numElms The number of elements that should be iterated in the case of an
* incomplete iteration.
*/
@claudiu-marginean
claudiu-marginean / httpd-vhosts.conf
Last active August 29, 2015 14:08 — forked from anonymous/httpd-vhosts.conf
VirtualHost in XAMPP with https (with certif from localhost)
<VirtualHost *:80>
DocumentRoot "D:/www/project-name"
ServerName local.project-name.net
ServerAlias local.project-name.net
#SetEnv MAGE_IS_DEVELOPER_MODE "true"
<Directory "D:/www/project-name">
Options Indexes FollowSymLinks
AllowOverride All
<block type="cms/block" name="block_name">
<action method="setBlockId"><id>block_code</id></action>
</block>
{{block type="cms/block" block_id="block_code"}}
{{block type="catalog/product_list" category_id="79" template="catalog/product/list_random.phtml"}}