Skip to content

Instantly share code, notes, and snippets.

@m-rey
Created July 23, 2021 10:35
generate and check ublock origin dynamic rules for CDNs using multiple hostnames containing sequentially numbered hostnames. Only online hostnames will be returned.
echo osm{0..100}.openstreetmap.fr | tr " " "\n" | parallel -j10 'ping -c 1 {} >/dev/null 2>&1 && echo \* {} \* noop' | sponge | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment