For the yellow male brake connectors I've used Schrader valve caps. Open up the inside slightly with a suitable drill bit turned by hand, then fix in place with a thin strip of insulation tape. Not ideal, but better than nothing.
For fitting the battery slider to downtubes I've found this to be...