I was editing an assignment, and I clicked on the do not show in gradebook box, and surprise it works, however how do I get that assignment back?

You will have to go to Assignments, Syllabus, choose the assignment you want to get back, and click on the select box next to that assignment.  Then click Edit at the bottom of the screen, and uncheck the Do Not Show box on the Assignment Screen.