Skip to content

Instantly share code, notes, and snippets.

Paul paullbyao

Block or report user

Report or block paullbyao

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@paullbyao
paullbyao / 3-xargs-tips.md
Created Jul 19, 2017 — forked from nepsilon/3-xargs-tips.md
3 xargs usage tips — First published in fullweb.io issue #26
View 3-xargs-tips.md

3 xargs tips on the road to CLI mastery

xargs can be used to process output from other commands (such as find) as argument to a new commands. It can come very handy in many cases, here are 3:

1. Finding and deleting .zip files:

$ find . -name "*.zip" -type f -print | xargs /bin/rm -f 
@paullbyao
paullbyao / custom.sql
Last active Jul 13, 2016 — forked from leek/README.md
Magento - Delete All Test Data
View custom.sql
SET FOREIGN_KEY_CHECKS=0;
TRUNCATE `identify_log`;
TRUNCATE `identify_statistics`;
TRUNCATE `ex_product_image`;
TRUNCATE `logistics_track_item`;
TRUNCATE `core_url_rewrite`;
ALTER TABLE `identify_log` AUTO_INCREMENT=1;
ALTER TABLE `identify_statistics` AUTO_INCREMENT=1;
You can’t perform that action at this time.