Skip to content

Instantly share code, notes, and snippets.

View americkson's full-sized avatar
😎

Adam Erickson americkson

😎
View GitHub Profile
@americkson
americkson / .gitignore
Created August 23, 2011 15:24 — forked from petemcw/.gitignore
What to ignore from Magento in Git
# Magento Connect 2 cache directories and files
downloader/pearlib/cache/
downloader/*.cfg
# Magento runtime media files
media/catalog/product/cache/
media/tmp/
media/js/
media/css/
media/.thumbs/
@americkson
americkson / gist:1165419
Created August 23, 2011 15:24 — forked from petemcw/gist:1165317
Command-line Magic

Regular Expressions

Not only useful in programming, regular expressions can make complex tasks easy in many different scenarios. Here is a great site for testing your regex:

http://rubular.com

General Shell

Run the previous command again

@americkson
americkson / customers.sql
Created October 20, 2015 19:46 — forked from leek/_Magento1_DeleteTestData.md
Magento - Delete All Test Data
SET FOREIGN_KEY_CHECKS=0;
-- Customers
TRUNCATE `customer_address_entity`;
TRUNCATE `customer_address_entity_datetime`;
TRUNCATE `customer_address_entity_decimal`;
TRUNCATE `customer_address_entity_int`;
TRUNCATE `customer_address_entity_text`;
TRUNCATE `customer_address_entity_varchar`;
TRUNCATE `customer_entity`;
@americkson
americkson / Contract Killer 3.md
Created April 11, 2016 21:19
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post