(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| #!/bin/bash | |
| ## incremental rsync backup script | |
| ## run hourly via cron, will take a back up every 24hrs for up to 7days. | |
| ## efficent use of space using hard links | |
| ## can handle computers been turned on / off | |
| ## executes n backup processes in parallel | |
| # ------------- computers to backup ----------------------------------- | |
| # IP Address or fully qualified names here + remote backup directory |
| package ; | |
| class DevTools { | |
| macro static public function measure(e, ?msg:String) { | |
| if (msg == null) | |
| msg = haxe.macro.ExprTools.toString(e); | |
| return macro @:pos(e.pos) { | |
| var start = haxe.Timer.stamp(), | |
| result = [$e];//wrapping in the array skews the result a bit, but avoids issues with Void | |
| var duration = haxe.Timer.stamp() - start; |
| var dom = Bloop.dom; | |
| var Box = Bloop.createClass({ | |
| getInitialState: function() { | |
| return { number: 0 }; | |
| }, | |
| updateNumber: function() { | |
| this.state.number++; | |
| }, |
| (function() { | |
| // Do not use this library. This is just a fun example to prove a | |
| // point. | |
| var Bloop = window.Bloop = {}; | |
| var mountId = 0; | |
| function newMountId() { | |
| return mountId++; | |
| } |
| /** @jsx React.DOM */ | |
| var STATES = [ | |
| 'AL', 'AK', 'AS', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'DC', 'FL', 'GA', 'HI', | |
| 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MD', 'MA', 'MI', 'MN', 'MS', | |
| 'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'OH', 'OK', 'OR', | |
| 'PA', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VA', 'WA', 'WV', 'WI', 'WY' | |
| ] | |
| var Example = React.createClass({ |
| // This is my attempt at making Phoenix as vim-like as possible. A good chunk | |
| // of the code comes from https://gist.github.com/teetrinkers/9435065 | |
| // | |
| // Command mode is activated with shift-ctrl-alt-command-space | |
| // When we are in command mode, we can do things like: | |
| // "h" to move current window to the left side of the screen | |
| // "mh" to move the current window a nudge | |
| // "mH" moves the window all the way to the left | |
| // "34m" moves the window to the imaginary grid position 3:4 | |
| // "10mh" to move the current window 10 nudges |
| define(function () { | |
| 'use strict'; | |
| var _ = require('underscore'); | |
| var ValidationMixin = { | |
| getInitialState: function () { | |
| return { | |
| errors: [] |
| var dom = Bloop.dom; | |
| var Box = Bloop.createClass({ | |
| getInitialState: function() { | |
| return { number: 0 }; | |
| }, | |
| updateNumber: function() { | |
| this.state.number++; | |
| }, |