Cohomologies and deformations of weighted Rota-Baxter Lie algebras and associative algebras with derivations | Synapse