There are too many things a person can do when he is bored. As long as you want to make progress, you will have the motivation to learn and improve yourself. If you really can't sleep, you can lie in bed after washing and reflect on yourself, what you have done all day and whether you have made progress.
Don't do bad things just because you are bored!