Skip to content

Instantly share code, notes, and snippets.

View andyhullinger's full-sized avatar

Andy Hullinger andyhullinger

  • Medill School of Journalism, Media, Integrated Marketing Communications
  • Evanston, Illinois
  • 07:16 (UTC -05:00)
View GitHub Profile
@andyhullinger
andyhullinger / OSX Add Retina Suffix
Created February 11, 2014 02:12
A nify one-line OSX Terminal command to add the Retina @2x suffix to a folder full of .png files. Just cd into the folder and run this command.
for f in *.png; do NEW=${f%.png}@2x.png; mv ${f} "${NEW}"; done;
@andyhullinger
andyhullinger / OSX Get Image Dimensions
Created February 11, 2014 02:07
Another OSX Terminal tip I use all the time. Simple cd into a folder full of images and use the Mac's (scriptable image processing system) to read out the pixel dimensions of all the images.
sips -g pixelWidth -g pixelHeight *
@andyhullinger
andyhullinger / OSX Dock Spacers
Last active August 29, 2015 13:56
Simple OSX terminal command to ad blank spacers to your dock so that you can 'pretty' how you organize your Mac App icons. Simply repeat the command to create additional spacers. You'll have to "force-restart" your dock to see the newly created spacers, that's what the (killall) command is for.
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'
killall Dock