As configured in my dotfiles.
start new:
tmux
start new with session name:
# Setup a PPA repo, where the name is "user/ppaname", e.g. "blueyed/ppa" ("ppa" being the default) | |
define pparepo($apt_key = "", $dist = $ppa_default_name, $supported = ["lucid", "hardy"], $ensure = present, $keyserver = "keyserver.ubuntu.com") { | |
$name_for_file = regsubst($name, '/', '-', 'G') | |
$file = "/etc/apt/sources.list.d/pparepo-${name_for_file}.list" | |
file { "$file": } | |
case $ensure { | |
present: { | |
if ($dist) and ($dist in $supported) { | |
File["$file"] { |
# First install tmux | |
brew install tmux | |
# For mouse support (for switching panes and windows) | |
# Only needed if you are using Terminal.app (iTerm has mouse support) | |
Install http://www.culater.net/software/SIMBL/SIMBL.php | |
Then install https://bitheap.org/mouseterm/ | |
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |
# Cakefile to document, compile, join and minify CoffeeScript files for | |
# client side apps. Just edit the config object literal. | |
# | |
# -jrmoran | |
fs = require 'fs' | |
{exec, spawn} = require 'child_process' | |
# order of files in `inFiles` is important | |
config = |
As configured in my dotfiles.
start new:
tmux
start new with session name:
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php | |
$('[placeholder]').focus(function() { | |
var input = $(this); | |
if (input.val() == input.attr('placeholder')) { | |
input.val(''); | |
input.removeClass('placeholder'); | |
} | |
}).blur(function() { | |
var input = $(this); | |
if (input.val() == '' || input.val() == input.attr('placeholder')) { |
# Class: base::swap | |
# | |
# This class manages swapspace on a node. | |
# | |
# Parameters: | |
# - $ensure Allows creation or removal of swapspace and the corresponding file. | |
# - $swapfile Defaults to /mnt which is a fast ephemeral filesystem on EC2 instances. | |
# This keeps performance reasonable while avoiding I/O charges on EBS. | |
# - $swapfilesize Size of the swapfile in MB. Defaults to memory size, but see Requires. | |
# |
bootstrapAngular = -> | |
$('[ng-app]').each -> | |
module = $(this).attr('ng-app') | |
angular.bootstrap(this, [module]) | |
$(document).on('page:load', bootstrapAngular) |
# Since Mongoid switched to its own driver, many of the mongo API | |
# (available in mongo-ruby-drive) are missing. This is allows you | |
# to rename a collection thru command message. | |
# | |
# Be aware that the API constantly changes in mongoid | |
# | |
# Mongoid (3.1.0), Moped (1.4.2) | |
class MyModel | |
include Mongoid::Document |
Having trouble installing the latest stable version of tmux?
I know, official package for your OS/distro is outdated and you just want the newest version of tmux.
Well, this script should save you some time with that.