Code Snippets for WordPress and WooCommercce speed up which can be imported into the plugin.
For other useful code snippets for WordPress. https://github.com/senlin/Code-Snippets
https://wordpress.org/plugins/code-snippets/
You will need to install and active Code Snippets plugin on the site you want to import and use those code snippets on. Look for the Snippets admin menu, when viewing from wp-admin. So from Snippets > Import, select the XML file you want to import, then click on the Upload file and import button. Then from Snippets > All Snippets, you can see all, active and decativated snippets.