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
#!/usr/bin/env zsh | |
if networksetup -getdnsservers Wi-Fi | grep -q '1.1.1.1'; then | |
networksetup -setdnsservers Wi-Fi "Empty" | |
echo "Cloudflare DNS: \033[1mDisabled\033[0m" | |
else | |
networksetup -setdnsservers Wi-Fi 1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001 | |
echo "Cloudflare DNS: \033[1mEnabled\033[0m" | |
fi |
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
# Adds a drop shadow and rounded edges to images | |
# similar to MacOS App screenshots | |
# | |
# Requires ImageMagick: | |
# brew install imagemagick | |
# | |
# Add to ~/.zshrc or ~/.bashrc for easy usage | |
# | |
# Usage: | |
# shadow image.png |