tmux cheat sheet
(C-x means ctrl+x, M-x means alt+x)
Prefix key
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
(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
:
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |
<html> | |
<head> | |
<script type="text/javascript" src="./jquery-1.4.3.min.js"></script> | |
<script type="text/javascript"> | |
var baseURL = 'http://en.wiktionary.org'; | |
function showPage(page,text) { | |
var sourceurl = baseURL + '/wiki/' + page; | |
$('#pagetitle').text(page); | |
$('#wikiInfo').html(text); | |
$('#sourceurl').attr('href',sourceurl); |
func makePNGFromView(view: NSView) { | |
var rep = view.bitmapImageRepForCachingDisplayInRect(view.bounds)! | |
view.cacheDisplayInRect(view.bounds, toBitmapImageRep: rep) | |
if let data = rep.representationUsingType(NSBitmapImageFileType.NSPNGFileType, properties: [:]) { | |
data.writeToFile("/xxx/image.png", atomically: false) | |
} | |
} |
#!/usr/bin/env ruby | |
# | |
# This script is an astonishing feat of top notch | |
# rockstar craftsmanship. It totally uses artificial | |
# intelligence to extract colors out of tmTheme and | |
# build an itermcolors scheme file for iTerm2. | |
# | |
# I know this sounds crazy, but it actually knows | |
# approximately what colors should be used in the | |
# ANSI list, and tries to find nearest colors from |