Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 616 Bytes
# IP addresses
alias wanip="dig +short"
alias whois="whois -h"
# Flush Directory Service cache
alias flush="dscacheutil -flushcache"
# View HTTP traffic
alias httpdump="sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E \"Host\: .*|GET \/.*\""
# Ping the specified server (or the default and say "ping"
# through the speaker every time a ping is successful. Based on an
# idea from @gnarf.
function pingtest() {
local c
for c in say spd-say; do [[ "$(which $c)" ]] && break; done
ping ${1:-} | perl -pe '/bytes from/ && `'$c' ping`'