Last active
April 22, 2020 18:15
-
-
Save cqsd/9f57e3ff134d0431d65cedb08c5f22ef to your computer and use it in GitHub Desktop.
snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find people who put their place of work in their twitter bio | |
site:twitter.com -inurl:status -inurl:statuses -inurl:lists -inurl:COMPANY "@COMPANY" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# select successfully resolved domains from massdns ndjson output | |
jq -c '. | select(.status == "NOERROR") | select(.data | has("answers"))' | |
# example | |
for d in $(jq -c '.data.answers[] | select(.type == "A") | .name' < records.json); do | |
echo -n "$d " | |
curl -sL --connect-timeout 2 $d >/dev/null \ | |
&& echo live \ | |
|| echo timeout | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment