Fast Way of Deleting Large Number of Files

In some cases that you have hundreds of thousands or even millions of files in a directory that you want to delete, you will encounter this error:
/bin/rm: Argument list too long.

The problem is when you type a command like rm -rf *.* is replaced with the list of all files, and usually, the memory buffer allocated to shell is small to accommodate let’s say millions of file names.

To solve this issue, I usually use this simple command:

find . -type f -delete


How to Know the Make of Your Retina Display: Samsung or LG?

Image retention and burn-in issues are widely reported with the new Retina displays of MacBook Pro.

Generally, it seems happening with displays manufactured by LG. While displays made by Samsung are OK.

Samsung display is OK and also brighter, and seem to display colors with more accuracy.

How to know the make of your display installed in your MacBook Pro?

Open terminal and run this command:
ioreg -lw0 | grep \"EDID\" | sed "/[^<]*</s///" | xxd -p -r | strings -6

If your display code begins with LP it’s an LG display 🙁
If your display code begins with LSN, you can celebrate as it’s a SAMSUNG display.