Skip to content

Instantly share code, notes, and snippets.

@spiette
spiette / gist:5448827
Created April 24, 2013 01:13
How to disable Esc (so you learn to use <Ctrl>-[ instead.
xmodmap -e "keycode 9=Ooblique"
@spiette
spiette / gist:5280394
Created March 31, 2013 12:01
yaml dump in rspec puppet
$stdout.puts self.catalogue.to_yaml
class { 'apt':
always_autoupdate => true
}
Class['apt::update'] -> Package <| |>
@spiette
spiette / .LESS_TERMCAP
Created July 5, 2012 04:14
less environment variables for colors in man pages
# to be sourced from .profile, .bash_profile or .bashrc
# http://unix.stackexchange.com/questions/119/colors-in-man-pages
export LESS_TERMCAP_mb=$(tput setaf 2) # green
export LESS_TERMCAP_md=$(tput bold; tput setaf 4) # blue
export LESS_TERMCAP_me=$(tput sgr0)
export LESS_TERMCAP_so=$(tput bold; tput setaf 7; tput setab 4) # white on blue
export LESS_TERMCAP_se=$(tput rmso; tput sgr0) # reset previous line
export LESS_TERMCAP_us=$(tput smul; tput bold;) # underlined and bold
export LESS_TERMCAP_ue=$(tput rmul; tput sgr0)
export LESS_TERMCAP_mr=$(tput rev)
@spiette
spiette / vimrc
Last active September 28, 2015 02:58
Simple vimrc
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set smarttab
set wildmenu
set showcmd
set ignorecase
set smartcase