Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
sips -s format png --resampleWidth 512 "$1" --out iTunesArtwork
sips -s format png --resampleWidth 57 "$1" --out Icon.png
sips -s format png --resampleWidth 114 "$1" --out [email protected]
sips -s format png --resampleWidth 29 "$1" --out Icon-Small.png
sips -s format png --resampleWidth 58 "$1" --out [email protected]
sips -s format png --resampleWidth 50 "$1" --out Icon-Small-50.png
sips -s format png --resampleWidth 72 "$1" --out Icon-72.png
@brianegge
brianegge / .bash_common
Created December 31, 2011 20:17
.bash_common
export GREP_OPTIONS=--color=auto
ffind ()
{
find . -name ".svn" -prune -o -name "CVS" -prune -o -name ".hg" -prune -o -exec grep --color=auto "$@" {} +
}
@brianegge
brianegge / gist:1637405
Created January 19, 2012 02:59
Find large files
sudo find / -mount -type f -ls|sort -rnk7 |head -30|awk '{printf "%10d MB\t%s\n",($7/1024)/1024,$NF}'