This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g base-index 1 | |
set -s escape-time 0 | |
# Window Switching | |
bind-key -n C-NPage next | |
bind-key -n C-PPage prev | |
bind-key -n C-M-NPage swap-window -t +1 | |
bind-key -n C-M-PPage swap-window -t -1 | |
bind-key n next |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
"use strict"; | |
var es = require('event-stream'); | |
var Promise = require("bluebird"); | |
var pg = Promise.promisifyAll(require("pg.js")); | |
var pt = require("stream").PassThrough; | |
var copyStream = require("pg-copy-streams").from; | |
var _ = require("lodash"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Embed this function inside your .bashrc or equivalent. | |
function setgopath() { | |
# Assume we're in the src directory, and strip off src and everything after it. | |
DIR=${PWD/src*/} | |
if [ -d "$DIR/src" -a -d "$DIR/bin" -a -d "$DIR/pkg" ]; then | |
export GOPATH=$DIR | |
fi | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo servicePort=4200 >> ~/Library/Application\ Support/CrashPlan/ui.properties | |
echo Open your Crashplan client after the SSH session connects. | |
# Change $SERVER to the hostname or IP of your server. Or just pause here. | |
ssh -L 4200:localhost:4243 $SERVER | |
echo Reverting settings file... | |
sed -e /servicePort/d -i bak ~/Library/Application\ Support/CrashPlan/ui.properties |
NewerOlder