misc.el contains a number of handy Emacs commands. For example, copy-from-above-command duplicates the non-blank line above point.