Quickly Get Your Local and Public IP Address from the Command Line

Occasionally I want to get either my local or public IP address and wanted to stop having to parse command outputs or Google for it.