Create a rolling code garage door opener
To do this you'd  need to know the code algorithm that the remotes are using. 
this is a usually trade secret of the door-opener manufacturer

I guess you could attach a 315MHz receiver to the pi and record a million codes from a remote and store them in a file.

you'd probably then be able to play back the codes and they would follow the mutation pattern that the door opener is expecting.