Skip to content

Instantly share code, notes, and snippets.


Jeff Caddel jcaddel

View GitHub Profile
View gist:11a8ac44383084e5cd74747207e98312
RuleBook<String, String> messages = DefaultRuleBook.<String, String>builder()
.addRule(rule -> rule.when(code -> code.contains("hello"))
.then(message -> "Hello World"))
.addRule(rule -> rule.when(code -> code.contains("goodbye"))
.then(message -> "Goodbye Cruel World"))
RuleBook<Applicant, Double> rates = DefaultRuleBook.<Applicant, Double>builder()
View S3FS on Mac OS X
Install s3fs on Mac OS X
1 - Install Homebrew -
ruby -e "$(curl -fsSL"
2 - Use Homebrew to install s3fs + dependencies
brew install s3fs
3 - Do some custom stuff. I only used the first step from here ->
sudo /bin/cp -rfX /usr/local/Cellar/fuse4x-kext/0.9.2/Library/Extensions/fuse4x.kext /Library/Extensions
jcaddel /
Last active Nov 18, 2020
Somewhat similar to "svn info" but for a Git checkout
# Displays information about the current working copy of a Git checkout
# and how it relates back to the remote branch it is tracking (if there is one)
# Jeff Caddel <jcaddel at yahoo dot com>
function check_git_dir {
You can’t perform that action at this time.