This is an extremely simple script that I, nonetheless, thought the general public might have some use for. What it does is simply replace the weapons and equipment of a unit with that of another (default, config-based) unit's. So for instance if you want your CDF Militiaman to instead be sporting a full machinegunner's default gear, you could simply use this script instead of making a custom re-gearing script for each possible combination.
[unitName, "unit_class"] execvm "RUG_AssignEQ.sqf";
Unit classes can be found here: CfgVehicles
As mentioned, a very simple script, but perhaps useful for some of you
Attached below both script in itself (with comments) and a "demo mission".
NB: This script obviously cannot turn a militia soldier into a medic or engineer or change anything in their configs - it just replaces equipment.