Hills can be frustrating. 'Jedi Mind Tricks' as well as common sense cycling should help you avoid that frustration and allow you to get more out of your ride.
Go as straight up the hill as you go down it. Keep your handlebars pointing in the direction you are heading, plot a course that avoids the bumps and try not to let the front wheel weave from side to side. Only on the steepest of gradients will you need to zig-zag across the road, for other gradients doing so is costing you precious energy.
You are out to efficiently climb the hill and you are not in a race. You don't have to use every muscle in your body. Rather than be out of the saddle, pulling on the bars with your tendons popping, keep a relaxed upper body, be seated and turn the pedals at a sensible cadence. Keep your upper body focused on breathing, your legs on pedalling. With higher cadence you will be breathing more, with a lower cadence you will be punishing your knees more. Find a gear that gets this balance right for you.
Don't get anxious - there is no top to the top of the hill. Well there is but you don't have to have your psychology set on it. Take the hill in your stride and not give a damn about getting up and over it.
Do your best thinking on the hill. Unwind from your day whilst you wind up the hill. Think about things you want to think about. Dream. Invent. Inspire yourself. Do this instead of getting frustrated by the hill. But do stay awake enough to be aware of traffic etc.
Remember that practice makes perfect. Just by doing the hill every day you will get quicker and better at it. Keep it up and, if you do the hill every day, it will no longer be an obstacle. Take time out and you will be back to square one - huffing and puffing.
Play cycling games with yourself. Go constant effort on some days. Go into 'burst mode' some days to push yourself quickly through corners and then ease up on the less steep sections. If you have got clipless pedals push through different parts of the power stroke.
Enjoy the view. Play more games. Imagine what car on the street you would have if you could have any of them. Do the same with the houses. Be positively nosey with the houses and give a good look at them as you crawl by. With a row of identical houses make judgements about which ones have the best gardens/extensions/paint jobs.
Don't get frustrated about your bike. It might have a mega-flexy frame, brakes that rub, tyres that are nearly flat, gears that jump and a seat that is not quite in the right place. If you find yourself getting agitated about the bike and it not being the best in the world then you have to deal with that when you get in. There is nothing you can do on the hill. Remember that it is the rider and not the bike, the $$$$ carbon-fibre mega bike would help but you haven't got one of those and you have to be content with what you ride. The fit guy on a heap-of-junk always gets pleasure passing the flabby guy on the posh bike. Be that fit guy and make the bike immaterial.
Think of your co-workers and your neighbours. Even if it is raining, freezing cold and hard-going on the ride home there is no point feeling sorry for yourself. In fact do the opposite. Even if it is total adversity then you will get a buzz through coming through it. They may be in comfy cars but it is not all gravy. It does not take you that much more time to ride. They will not have done a great deal in the time saved by driving. They might go out to the gym 2-3 times a week, you don't have to bother. Going to the gym costs money and it takes up a lot more time than what you 'wasted' by cycling. Also, those cars cost money. The person paying for a car works for 5-10 hours a week just to keep the car on the road. Take pride in your cycling and see every pedal stroke as earning you money. Privately pity those people in nice warm cars with a nice stereo and cup holder.
Enough may not ever be enough for you. Your journey time, speed and exhaustion levels after the ride may not be what you expect. Put aside your angst at not being quicker, see yourself as flying up the hill. Imagine yourself to be a better ascender than a descender. When you imagine climbing to be one of your cycling strengths you will be more confident and happier doing it.
Do an experiment with the speedometer. Try out of the saddle and in the saddle. Note how your speeds are lower when out of the saddle and bear that in mind on your daily rides thereafter. Keep the speedometer on and make mental notes of what you expect on given sections. Don't push yourself to always improve the speedometer times, however, should you note that you are slower up your pace because you know you can do it. Don't let the speedometer demoralize you. It will always show an average below what you are doing and it may be in single digits on the hill. Don't worry about it.
Don't stop. Don't contemplate walking. Defeatism is not allowed. It also makes for poor time. Keep on keeping on. Think of the long-distance lorry driver and how he gets further up the road in a shorter time than the flash-car motorist that is forever pulling over to service stations. Or think of the tortoise and the hare. It is all about keeping going.
Don't expect to master the art of hill climbing overnight. But if you keep at it then it will come to you.