Hide folders from view in Finder

There are some folders in my $HOME directory that I only access through the command-line. Here’s a command to hide them from Finder:

$ chflags hidden <path>

To unhide, use the nohidden command. This also works on files.

Quickly delete a lot of files

$ mkdir -p /tmp/empty/
$ rsync -aP --delete /tmp/empty/ </path/to/delete/>