Skip to content

Instantly share code, notes, and snippets.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@davidnunez
davidnunez / gist:1741710
Created February 5, 2012 01:10
SSH trick: pipe microphone input of one machine to the speakers of another machine
dd if=/dev/dsp | ssh -C user@host dd of=/dev/dsp
@einblicker
einblicker / gist:1338773
Created November 4, 2011 06:14
scalaz and reify/reflect
import util.continuations._
import scalaz._
import Scalaz._
def reify[M[_] : Monad, A](body: => A @cps[M[A]]): M[A] =
reset{val result: A = body; implicitly[Monad[M]].pure[A](result)}
implicit def monad2reflect[M[_] : Monad, A](action: M[A]) = new {
def reflect[B]: A @cps[M[B]] =
shift{(k: A => M[B]) => implicitly[Monad[M]].bind(action, k)}
@mattwiebe
mattwiebe / unCamelCase.js
Created June 3, 2011 05:27
unCamelCase.js
/**
* Turns someCrazyName into Some Crazy Name
* Decent job of acroynyms:
* ABCAcryonym => ABC Acryoynm
* xmlHTTPRequest => Xml HTTP Request
*/
String.prototype.unCamelCase = function(){
return this
// insert a space between lower & upper
.replace(/([a-z])([A-Z])/g, '$1 $2')