This file contains hidden or 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
# 1. Paste this into Script Editor, replace username and password; | |
# 2. Export as "Application", check "Stay open" and "Run-only"; | |
# 3. Add to Login Items in Settings/General to run automatically; | |
# 4. To hide the Dock icon, add to Content/Info.plist: | |
# <key>LSUIElement</key> | |
# <string>1</string> | |
on idle | |
set idleTime to (do shell script "ioreg -c IOHIDSystem | awk '/HIDIdleTime/ {print $NF/1000000000; exit}'") as integer | |
if idleTime is less than 58 then |
This file contains hidden or 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
#!/bin/bash | |
# Bulk DNS Lookup | |
# Generates a CSV of DNS lookups from a list of domains. | |
# | |
# File name/path of domain list: | |
domain_list='domains.txt' # One FQDN per line in file. | |
# | |
# IP address of the nameserver used for lookups: | |
ns_ip='1.1.1.1' # Is using Cloudflare's 1.1.1.1. | |
# |