Skip to content

Instantly share code, notes, and snippets.

View wavejumper's full-sized avatar
👽

Thomas Crowley wavejumper

👽
View GitHub Profile
FROM phusion/baseimage:0.9.6
RUN apt-get -qq -y install wget
RUN wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc -O /tmp/rabbitmq.asc
RUN apt-key add /tmp/rabbitmq.asc
RUN rm /tmp/rabbitmq.asc
RUN echo "deb http://www.rabbitmq.com/debian/ testing main" > /etc/apt/sources.list.d/rabbitmq.list
RUN apt-get -qq update
RUN apt-get -qq -y install rabbitmq-server
@wavejumper
wavejumper / gist:9752299
Last active August 29, 2015 13:57
keybase.md
### Keybase proof
I hereby claim:
* I am wavejumper on github.
* I am crowley (https://keybase.io/crowley) on keybase.
* I have a public key whose fingerprint is 549E A6FA 6952 A4F6 CAD6 41FC CBC2 6C40 3C9D 8DB2
To claim this, I am signing this object:
[org.clojure/clojure "1.5.1"]
overrides
[clojurewerkz/elastisch "2.0.0-beta3"] -> [org.clojure/clojure "1.6.0"]
Consider using these exclusions:
[clojurewerkz/elastisch "2.0.0-beta3" :exclusions [org.clojure/clojure]]
[compojure "1.1.6"] -> [org.clojure/core.incubator "0.1.0"]
overrides
[com.cemerick/friend "0.2.0"] -> [org.clojure/core.incubator "0.1.1"]
#!/bin/bash
DOWNLOADS=/home/wavejumper/files
WATCH_FOLDER=/home/wavejumper/deluge-watch
SEEDBOX_BOOKMARK=Seedbox
case "$1" in
upload)
scp "$2" $SEEDBOX:$WATCH_FOLDER
;;
@wavejumper
wavejumper / slang.js
Created June 10, 2014 01:44
Random South African slang word
#!/bin/env node
var words = [
'ag man',
'antie',
'anties',
'aweh',
'baas',
'babelaas',
'bakgat',
#!/bin/bash
# Modified from https://gist.github.com/douglasduteil/5525750#file-travis-secure-key-sh
#
# If you need:
# ssh-keygen -t rsa -C "travis" -f ~/.ssh/travis_rsa
#
# Example usage: ./travis-encrypt-key.sh ~/.ssh/travis-rsa
# Run in same directory as your .travis.yml file
@wavejumper
wavejumper / gist:607f556001e5cf202cc2
Last active August 29, 2015 14:06
.emacs-live.el
(live-add-packs '(~/.live-packs/tom-pack))
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))
(set-default-font "Inconsolata 14")
(add-hook 'after-init-hook 'color-theme-solarized-dark)
(add-hook 'prog-mode-hook #'diff-hl-mode)
(setq scroll-step 1)
(setq scroll-conservatively 10000)
@wavejumper
wavejumper / gist:f4e55e03ce6ec54e4235
Created September 19, 2014 02:17
Visualize hierarchy
(use 'rhizome.viz)
(defn hierarchy [root]
(for [d (descendants root)
:when (some #{root} (parents d))
:let [h (hierarchy d)]]
(if (empty? h) d [d h])))
(defn hierarchy-graph [root]
(view-tree sequential? seq [root (hierarchy root)]
@wavejumper
wavejumper / gist:ed92bf6fb542f7e9dff6
Created February 15, 2015 07:22
observe-ring.clj
(ns foo.core
(:require [clojure.core.match :refer (match)]
[compojure.core :refer :all]))
(defn metrics [req resp]
(match [req resp]
[{:uri "/login"} {:status 401}]
(println "Failed login")
[{} {:status 500}]
Show: Clojure Java REPL Tooling Duplicates All (21 frames hidden)
1. Unhandled clojure.lang.ExceptionInfo
Value does not match schema: {:a (not (= :b :c)), :b
missing-required-key}
{:type :schema.core/error,
:schema
{:a {:v :b},
:b [java.lang.String],