I have violent and harmful thoughts towards others and myself and I hate myself for it
Why does this cause you to hate yourself?
I'm very ashamed and I sometimes think that other people hate me for it.
I think these emotions warrant a trip to a therapist.  You should get some help if your thoughts are that disordered and out of control.  They'll help you get healthy!
Nah I'll just keep it to myself and don't worry about it.
You telling me this means you are worried about it. If you suppress these thoughts then you will have a hard to controlling your emotions. It's much better to release these feelings onto a therapist that can help you.