Skip to content

Instantly share code, notes, and snippets.

View webframp's full-sized avatar

Sean Escriva webframp

View GitHub Profile
@webframp
webframp / gist:4973735
Created February 17, 2013 21:59
OS X tmux bindings for copy/paste/gist
bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
bind C-v run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
bind C-g run-shell 'tmux save-buffer - | reattach-to-user-namespace gist'
bind C-p run-shell 'tmux save-buffer - | reattach-to-user-namespace gist -p'
chef > node.default[:someattrib] = "a new value"
=> "a new value"
chef > node[:someattrib]
=> "a new value"
chef > node.default[:someattrib] = nil
=> nil
chef > node[:someattrib]
=> nil
chef > node.default[:someattrib] = "a new value"
=> "a new value"
chef > node[:someattrib]
=> "a new value"
chef > node.override[:someattrib] = nil
=> nil
chef > node[:someattrib]
=> "a new value"
[2013-02-21T22:49:28+00:00] INFO: Omnibus remote file location: http://opscode-omnitruck-release.s3.amazonaws.com/ubuntu/11.04/x86_64/chef_10.24.0-1.ubuntu.11.04_amd64.deb
[2013-02-21T22:49:28+00:00] DEBUG: Platform ubuntu not found, using all defaults. (Unsupported platform?)
[2013-02-21T22:49:28+00:00] DEBUG: Platform ubuntu not found, using all defaults. (Unsupported platform?)
[2013-02-21T22:49:28+00:00] DEBUG: Platform ubuntu not found, using all defaults. (Unsupported platform?)
[2013-02-21T22:49:28+00:00] DEBUG: Loading Recipe omnibus_updater::old_package_cleaner via include_recipe
[2013-02-21T22:49:28+00:00] DEBUG: Found recipe old_package_cleaner in cookbook omnibus_updater
[2013-02-21T22:49:28+00:00] DEBUG: Converging node adserver-164152
[2013-02-21T22:49:28+00:00] DEBUG: Processing remote_file [chef omnibus_package [chef_10.24.0-1.ubuntu.11.04_amd64.deb]] on adserver-164152
[2013-02-21T22:49:28+00:00] INFO: Processing remote_file [chef omnibus_package [chef_10.24.0-1.ubuntu.11.04_amd64.deb]] actio
[2013-02-21T22:49:28+00:00] INFO: Omnibus remote file location: http://opscode-omnitruck-release.s3.amazonaws.com/ubuntu/11.04/x86_64/chef_10.24.0-1.ubuntu.11.04_amd64.deb
[2013-02-21T22:49:28+00:00] DEBUG: Platform ubuntu not found, using all defaults. (Unsupported platform?)
[2013-02-21T22:49:28+00:00] DEBUG: Platform ubuntu not found, using all defaults. (Unsupported platform?)
[2013-02-21T22:49:28+00:00] DEBUG: Platform ubuntu not found, using all defaults. (Unsupported platform?)
[2013-02-21T22:49:28+00:00] DEBUG: Loading Recipe omnibus_updater::old_package_cleaner via include_recipe
[2013-02-21T22:49:28+00:00] DEBUG: Found recipe old_package_cleaner in cookbook omnibus_updater
[2013-02-21T22:49:28+00:00] DEBUG: Converging node adserver-164152
[2013-02-21T22:49:28+00:00] DEBUG: Processing remote_file [chef omnibus_package [chef_10.24.0-1.ubuntu.11.04_amd64.deb]] on adserver-164152
[2013-02-21T22:49:28+00:00] INFO: Processing remote_file [chef omnibus_package [chef_10.24.0-1.ubuntu.11.04_amd64.deb]] actio
Sample Role:
name "packages"
description "package role"
run_list [
"recipe[package_installer]"
]
override_attributes(
sme 75578 0.0 0.7 793256 27744 ?? S 4:13PM 0:00.40 /Applications/Google Chrome.app/Contents/Versions/25.0.1364.152/Google Chrome Helper.app/Contents/MacOS/Google Chrome Helper --type=renderer --lang=en-US --force-fieldtrials=ForceCompositingMode/disable/InfiniteCache/No/OmniboxHQPReplaceHUPRearrangeNumComponents/Standard/OmniboxHUPCreateShorterMatch/Standard/OmniboxHUPCullRedirects/Standard/OmniboxSearchSuggestTrialStarted2013Q1/1/OneClickSignIn/Standard/Prerender/PrerenderEnabled/PrerenderLocalPredictor/Disabled/SpdyCwnd/cwnd16/Test0PercentDefault/group_01/UMA-Dynamic-Binary-Uniformity-Trial/default/UMA-Session-Randomized-Uniformity-Trial-5-Percent/group_12/UMA-Uniformity-Trial-1-Percent/group_23/UMA-Uniformity-Trial-10-Percent/group_04/UMA-Uniformity-Trial-20-Percent/group_02/UMA-Uniformity-Trial-5-Percent/group_16/UMA-Uniformity-Trial-50-Percent/group_01/ --extension-process --renderer-print-preview --disable-gl-multisampling --disable-accelerated-video-decode --channel=75557.12.1
/private/var/mobile/Applications/52CB193A-72AD-44A0-ADAE-67B2BC920702/Library/Application Support/Google/Chrome
;; Fix for a few unknown keybinds in iTerm2
(define-key input-decode-map "\e[1;2A" [S-up])
(define-key input-decode-map "\e[1;2B" [S-down])
(define-key input-decode-map "\e[1;2C" [S-right])
(define-key input-decode-map "\e[1;2D" [S-left])
(define-key input-decode-map "\e[1;3A" [M-up])
(define-key input-decode-map "\e[1;3B" [M-down])
(define-key input-decode-map "\e[1;3C" [M-right])
(define-key input-decode-map "\e[1;3D" [M-left])
# basic settings
set -g default-terminal "screen-256color"
#set -g default-terminal "xterm-256color"
setw -g xterm-keys on
set -g base-index 1
set -s escape-time 0
setw -g mode-mouse off
set -g default-command "reattach-to-user-namespace -l zsh"
# bindings