Instead of writing a password I was trying to use a Yubikey when I needed to sudo. You are probably seeing where this is going...
I opened an extra terminal and ran sudo su, just to ensure that if anything went wrong I still had a terminal with sudo access. In a new terminal (or so I thought) changed the files I needed and closed the terminal.
Well, the configurations were wrong, I ended up loosing sudo access to the computer and breaking the computer.
So I spend my afternoon formating my computer and laughing about my own stupidity.
You have telnet. You can watch the complete episode 4 of Star Wars in Ascii on your terminal (and other ASCII movies)