Skip to content

Random System Commands

MacOS

Clear DNS Resolver Cache

To clear your local DNS resolver cache on MacOS, run this command.

sudo dscacheutil -flushcache && \
sudo killall -HUP mDNSResponder

Easy Password Generation

This generates a random password of length 20 and copies it to the copy buffer.

LC_ALL=C tr -dc "[:alnum:]" < /dev/urandom | head -c 20 | pbcopy

Linux

Shell Enhancements

Powerline10k

zsh-autocomplete