TOTD: Append local file to remote file via SSH

Sometimes it’s handy to be able to directly append to a remote file. Here is how to do it simply:

cat my_file | ssh user@host 'dd of=/home/user/outfile oflag=append conv=notrunc'