Skip to content

Instantly share code, notes, and snippets.

@Duologic
Last active January 22, 2018 16:18
Show Gist options
  • Save Duologic/a5f6549b4782784d38a6065690e17fd2 to your computer and use it in GitHub Desktop.
Save Duologic/a5f6549b4782784d38a6065690e17fd2 to your computer and use it in GitHub Desktop.
sgrepy periodic_task -A1 | grep -v import | grep -v "^\-\-$" | grep def | wc -l
sgrepy \@periodic_task -A1 | grep -v "^\-\-$" | grep def | wc -l
echo | openssl s_client -connect site:port 2>/dev/null | openssl x509 -noout -dates
hostname && timeout 2 bash -c "2>/dev/null >/dev/tcp/<ip>/<port>" && echo works
openssl x509 -in certificates/certificate.crt -text -noout
sudo tcpdump -i ethX icmp and icmp[icmptype]=icmp-echo
# slack <text>
slack(){
curl -X POST --data-urlencode 'payload={"channel": "@channel", "username": "Maurice Moss", "text": "'${1}'", "icon_emoji": ":moss:"}' "https://hooks.slack.com/services/<keystuff>"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment