Skip to content

Instantly share code, notes, and snippets.

View fergusb's full-sized avatar

Fergus Bremner fergusb

View GitHub Profile
@fergusb
fergusb / pet-snippet.toml
Last active February 26, 2019 15:00
description
[[snippets]]
description = "DDOS Monitoriing"
command = "sudo netstat -nap | grep \\:80\\ | awk '{print $5}' | tr \":\" \" \" | awk '{print $1}' | sort | uniq -c | sort -n"
output = ""
[[snippets]]
description = "find and replace in filename (e.g., hyphen for a space)"
command = "zmv '* - *' '$f:s/ - / '"
output = ""