Find largest files in a directory using the terminal

June 1, 2016

If you need to find out what the largest files are in a directory and subdirectories here is a command you can run that will find the top 5 largest files. find . -type f | sed ‘s/.*/”&”/’ | xargs ls -Slh | head -n 5 Breakdown: find . -type f: Find all files in

Fix “frozen” Evernote app when fullscreen on OS X

October 20, 2015

The Problem: When you start Evernote it goes into fullscreen mode. You are not able to use any features of Evernote and hear the “Do not click me” error sound. The Cause: There is some sort of message box that has popped up. You need to close this before using Evernote, however it has popped

List size of directories in the current folder in terminal

October 5, 2015

If you would like to list the size of all the directories in your current folder run the following command: [bash]du -a -h –max-depth=1 | sort -hr[/bash] This will provide output similar to [bash] 69M . 36M ./plugins 16M ./.git 14M ./themes 3.4M ./uploads 8.0K ./.DS_Store 4.0K ./upgrade 4.0K ./.revision 4.0K ./index.php [/bash]

Remove untracked local files from Git

April 4, 2015

If you have need to get rid of a bunch of files that are in your git repo but not yet tracked it can be tedious to do the job one file at a time. Git has you covered with the git clean command. Warning: This is a permanent loss of files. Always use –dry-run

Sync shared Google calendars with your iPhone or CalDAV device

April 3, 2015

When you add your Google account to an iPhone or CalDAV enabled device by default you will only see events from your calendar. If you someone has shared a calendar with you there is no clear way to make it available on your phone. Google has a tool to enable shared calendars to synch however