How to set twitter bootstrap modal wider and higher?

In Bootstrap 3.1.1 they added modal-lg and modal-sm classes. You control the modal size using @media queries like they do. This is a more global way of controlling the modal size. @media (min-width: 992px) { .modal-lg { width: 900px; height: 900px; /* control height here */ } } Sample code: <!– Large modal –> <button … Read more

Unix find average file size

I found something here: http://vivekjain10.blogspot.com/2008/02/average-file-size-within-directory.html To calculate the average file size within a directory on a Linux system, following command can be used: ls -l | gawk ‘{sum += $5; n++;} END {print sum/n;}’

Determine total size of SVN directory/trunk

This is my modification to the answer. It reports how many files are below a certain directory in svn and the total size. svn list -vR svn://svn/repo/subdir|awk ‘{if ($3 !=””) sum+=$3; i++} END {print “\ntotal size= ” sum/(1024*1024)” MB” “\nnumber of files= ” i/1000 ” K”}’