“The Devil and Simon Flagg” in which Flagg sells his soul in exchange for the proof of Fermat’s last theorem. No proof is found, but the Devil becomes consumed with mathematics.
I love any story about ancient super powerful creatures being defeated by modern people. Humanity kicks ass.
These things are often scaled to be something extremely powerful but possible for the hero to struggle against, at the time, which often puts them far below the capabilities of modern society. This is usually missing the point (the ancient God or gods probably set up an adversary that like that on purpose, or whatever, to show something to the mortals), but just taking that on face value and trouncing the thing will never not be funny to me.
Most of the deals in the article do not end well for the human, but here there's no lesson about hubris, nor the curse of knowledge, or anything else. No, Johnny's just a better fiddle player, he beats the devil, and he wins a golden fiddle fair and square.
(The article might allude to this story: "Satan is not the real God, because there is only one God; the Devil doesn’t have the best tunes.")
There is a lesson about hubris, but most people miss it. The Devil's deal is false, he doesn't play "fair and square." Johnny wins the bet but still loses his soul to the sin of pride. It's even in the lyrics: "My name's Johnny and it might be a sin, but I'll take your bet and you're gonna regret 'cause I'm the best that's ever been!"
Poland has a tale of "Pan Twardowski"(Mr Twardowski) about a man who made a pact with the devil for all kinds of powers, in exchange the devil said he will take Twardowski's soul if he ever sets his foot in Rome - since he didn't intend to visit Rome, he assumed this was the perfect deal. However the devil outwitted him, by coming for his soul in an inn called Rzym(Rome in Polish).
My favorite is the legend of the Devil's Bridge https://en.wikipedia.org/wiki/Schöllenen_Gorge where some Swiss hired the devil to build a bridge over a seemingly unbridgeable gorge, and then tricked him out of his payment.
I've referred to the devil as the Patron Unholy of Swiss engineering.
I love "The Grand Inquisitor" from Dostoevsky's The Brothers Karamazov. It's not exactly a deal with the devil, but it does have some interesting parallels.
My favorite is the Brazillian "Grande Sertão: Veredas"