Skip to content

Instantly share code, notes, and snippets.

@scumola
Last active April 5, 2017 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scumola/dd6a0f40c1a6a79486e14bc5b9996bd1 to your computer and use it in GitHub Desktop.
Save scumola/dd6a0f40c1a6a79486e14bc5b9996bd1 to your computer and use it in GitHub Desktop.
description
[[snippets]]
description = "Get my public IP"
command = "curl ifconfig.co"
output = ""
[[snippets]]
description = "Check SSL start and end dates"
command = "echo | openssl s_client -connect badcheese.com:443 2>/dev/null | openssl x509 -dates -noout"
output = ""
[[snippets]]
description = "prune files in /tmp"
command = "cd /tmp && find . -mtime +30 | xargs rm"
output = ""
[[snippets]]
description = "SQL prune data"
command = "delete from irclog where TO_DAYS(NOW()) - TO_DAYS(day) >= 100"
output = ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment