| Sun | Mon | Tue | Wed | Thu | Fri | Sat | |:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
#!/bin/sh | |
# for only the given folder, remove files older than 1 day excluding the .DS_Store and the files whose name starts with '_keep' | |
/usr/bin/find /Users/msearcy/Dropbox/images/Wallpapers ! -name '.DS_Store' ! -name 'keep_*' -mtime +1 -maxdepth 1 -type f -exec rm -f {} \; | |
# for the given folder check for a specific md5 hash (image placeholder from ifttt) and delete any file that matches | |
/usr/bin/find /Users/msearcy/Dropbox/images/Wallpapers -type f -exec md5 -r {} + | grep '3993028fcea692328e097de50b26f540' | xargs rm -f | |
# storing this file in ~/Library/Scripts | |
# test echo time ran: $(date '+%Y-%m-%dT%H:%M:%S%z') >> /Users/msearcy/Dropbox/images/Wallpapers/run.log | |
# old script with non-working image search pattern: /find /Users/msearcy/Dropbox/images/Wallpapers -mtime +1 -type f -mindepth 1 -maxdepth 1 -exec file {} \; | awk -F: '{ if ($2 ~/[Ii]mage|EPS/) print $1}' | xargs -0 rm |
custom emoji needed
- emoji name: d20 = icon link
also see my rock-paper-scissors slackbot response game and the lizard spock expansion
here is where I keep all my added emojis
If someone says paper, rock, scissors or uses any of those emoji-alias we initiate the game
update: I decided ✂️ is nothing like ✌️ so should not be part of this
I use the ✋ 👊 and ✌️ emoji
useful resource http://www.emoji-cheat-sheet.com/
This was inspired by Big Bang Theory and Sam Kass
Supports both my standard rock paper scissors and the "lizard spock expansion (this gist)
Follow directions for standard rock paper scissors first to set up emoji.
update: I decided ✂️ is nothing like ✌️ so should not be part of this
Emoji Alias for Expansion update: There is now a :spock-hand: emoji (doesn't show in github yet)