Skip to content

Instantly share code, notes, and snippets.

Fergus Bremner fergusb

Block or report user

Report or block fergusb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pet-snippet.toml
[[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 = ""
You can’t perform that action at this time.