Well, while you've sorta admitted your "mistake", those double yellow lines are generally put there for a reason, and not observing them doesn't qualify as a "mistake". "Mistakes" can be forgiven, but a direct violation of the law, not so much. "A guy with my (your) experience should have known" it was dangerous, and a violation of the law. It could possibly have had dire consequences, as you almost found out, and if caught in the act, it would usually earn you a "performance award" and a fine. I wonder what that guy in the truck thought of your decision. It's stunts like these that give motorcyclists a bad name.
As a very young man, I earned a performance award for the very same thing, except in my. case there wasn't an oncoming vehicle in my path, just a Highway Patrol officer right behind me. I just couldn't take the oil burning exhaust fumes from the jalopy in front of me anymore - blue smoke boiling out from behind the car. The HP officer had no sympathy.
In the aviation community there's a saying - "There are old pilots and there are bold pilots, but there are no old bold pilots." It occurs to me that he same might be said of motorcyclists.