How do I create this glitch effect?

How would I go about making a glitch effect similiar to the ones in these pictures?



filter -> stylize -> wind

have fun