Skip to content

Instantly share code, notes, and snippets.

View rcoder's full-sized avatar

Lennon Day-Reynolds rcoder

View GitHub Profile
@rcoder
rcoder / escher.rb
Created December 14, 2012 00:03 — forked from lecram/escher.py
=begin
Single-file K/V database and query script.
This one also does compression (because disk I/O and efficiency and
"best practices" and shut up, that's why).
Inspired by (and hopefully more ridiculous than) https://gist.github.com/4280027
=end
USAGE = <<END
@rcoder
rcoder / vcs.sh
Created January 6, 2011 00:15 — forked from dcolish/vcs.sh
GIT="`which git`"
HG="`which hg`"
function checkvcs() {
base=$1
if [[ -d "${base}/.git" ]]; then
VCS="$GIT"
elif [[ -d "${base}/.hg" ]]; then
VCS="$HG"
else