Skip to content

Instantly share code, notes, and snippets.

View pinedamg's full-sized avatar
🧠
Work smarter, Not harder

Pineda Mauricio Gastón pinedamg

🧠
Work smarter, Not harder
View GitHub Profile
@pinedamg
pinedamg / mainpage.md
Created January 31, 2022 15:51
Test Medium Import

Title

Subtitle

Sub Sub Title

  • item 1
  • item 2
  • item 3
  • New item
  • Second Item
  • Third Item
@pinedamg
pinedamg / log_analyzer.md
Created October 17, 2019 10:21
Apache Logs Analyzer
@pinedamg
pinedamg / composer_versions_cheatsheet.md
Created April 12, 2019 10:19 — forked from calebporzio/composer_versions_cheatsheet.md
Composer version symbol cheatsheet
...
"require": {
    "vendor/package": "1.3.2", // exactly 1.3.2 (exact)

    // >, <, >=, <= | specify upper / lower bounds
    "vendor/package": ">=1.3.2", // anything above or equal to 1.3.2
    "vendor/package": "<1.3.2", // anything below 1.3.2

 // * | wildcard
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE TABLE catalog_product_bundle_option;
TRUNCATE TABLE catalog_product_bundle_option_value;
TRUNCATE TABLE catalog_product_bundle_price_index;
TRUNCATE TABLE catalog_product_bundle_selection;
TRUNCATE TABLE catalog_product_bundle_selection_price;
TRUNCATE TABLE catalog_product_bundle_stock_index;
TRUNCATE TABLE catalog_product_enabled_index;
TRUNCATE TABLE catalog_product_entity;

Magento Snippets

Download extension manually using pear/mage

Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/

./pear download magento-community/Shipping_Agent
./mage download community Shipping_Agent

Clear cache/reindex

@pinedamg
pinedamg / admin_user.php
Created March 18, 2014 23:23
Add Admin User
<?php
define( 'USERNAME', 'new.user' );
define( 'PASSWORD', 'password' );
define( 'FIRSTNAME', 'Excited' );
define( 'LASTNAME', 'Croc' );
define( 'EMAIL', 'new.user@magento.com' );
include_once( 'app/Mage.php' );
Mage::app( 'admin' );
try {
@pinedamg
pinedamg / gittips.mkd
Created August 25, 2012 02:53
Git Tips

Git Tips & Tricks

Ignore CHMOD

git config core.filemode false

@pinedamg
pinedamg / Linux_Tips_And_Tricks.mkd
Last active October 16, 2019 12:06
Linux Helpful Things

#Linux commands, tips & tricks#

##Arreglar acentos y eñes## find . -name '?' | xargs convmv -r --notest -f cp850 -t UTF-8

SSH | ssh-add

###error could not open a connection to your authentication ### eval ssh-agent; echo $SSH_AUTH_SOCK

Console apps