Skip to content

Instantly share code, notes, and snippets.

@ethul
ethul / .gitignore
Created November 23, 2012 12:23
Free Kvs
.*swp
.*un~
@ethul
ethul / .bash_profile
Created November 14, 2012 01:53
.bash_profile
# Enables bash auto-completion for homebrew packages
source $(brew --prefix)/Library/Contributions/brew_bash_completion.sh
source $(brew --prefix)/etc/bash_completion.d/git-completion.bash
source $(brew --prefix)/etc/bash_completion.d/git-prompt.sh
source $(brew --prefix)/etc/bash_completion.d/scala
# Coreutils commands are prefixed with "g", in order to use them with
# their real names, uncomment the following.
#PATH="$(brew --prefix coreutils)/libexec/gnubin:$PATH"
#MANPATH="$(brew --prefix coreutils)/libexec/gnuman:$MANPATH"
@ethul
ethul / vimrc
Created July 24, 2012 23:59
.vimrc
filetype off
call pathogen#infect()
syntax on
filetype plugin indent on
set nocompatible
set modelines=0
set gfn=Monospace\ 8
set tabstop=2
set softtabstop=2
import scalaz._, Scalaz._, effect._
type Env = Map[String,String]
type Error = String
case class AppStack[A](f: Env => IO[Validation[Error,A]])
object AppStack {
implicit val appStackMonad = new Monad[AppStack] {
def point[A](a: => A): AppStack[A] =
# keep only necessary jars in the slug
START_SCRIPT="target/start"
if [ -f $START_SCRIPT ] && [ -d $SBT_USER_HOME/.ivy2 ] ; then
echo "-----> Dropping unnecessary ivy cached jars from the slug"
for jar in $(find $SBT_USER_HOME/.ivy2 -name '*.jar' | xargs -0) ; do
[[ -f "$jar" ]] || continue
jar_name=`basename "$jar"`
if grep $jar_name $START_SCRIPT >/dev/null; then
echo "Keeping: $jar_name"
else