When I was hiking, a fellow hiker told me, "A slow pace beats no pace." This was great on long climbs, and would keep me moving instead of resting.
I tried it on big hills on the bike, but found it too complicated. Now when I am down to the slog I do the Finding Nemo seagulls: "Mine. Mine. Mine."