Recovering a accidently deleted file in Ubuntu
There's nothing reliable. extundelete runs through the raw filesystem, and restores things that look like files to a recovered file directory. It's for ext3, but its creators claim some success with ext4.
The risk is that your file gets overwritten by later writes, so that there is nothing to recover. Or that the program is defated by some quirk of ext4fs.