(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
:
# configuration for osx clipboard support | |
set-option -g default-command "reattach-to-user-namespace -l sh" |
# 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 |
(function(){ | |
var output = ''; | |
for(var i = 0,array = document.querySelectorAll('.hover.filebox')[0].querySelectorAll('li'); i<array.length-1; i++){ | |
if(array[i].querySelector('input').checked && array[i].querySelector('a').href.length > 0 && array[i].querySelector('a').href.match('-----') === null){ | |
output += array[i].querySelector('a').href + '\n'; | |
} | |
} | |
alert(output); | |
})(); |
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
require 'formula' | |
class TmuxForIterm2 < Formula | |
url 'http://iterm2.googlecode.com/files/iTerm2-1_0_0_20120726.zip' | |
md5 '596c8ff70a836f67ee3197bb60cf92b3' | |
homepage 'http://code.google.com/p/iterm2/wiki/TmuxIntegration' | |
depends_on 'libevent' | |
def install |
- (BOOL)stringContainsEmoji:(NSString *)string { | |
__block BOOL returnValue = NO; | |
[string enumerateSubstringsInRange:NSMakeRange(0, [string length]) options:NSStringEnumerationByComposedCharacterSequences usingBlock: | |
^(NSString *substring, NSRange substringRange, NSRange enclosingRange, BOOL *stop) { | |
const unichar hs = [substring characterAtIndex:0]; | |
// surrogate pair | |
if (0xd800 <= hs && hs <= 0xdbff) { | |
if (substring.length > 1) { | |
const unichar ls = [substring characterAtIndex:1]; |
#if (__cplusplus && __cplusplus >= 201103L && (__has_extension(cxx_strong_enums) || __has_feature(objc_fixed_enum))) || (!__cplusplus && __has_feature(objc_fixed_enum)) | |
#define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type | |
#if (__cplusplus) | |
#define NS_OPTIONS(_type, _name) _type _name; enum : _type | |
#else | |
#define NS_OPTIONS(_type, _name) enum _name : _type _name; enum _name : _type | |
#endif | |
#else | |
#define NS_ENUM(_type, _name) _type _name; enum | |
#define NS_OPTIONS(_type, _name) _type _name; enum |
data:text/html, | |
<style type="text/css"> | |
#e { | |
position:absolute; | |
top:0; | |
right:0; | |
bottom:0; | |
left:0; | |
font-size:16px; | |
} |
#!/bin/bash | |
set -e | |
SESSION_NAME=$1 | |
FILENAME="$HOME/.tmuxinator/${2:-$SESSION_NAME}.yml" | |
WINDOW_NAMES=`tmux list-windows -t $SESSION_NAME -F "#{window_name}"` | |
SESSION_PATH=`tmux list-panes -t $SESSION_NAME -F "#{pane_start_path}"` | |
echo $FILENAME | |
touch "$FILENAME" |