Skip to content

Instantly share code, notes, and snippets.

View jpemberthy's full-sized avatar

Juan Pemberthy jpemberthy

View GitHub Profile
(require 'multiple-cursors)
(global-set-key (kbd "C-S-c C-S-c") 'mc/edit-lines)
(global-set-key (kbd "C->") 'mc/mark-next-like-this)
(global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
(global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this)
(when (memq window-system '(mac ns))
(add-to-list 'load-path "~/.emacs.d/elpa/exec-path-from-shell-20140731.907")
(require 'exec-path-from-shell)
(exec-path-from-shell-initialize))
;; tramp
(require 'tramp)
(setq tramp-default-method "ssh")
(env)jpemberthy@scarface ~/code/u/clay-tornado [master]$ export CLAY_CONFIG=clay_tornado/test/test.yaml; python setup.py test
running test
running egg_info
writing requirements to clay_tornado.egg-info/requires.txt
writing clay_tornado.egg-info/PKG-INFO
writing top-level names to clay_tornado.egg-info/top_level.txt
writing dependency_links to clay_tornado.egg-info/dependency_links.txt
reading manifest file 'clay_tornado.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'clay_tornado.egg-info/SOURCES.txt'
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
(defun comment-or-uncomment-region-or-line ()
"Comments or uncomments the region or the current line if there's no active region."
(interactive)
(let (beg end)
(if (region-active-p)
(setq beg (region-beginning) end (region-end))
(setq beg (line-beginning-position) end (line-end-position)))
(comment-or-uncomment-region beg end)))
(global-set-key (kbd "M-/") 'comment-or-uncomment-region-or-line)
;;; better-defaults.el --- Fixing weird quirks and poor defaults
;; Copyright © 2013 Phil Hagelberg and contributors
;; Author: Phil Hagelberg
;; URL: https://github.com/technomancy/better-defaults
;; Version: 0.1.2
;; Created: 2013-04-16
;; Keywords: convenience
PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$(parse_git_branch)$\[\033[00m\] "
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit, working directory clean" ]] && echo "*"
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/"
}
<27 GET Entry.143.hearted_by(26-4)@development
> FOUND KEY Entry.143.hearted_by(26-4)@development -nuked by expire
>27 Writing an error: Not found
>27 Writing bin response:
>27 0x81 0x00 0x00 0x00
>27 0x00 0x00 0x00 0x01
>27 0x00 0x00 0x00 0x09
>27 0x00 0x00 0x00 0x00
>27 0x00 0x00 0x00 0x00
>27 0x00 0x00 0x00 0x00
# Apache Titan
[http://thinkaurelius.github.io/titan/](http://thinkaurelius.github.io/titan/)
### What is it?
They sell it as a scalable graph database optimized for storing and querying graphs containing hundreds of billions AND TRILLIONS of vertices and edges distributed across a multi-machine cluster.
So if that's true, we should be able to use at WHI.