Note that I use Ctrl-a for my prefix k
C-a C-o
Rotate panesC-a q
Show pane numbersswap-pane -s source -t target
Rearrange panes
Default Bindings
#!/bin/bash | |
# | |
# tmux helper script to get current transfer rates | |
# Contributors: Prurigro, inhies | |
# License: MIT (included in footer) | |
TIMESPAN=1 # Timespan in seconds to measure over | |
USE_BC=true # Use bc to get a more accurate number | |
PREC="2" # If using bc, to what precision do you want the results |
# C-b is not acceptable -- Vim uses it | |
set -g prefix C-a | |
unbind C-b | |
bind-key C-a last-window | |
# Start numbering at 1 | |
set -g base-index 1 | |
# Allows for faster key repetition | |
set -s escape-time 0 |
package main | |
import ( | |
"code.google.com/p/go.crypto/curve25519" | |
"crypto/rand" | |
"crypto/sha512" | |
"database/sql" | |
"fmt" | |
_ "github.com/Go-SQL-Driver/MySQL" | |
"os" |
c := make(chan os.Signal, 1) | |
signal.Notify(c) | |
go func() { | |
for sig := range c { | |
switch sig { | |
case syscall.SIGHUP: | |
fmt.Println("Reloading config") | |
if err := parseConfig(); err != nil { | |
fmt.Println("Error parsing config") | |
fmt.Println(err) |
#!/bin/bash | |
### BEGIN INIT INFO | |
# cjdns.sh - An init script (/etc/init.d/) for cjdns | |
# Provides: cjdns | |
# Required-Start: $remote_fs $network | |
# Required-Stop: $remote_fs $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Cjdns router | |
# Description: A routing engine designed for security, scalability, speed and ease of use. |
#!/bin/bash | |
# | |
# Version 1.4 | |
# | |
# twrp.sh -- a TWRP compatible backup script for your computer | |
# Brought to you by inhies | |
# | |
# This script creates TWRP compatible backups over usb using adb and magikz | |
# By default it makes a folder in the standard TWRP date--time format (I think) | |
# To restore these backups, place the folder in /sdcard/TWRP/BACKUPS/<serialnumber>/ |
#!/bin/sh -e | |
### BEGIN INIT INFO | |
# hyperboria.sh - An init script (/etc/init.d/) for cjdns | |
# Provides: cjdroute | |
# Required-Start: $remote_fs $network | |
# Required-Stop: $remote_fs $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Cjdns router | |
# Description: A routing engine designed for security, scalability, speed and ease of use. |
reload|restart|force-reload) | |
stop | |
until check; do :; done | |
start | |
exit 0 | |
;; |