Question: how to gpl your code?
Answer: Get a copyright disclaimer from your employer or school. Give each file the proper copyright notices. ...  Add a COPYING file with a copy of the GNU GPL or GNU AGPL. Also add a COPYING. ...  Put a license notice in each file. (Optionally) make the program display a startup notice.