Skip to content

Instantly share code, notes, and snippets.

View dreeve's full-sized avatar

Derek Reeve dreeve

  • Stitch Fix
  • San Francisco, CA
View GitHub Profile
@dreeve
dreeve / .Xdefaults
Created December 21, 2010 15:54
In X11 on OSX, if you're trying to get Meta to work correctly in xterm, add this to ~/.Xdefaults
XTerm*metaSendsEscape: true
XTerm*eightBitInput: false
@dreeve
dreeve / .Xmodmap
Created December 22, 2010 15:16
Xmodmap to help with xmonad and emacs
clear Mod2
clear Mod4
keycode 66 = Meta_L
keycode 63 = Super_L
add Mod2 = Meta_L
add Mod4 = Super_L
@dreeve
dreeve / .gtk-2.0
Created February 1, 2011 13:41
color fix for gtk borders in xmonad
# this goes in your ~/.gtkrc-2.0 file
style "vimfix" {
bg[NORMAL] = "#242424" # this matches my gvim theme 'Normal' bg color.
}
widget "vim-main-window.*GtkForm" style "vimfix"
# taken from a very helpful post here: https://bbs.archlinux.org/viewtopic.php?id=65285
@dreeve
dreeve / vim_install
Created February 4, 2011 18:01
Install gvim on OS X Snow Leopard with ruby support
Install gtk2 via macports
Download vim 7.3, extract, cd into the directory
$ ./configure --enable-rubyinterp --enable-gui=gtk2 --disable-darwin
$ make
This works when running vim/gvim with ruby
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10.3.1]
but not
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
using XQuartz (2.6.0), you have to clear Mod1 in order for the Super and Alt keys to take effect. This configuration requires that "Option keys send Alt_L and Alt_R" checkbox is set in Preferences.
clear Mod1
clear Mod4
clear Mod2
keycode 66 = Alt_L
keycode 63 = Super_L
add Mod2 = Alt_L
add Mod4 = Super_L
unbind C-b
set -g prefix `
set -g status-bg black
set -g status-fg white
set-window-option -g window-status-current-bg cyan
set-window-option -g window-status-current-fg black
set -g status-left '#[fg=cyan](#S) #[default]'
set -g status-right '#[fg=green]#(date "+%d %b %H:%M")#[default]'
setw -g mode-keys vi
@dreeve
dreeve / gist:955232
Created May 4, 2011 13:44
Nice font for gvim
:set guifont=Monaco\ 6
@dreeve
dreeve / keybase.md
Created August 16, 2014 03:21
keybase.md

Keybase proof

I hereby claim:

  • I am dreeve on github.
  • I am dreeve (https://keybase.io/dreeve) on keybase.
  • I have a public key whose fingerprint is F3DB 2968 CFC8 A91F CA82 F6A9 6060 252F 3721 9947

To claim this, I am signing this object:

@dreeve
dreeve / file1.txt
Created September 9, 2014 16:38
Tiger Swallowtails
HEY THIS IS A GIST!!!!!!!!111
@dreeve
dreeve / file1.txt
Created September 9, 2014 16:40
Tiger Swallowtails
HEY THIS IS A GIST!!!!!!!!111