Skip to content

Instantly share code, notes, and snippets.

View jcaddel's full-sized avatar

Jeff Caddel jcaddel

View GitHub Profile
Install s3fs on Mac OS X
1 - Install Homebrew - http://brew.sh/
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
2 - Use Homebrew to install s3fs + dependencies
brew install s3fs
3 - Do some custom stuff. I only used the first step from here -> https://gist.github.com/fukayatsu/3910097
sudo /bin/cp -rfX /usr/local/Cellar/fuse4x-kext/0.9.2/Library/Extensions/fuse4x.kext /Library/Extensions
@jcaddel
jcaddel / git-info.sh
Last active November 18, 2020 16:41
Somewhat similar to "svn info" but for a Git checkout
#!/bin/bash
#
# 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 {
RuleBook<String, String> messages = DefaultRuleBook.<String, String>builder()
.withDefaultResult("?")
.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"))
.build();
RuleBook<Applicant, Double> rates = DefaultRuleBook.<Applicant, Double>builder()