Man survives attack by great white shark off California beach