Skip to content

Instantly share code, notes, and snippets.

David James xpe

  • Berkeley, CA
Block or report user

Report or block xpe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
xpe / start-riak
Created Oct 24, 2014
Adjusts ulimit, as needed, and starts Riak on Mac OS X. Tested on Yosemite.
View start-riak
#!/usr/bin/env bash
MAXFILES=$(launchctl limit maxfiles | sed -e 's/[[:space:]]+/ /g' | xargs)
if [ "$MAXFILES" != "maxfiles 65536 65536" ]; then
set -x
sudo launchctl limit maxfiles 65536 65536
set -x
ulimit -n 65536
riak start
xpe / project.clj
Created Mar 29, 2014
Example project.clj for Clojure web app using Pedestal and Datomic
View project.clj
(defproject myapp-service "0.0.2-SNAPSHOT"
:description "A web app"
:url ""
[[org.clojure/clojure "1.6.0"]
[org.clojure/tools.reader "0.8.3"]
[com.datomic/datomic-pro "0.9.4699"
:exclusions [org.slf4j/slf4j-api org.slf4j/slf4j-nop commons-codec]]
[io.pedestal/pedestal.service "0.2.2"
:exclusions [com.fasterxml.jackson.core/jackson-core]]
xpe / deploy
Last active Aug 29, 2015
I use this script to build a WAR file (from a Clojure Pedestal app)
View deploy
#!/usr/bin/env bash
set -e # exit on failure
[ -n "$DEBUG" ] && set -x # turn on command echo
# --------------
# Step 4: Deploy
# --------------
# Consult the documentation of your web container to find out how to deploy an
You can’t perform that action at this time.