The OS X Dock is centered along the bottom of the screen, with OS X Terminal you can pin the Dock into the corner of your Mac’s screen. This method works with both 2D & 3D versions of the Dock.
Top corner for a vertical Dock or the lower left corner for horizontal Dock:
defaults write com.apple.dock pinning start;killall Dock
Bottom corners for vertical Dock or the lower right corner for horizontal Dock:
defaults write com.apple.dock pinning end;killall Dock
You can restore the default centered Dock with:
defaults write com.apple.dock pinning middle;killall Dock
This doesn’t work on Yosemite– any updates for how to accomplish this?