Skip to content

Instantly share code, notes, and snippets.

@colby
Created January 6, 2017 21:44
Show Gist options
  • Save colby/6c932ac1482e2648925952142cf41ce6 to your computer and use it in GitHub Desktop.
Save colby/6c932ac1482e2648925952142cf41ce6 to your computer and use it in GitHub Desktop.
wget https://gist.githubusercontent.com/colby/20fb4fc48f5ebf9a062da5fdf1f59f88/raw/c154e38fb44f9aaf1e6d8329cc5546bef41b57ea/dank-tags.csv
function dank() {
local tags=~/Desktop/dank-tags.csv
if [[ $# -gt 0 ]]
then
grep "$@" $tags | gsort --random-sort | head -n 1 | say
else
gsort --random-sort $tags | head -n 1 | say
fi
}
@colby
Copy link
Author

colby commented Jan 21, 2017

ssh zum.dfw "ssh web17 'cd /var/www/www.zumiez.com/current && n98-magerun.phar db:que \"SELECT NAME FROM tag;\"'" > ~/Desktop/dank-tags.csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment