It is a question asked by many young people, boredom is actually a state of slackness that spoils the mood of any, the state of boredom is actually a waste of time, we can't focus on a thing and simply sit and hang out, time passing by without doing anything.
I discovered a few methods about how to get rid of this condition.
Listen to music: a Few good songs, energetic and answered with a high volume can return us the adrenaline we need, a music genre that does this is dubstep, tested by me, it works!
Sleep: A sleep of a few hours you can relax totally, this chapter goes well and a movie, if everything is a lie, at least do it in a way that is useful and restful, to sit at the computer in a position uncomfortable when we can sleep for a few hours, so we can rest and when we wake up we'll be fresh and with the mood of the work required.
Take a shower or a bath: A bath or a shower can bring you back to the state that you need to continue the activities started, careful not to be too hot water, a hot water relaxes the muscles and induce a state of drowsiness, it is recommended to take a shower with water at room temperature.
Playing: A nice game and well picked you can make you feel better, choose games that require much thinking, so we put our heads together, do not choose light games and mundane, they won't do anything than to bore you more.
I hope to be of help this article !