A driver hurtled past other cars as he topped 145mph on a dual carriageway at Kirkcaldy.
John Currie, 25, was spotted by police in an unmarked car as he accelerated towards the eye-watering speed on the A921, near Gallatown roundabout.
He continued to overtake other vehicles in his silver Honda Civic before police signalled to him to pull over, and he was cautioned and charged.
The offence happened at around 10.40pm on a Friday evening on roads where the speed limit is 70mph.
As she banned him from driving for two years, Sheriff Alison McKay told Currie he was lucky he was stopped by police before a collision occurred.
She said: “You placed yourself, other road users and officers at risk and that cannot be tolerated by the court.”
At Kirkcaldy Sheriff Court on Tuesday, Currie, of Bank Place, Leslie, admitted driving dangerously on the A921, A92 and elsewhere on September 7, last year.
Just two months after that offence, the former soldier was caught drink driving on the A911 between Glenrothes and Windygates.
He admitted driving while over the alcohol limit on December 7, with 28 microgrammes of alcohol in 100 millilitres of breath. The limit is 22 microgrammes.
He was also accused of driving dangerously driving on that occasion, by failing to drive according to road and weather conditions, overtaking in poor visibility and conditions and driving at speeds of up to 90mph where the limit was 60mph.
However, his not guilty plea to that charge was accepted by the Crown.
Police concerned about his driving during the adverse weather stopped him and noticed a strong smell of alcohol.
Currie confessed to drinking earlier in the evening but said he had had no alcohol in the two hours before he drove.
A roadside breath test was positive, but the court heard the level of alcohol was at the lower end of the scale.