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 /
Created Jul 19, 2017 — forked from nepsilon/
3 xargs usage tips — First published in issue #26

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 / custom.sql
Last active Jul 13, 2016 — forked from leek/
Magento - Delete All Test Data
View custom.sql
TRUNCATE `identify_log`;
TRUNCATE `identify_statistics`;
TRUNCATE `ex_product_image`;
TRUNCATE `logistics_track_item`;
TRUNCATE `core_url_rewrite`;
ALTER TABLE `identify_statistics` AUTO_INCREMENT=1;
You can’t perform that action at this time.