Last active
January 22, 2018 16:18
-
-
Save Duologic/a5f6549b4782784d38a6065690e17fd2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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