Skip to content

Instantly share code, notes, and snippets.

@molotovbliss
molotovbliss / Mb-M2-resources.md
Created March 19, 2018 17:29
Magento2 Resources List; Needing a place to keep a list of all the tools/references used during Magento development.
#!/usr/bin/env bash
# Variables
#------------
mysqlUser='root'
mysqlPass='password'
mysqlAppDbName='ltdc'
mysqlAppDbUser='ltdc'
mysqDumpFile='/home/didier/src/tmp/ltdc/DB-PROD-2016-10-13-17h43.sql'
vHostName='ltdc'
@0-Sony
0-Sony / getListItemHtml.php
Last active July 24, 2017 14:15
Use only one template to display product using a helper
<?php
class Namespace_Catalog_Helper_Data extends Mage_core_Helper_Abstract {
const BLOCK_TYPE = "namespace_catalog/product_list_item";
const TEMPLATE = "catalog/product/list/item.phtml";
/**
* Get product list item HTML
*
@phette23
phette23 / update-repos.fish
Last active May 21, 2024 18:33
Shell script to run `git pull` inside all subdirectories which are git repositories. I keep a number of projects in a folder & this helps me avoid manually updating each.
#!/usr/bin/env fish
# similar script in Fish
# still under construction, need to quiet `git status` more effectively
function update -d 'Update git repo'
git stash --quiet
git pull
git stash apply --quiet
end