Proof (second fundamental form in terms of shape operator)
Pick a parametrisation $σ$ with $σ(0) = p$ and use the basis $\set{σ_u(0), σ_v(0)}$.
By chain rule, $n_u(0) = \pdd{u}(n \circ σ)|_0 = Dn|_p (σ_u(0)) = -\mathbb{S}_p(σ_u(0))$ and similarly $n_v(0) = -\mathbb{S}_p(σ_v(0))$, so $$ \begin{align*} \pmat{L & M \\ M & N} = \pmat{\langle -n_u, σ_u\rangle & \langle -n_u, σ_v\rangle \\ \langle -n_v, σ_u\rangle & \langle -n_v, σ_v\rangle} = \pmat{\langle \mathbb{S}_p σ_u, σ_u\rangle & \langle \mathbb{S}_p σ_u, σ_v\rangle \\ \langle \mathbb{S}_p σ_v, σ_u\rangle & \langle \mathbb{S}_pσ_v, σ_v\rangle}. \end{align*} $$ This agrees with the matrix of $(v,w) \mapsto \langle \mathbb{S}_p v, w\rangle$ in the basis $\set{σ_u, σ_v}$.