I got tired of going in and out of USB mode to transfer scripts to the card10. I also didn't want to use the more or less reliable serial connection.
This script used bluepy to open a connection and uploads the file using the same mechanism that the apps are using.
Caveats:
Documentation/bluetooth/card10.rst
.I'd like to merge this in it's current state.
Things to improve:
--silent
optionThis speeds up file transfers from Linux machines. Looks like the impact on power consumption is not too large. Android also does not seem to take this into account.