

https://en.m.wikipedia.org/wiki/Magic_SysRq_key
Alt+SysRq+C, although your distro may have it disabled by default.
A fair warning though, safety is relative and crashing the kernel can be destructive. Make sure you have backups when breaking things.
MIT license, for those wondering.