Forked from palmin/secure-shellfish-snippet-gallery.json
Created
September 25, 2022 07:54
-
-
Save extratone/d52241da4578ad05edad9122daa416f1 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
{ | |
"weather": { | |
"body": ["curl 'https://wttr.in/?0'\n"], | |
"description": "Weather from terminal" | |
}, | |
"external-ip": { | |
"body": ["dig @resolver4.opendns.com myip.opendns.com +short\n"], | |
"description": "Lookup external IP" | |
}, | |
"30-day-old-files": { | |
"body": ["find . -mtime +30 -print", ""], | |
"description": "Find all files older than 30 days" | |
}, | |
"git-top-committers": { | |
"body": ["git shortlog -sn --all --no-merges\n"], | |
"description": "Top Git committers" | |
}, | |
"sudo-last-command": { | |
"body": ["sudo !!\n"], | |
"description": "Repeat last command as superuser" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment