Is it safe to shoot a Glock like this?

Do not try this at home. This is being done with a Glock 19 and results could vary depending on the handgun.