Skip to content

Instantly share code, notes, and snippets.

View gooddadmike's full-sized avatar

mike searcy gooddadmike

View GitHub Profile
@gooddadmike
gooddadmike / Slackbot Responses - rock paper scissors lizard spock.md
Last active May 10, 2016 18:02
Slackbot Responses - rock, paper, scissors, spock, lizard.

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)

@gooddadmike
gooddadmike / Slackbot Responses - rock paper scissors.md
Last active November 3, 2016 00:25
Slackbot Responses - rock, paper, scissors

Typical paper rock scissors.

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/

@gooddadmike
gooddadmike / About Slackbot Responses - various.md
Last active July 1, 2024 12:32
Slackbot Responses - various
@gooddadmike
gooddadmike / month_template.md
Last active June 5, 2017 05:59
markdown table syntax for a month

MonthName

| Sun | Mon | Tue | Wed | Thu | Fri | Sat | |:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |

@gooddadmike
gooddadmike / image-folder-cleanup.sh
Last active September 19, 2016 19:54
bash script for clearing old files from a folder
#!/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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>local.remove-older-images</string>
<key>Program</key>
<string>/Users/msearcy/Library/Scripts/image-folder-cleanup.sh</string>
<key>RunAtLoad</key>
<true/>

Keybase proof

I hereby claim:

  • I am gooddadmike on github.
  • I am gooddadmike (https://keybase.io/gooddadmike) on keybase.
  • I have a public key ASAop0ArxKUUE1i9pEjRjaho1i-FgzcRt4kyKWC0YkmRYQo

To claim this, I am signing this object:

@gooddadmike
gooddadmike / vs-code-styles.css
Last active February 16, 2018 18:23
vs-code-styles.css
/* Set italics and comments to the script font */
.mtk4, .mtk5 {
font-family: 'Script12 BT';
font-size: 1em;
font-style: normal;
}
.comment,
.attribute-name,
.this,
Verifying my identity on Peepeth.com 0x487a3c9be75f6133c5a66a68242934d682e097b4
@gooddadmike
gooddadmike / git-res.md
Created September 19, 2018 17:46
Favorite Git Resources