The tune may have been based on the melody of `` Go to the Devil and Shake Yourself '' , written by John Field ( 1782 â `` 1837 ) sometime before 1812 . The tune again was possibly based on the old melody of `` Go to the Devil and Shake Yourself '' , composed by John Field ( 1782 â `` 1837 ) sometime before 1812 .