Accidentally disabled admin panel

I found this answer and it worked. I had to use googlefu, duckduckgo just didnt cut it.