Skip to content

Instantly share code, notes, and snippets.

View andrewimeson's full-sized avatar
🥓

Andrew Imeson andrewimeson

🥓
View GitHub Profile
@andrewimeson
andrewimeson / dns-block-check-example.bash
Created December 31, 2018 20:18
example of checking if domains are blocked using CleanBrowsing.org, which returns an NXDOMAIN with a special authority section upon block
#!/usr/bin/env bash
# Quick script to test if names are blocked using CleanBrowsing.org's Family
# Filter DNS servers
DNS_SERVER='185.228.168.168'
BLOCKED_AUTH="cleanbrowsing.rpz.noc.org."
domain_is_blocked() {
for name in "$@"; do
result=$(dig "$name" @${DNS_SERVER})
if echo "$result" | grep -q 'status: NXDOMAIN'; then

Keybase proof

I hereby claim:

  • I am andrewimeson on github.
  • I am andrewimeson (https://keybase.io/andrewimeson) on keybase.
  • I have a public key ASCLygkkyrwEhgEXPBhQhL59lO6klZXL_N_PdbEKTecyqQo

To claim this, I am signing this object:

@andrewimeson
andrewimeson / 0_reuse_code.js
Last active August 29, 2015 14:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console