Skip to content

Instantly share code, notes, and snippets.

@m-rey
Created July 23, 2021 10:35
Show Gist options
  • Save m-rey/305fa93a2de96bda97e10f59e64abb4a to your computer and use it in GitHub Desktop.
Save m-rey/305fa93a2de96bda97e10f59e64abb4a to your computer and use it in GitHub Desktop.
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