Manualy overriding default rules and views on feature enable

Features is a great tool but has its limitiations. For one, you can't easily add stuff like views and rules which are already in code and provided by other modules.
Commerce for example extensively uses default views and rules. One workaround is to clone the rule/view and add that one to your feature. But then you would like to disable the original one or you end up with duplicate entries. A nice way to do this is with some custom code in your features .module file (which is mostyl empty and features will never override it).
See the 'disable rule on feature enable snippet' here.