Skip to content

Instantly share code, notes, and snippets.

View rubenRP's full-sized avatar

Rubén Rodríguez rubenRP

View GitHub Profile
@rubenRP
rubenRP / .bash_profile
Last active August 29, 2015 14:27 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@rubenRP
rubenRP / HeaderPagination.php
Last active October 5, 2022 20:55 — forked from zack6849/HeaderPagination.php
SEO rel="next/prev" for Magento 2. Pagination in head
<?php
namespace Revival\Seo\Block;
use Magento\Framework\View\Element\Template;
/**
* To make this appear in the header for the catalog, you'd need to add this as a block in ${THEME_DIR}/Magento_Catalog/layout/catalog_category_view.xml
*
* EG:
<?php
use Magento\Framework\App\Area;
require __DIR__ . '/app/bootstrap.php';
class testAbstractExtensibleModelApp extends \Magento\Framework\App\Http implements \Magento\Framework\AppInterface
{
/**
* @return \Magento\Framework\App\Response\Http
*/
@rubenRP
rubenRP / AddImageToCompareProductsPlugin.php
Created February 14, 2019 15:44 — forked from denchev/AddImageToCompareProductsPlugin.php
Magento 2 show image in sidebar compare list
<?php
namespace Vendor\Namespace\Plugin;
use Magento\Catalog\Helper\ImageFactory;
use Magento\Catalog\Helper\Product\Compare;
use Magento\Catalog\Model\ProductRepository;
class AddImageToCompareProductsPlugin
{
@rubenRP
rubenRP / adding-prettier-to-projects.md
Last active September 26, 2019 13:32 — forked from whoisryosuke/adding-prettier-to-projects.md
Workflow - Adding ESLint (Airbnb) + Prettier to projects
# Install ESLint and Babel ESLint
# Make sure to install at least v5.1.0 of ESLint
npm install --save-dev eslint babel-eslint

# Install the Airbnb configs (3 of them, listed below)
npx install-peerdeps --dev eslint-config-airbnb

# Install Prettier + ESLint config
npm install --save-dev --save-exact prettier-eslint eslint-config-prettier