(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:
| [submodule "amqp"] | |
| path = amqp | |
| url = http://github.com/ry/node-amqp.git |
| If you're getting this error trying to use ApacheBench on OS X Lion: | |
| Benchmarking mwmanning.com (be patient)...apr_socket_recv: Connection reset by peer (54) | |
| You need to download the latest beta version of Apache and rebuild ab. Here's how (assuming you have homebrew installed). | |
| brew install pcre | |
| tar xzvf httpd-2.3.15-beta.tar.gz | |
| cd httpd-2.3.15-beta | |
| ./configure |
I like Rdio and linux. Rdio works great in a browser except for one thing: keyboard shortcuts!!!
When coding, I like to be able to play/pause my music quickly, meaning I don't want to switch windows. I figured out a way to do this:
First, I made a file in my ~/bin called rdio that runs:
google-chrome --app=http://rdio.com| /** | |
| * Setup Module with `highlight` filter | |
| */ | |
| var JekyllApp = angular.module('JekyllApp', [], function ($routeProvider, $locationProvider) { | |
| $locationProvider.html5Mode(false); | |
| }); | |
| JekyllApp.filter('highlight', function () { | |
| return function (text, filter) { |
| #!/usr/bin/python | |
| # A Pomodoro timer! | |
| # Built for the Raspberry Pi | |
| # | |
| # http://en.wikipedia.org/wiki/Pomodoro_Technique | |
| # https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/blob/master/Adafruit_LEDBackpack/Adafruit_7Segment.py | |
| # https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/blob/master/Adafruit_LEDBackpack/Adafruit_LEDBackpack.py | |
| # https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/blob/master/Adafruit_I2C/Adafruit_I2C.py | |
| # |
| # | |
| # Varnish VCL file for Ghost blogging platform. | |
| # http://ghost.org/ | |
| # | |
| # Written for Ghost v0.3.0. | |
| # | |
| # This is a low-hanging-fruit type of VCL. TTL of objects are overridden to 2 | |
| # minutes, and everything below /ghost/ is pass()-ed so the user sessions | |
| # work. | |
| # |
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var sass = require('gulp-sass'); | |
| var lr = require('tiny-lr'); | |
| var http = require('http'); | |
| var path = require('path'); | |
| var ecstatic = require('ecstatic'); | |
| var tlr = lr(); | |
| var livereload = function (evt, filepath) { | |
| tlr.changed({ |