"How to respond to hate and violence to oneself"
"Monks, there are these five aspects of speech by which others may address you: timely or untimely, true or false, affectionate or harsh, beneficial or unbeneficial, with a mind of good-will or with inner hate. Others may address you in a timely way or an untimely way. They may address you with what is true or what is false. They may address you in an affectionate way or a harsh way. They may address you in a beneficial way or an unbeneficial way. They may address you with a mind of good-will or with inner hate.
In any event, you should train yourselves: 'Our minds will be unaffected and we will say no evil words. We will remain sympathetic to that person's welfare, with a mind of good will, and with no inner hate. We will keep pervading him with an awareness imbued with good will and, beginning with him, we will keep pervading the all-encompassing world with an awareness imbued with good will — abundant, expansive, immeasurable, free from hostility, free from ill will.' That's how you should train yourselves."
[...]
"Monks, even if bandits were to carve you up savagely, limb by limb, with a two-handled saw, he among you who let his heart get angered even at that would not be doing my bidding. Even then you should train yourselves: 'Our minds will be unaffected and we will say no evil words [...]' That's how you should train yourselves.
-- Kakacupama Sutta, MN 21
"How to deal with hypocrisy"
Abandoning false speech, he abstains from false speech; he speaks truth, adheres to truth, is trustworthy and reliable, one who is no deceiver of the world. Abandoning malicious speech, he abstains from malicious speech; he does not repeat elsewhere what he has heard here in order to divide [those people] from those; thus, he is one who reunites those who are divided, a promoter of friendships, who enjoys concord, rejoices on concord, delights on concord, a speaker of words that promote concord. Abandoning harsh speech, he abstains from harsh speech; he speaks such words as are gentle, pleasing to the ear, and lovable, as go to the heart, are courteous, desired by many, and agreeable by many. Abandoning gossip, he abstains from gossip; he speaks at the right time, speaks what is fact, speaks on what is good, speaks on the Dhamma, and the Discipline; at the right time he speaks such words as are worth recording, reasonable, moderate, and beneficial.
-- Culahatthipadopama Sutta, MN 27 (Nanamoli/Bodhi)
On a meditation setting, concerning your own thoughts:
[...] As I abided thus, diligent, ardent and resolute, a thought of [sensual desire, ill will, cruelty] arose in me. I understood thus: 'This thought of [sensual desire, ill will, cruelty] arose in me. This leads to my own affliction, to others affliction, and to the affliction of both; it obstructs wisdom, causes difficulties, and leads away from Nibbāna'. When I considered: 'This leads to my own affliction', it subsided in me; When I considered: 'This leads to others affliction', it subsided in me; When I considered: 'This leads to the affliction of both', it subsided in me; When I considered: 'This obstructs wisdom, causes difficulties, and leads away from Nibbāna', it subsided in me. Whenever a thought of [sensual desire, ill will, cruelty] arose in me, I abandoned it, removed it, did away with it.
Bhikkhus, whatever a bhikkhu frequently thinks and ponders upon, that will become the inclination of his mind. [...]
But with excessive thinking and pondering I might tire my body, and when the body is tired, the mind becomes strained, and when the mind is strained, it is far from concentration. So I steadied my mind internally, quieted it, brought it to singleness, and concentrated it. Why is that? So my mind should not be strained.
-- Dvedhāvitakka Sutta [Bodhi trans.], MN 19
and:
[...] If, while he is examining the danger in those thoughts, there still arise in him evil unwholesome thoughts connected with desire, with hate, with delusion, then he should try to forget those thoughts and should not give attention to them. When he tries to forget those thoughts and does not give attention to them, then any evil unwholesome thoughts connected with desire, with hate, and with delusion are abandoned in him and subside. With the abandoning of them his mind becomes steadied internally, quieted, brought to singleness, and concentrated. [...]
If, while he is trying to forget those thoughts and is not giving attention to them, there still arise in him evil unwholesome thoughts connected with desire, with hate and with delusion, then he should give attention to stilling the thought-formation of those thoughts. [...]
If while he is giving attention to stilling the thought-formation of those thoughts, there still arise in him evil unwholesome thoughts connected with desire, with hate, and with delusion, then, with his teeth clenched and his tongue pressed against the roof of his mouth, he should beat down, constrain and crush mind with mind.
-- Vitakkasanthāna Sutta, [Bodhi Trans.] MN 20
About the next ones: "How to respond in situations of injustice", "How to deal when someone abuses of your kindness" and "How to deal when someone takes advantage of your good intentions"...
The short answer is "do the above, rinse & repeat", be just, don't abuse kindness of others or their good intentions. And if people are unjust and abuse kindness, still, be just and don't abuse them. If they harm you and become a hindrance, consider staying away from their reach.
Or, in the suttas words, when these situations manifest, tolerate:
“And which is intolerant practice? There is the case where a certain individual, when insulted, returns the insult; when abused, returns the abuse; when bickered with, bickers in return. This is called intolerant practice.
“And which is tolerant practice? There is the case where a certain individual, when insulted, doesn’t return the insult; when abused, doesn’t return the abuse; when bickered with, doesn’t bicker in return. This is called tolerant practice.
-- AN 4.164
...and endure:
“And how is a monk an endurer? There is the case where a monk is resilient to cold, heat, hunger, & thirst; the touch of flies, mosquitoes, wind, sun, & reptiles; ill-spoken, unwelcome words & bodily feelings that, when they arise, are painful, racking, sharp, piercing, disagreeable, displeasing, & menacing to life. This is how a monk is an endurer.
-- AN 5.140
Once it's clear the inclinations of the people around and their inclination to harm, decide how to protect yourself in the future:
(1) “And what kind of person, bhikkhus, is to be looked upon with disgust, not to be associated with, followed, and served? Here, some person is immoral, of bad character, impure, of suspect behavior, secretive in his actions, not an ascetic though claiming to be one, not a celibate though claiming to be one, inwardly rotten, corrupt, depraved. Such a person is to be looked upon with disgust, not to be associated with, followed, and served. For what reason? Even though one does not follow the example of such a person, a bad report still circulates about oneself: ‘He has bad friends, bad companions, bad comrades.’ Just as a snake that has passed through feces, though it does not bite one, would smear one, so too, though one does not follow the example of such a person, a bad report still circulates about oneself: ‘He has bad friends, bad companions, bad comrades.’ Therefore such a person is to be looked upon with disgust, not to be associated with, followed, and served.
(2) “And what kind of person is to be looked upon with equanimity, not to be associated with, followed, and served? Here, some person is prone to anger an.i.127 and easily exasperated. Even if he is criticized slightly he loses his temper and becomes irritated, hostile, and stubborn; he displays irritation, hatred, and bitterness. Just as a festering sore, if struck by a stick or a shard, will discharge even more matter, so too … Just as a firebrand of the tinduka tree, if struck by a stick or shard, will sizzle and crackle even more, so too … Just as a pit of feces, if struck by a stick or a shard, becomes even more foul-smelling, so too some person here is prone to anger and … displays irritation, hatred, and bitterness. Such a person is to be looked upon with equanimity, not to be associated with, followed, and served. For what reason? With the thought: ‘He might insult me, revile me, and do me harm.’ Therefore such a person is to be looked upon with equanimity, not to be associated with, followed, and served.
(3) “And what kind of person is to be associated with, followed, and served? Here, some person is virtuous and of good character. Such a person is to be associated with, followed, and served. For what reason? Even though one does not follow the example of such a person, a good report still circulates about oneself: ‘He has good friends, good companions, good comrades.’ Therefore such a person is to be associated with, followed, and served.
-- AN 3.27
For illustration, here's a discourse where the Buddha is insulted:
Angered & displeased, [the brahman Akkosaka] went to the Blessed One and, on arrival, insulted & cursed him with rude, harsh words. [The Buddha replied]:
"that with which you have insulted me, who is not insulting; that with which you have taunted me, who is not taunting; that with which you have berated me, who is not berating: that I don't accept from you. It's all yours, brahman. It's all yours."
"Whoever returns insult to one who is insulting, returns taunts to one who is taunting, returns a berating to one who is berating, is said to be eating together, sharing company, with that person. But I am neither eating together nor sharing your company, brahman. It's all yours. It's all yours."
-- SN 7.2
"How to apply the teachings in a society where oneself and ego predominates"
By choice.