Shameless plug for the Let's Block It project: we have a filter template to selectively remove domains from search results: https://letsblock.it/filters/search-results
For the Stackoverflow / Github clones, we partner with https://github.com/quenhus/uBlock-Origin-dev-filter and their lists are available as presets at the bottom of the filter configuration.