Skip to content

Instantly share code, notes, and snippets.

View davidwinter's full-sized avatar

David Winter davidwinter

View GitHub Profile

Keybase proof

I hereby claim:

  • I am davidwinter on github.
  • I am winterdj (https://keybase.io/winterdj) on keybase.
  • I have a public key whose fingerprint is A796 D44E 9BFC 6A9A 1C0F CF4A 1E3A 043E C842 4634

To claim this, I am signing this object:

@davidwinter
davidwinter / Vagrantfile
Last active August 29, 2015 14:06
Speed up DNS lookups for Vagrant
config.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
vb.customize ['modifyvm', :id, '--natdnsproxy1', 'on']
end

:17 To jump to a specific line, 17 in this example.

G Go to the end of the file.

^ Jump to the first non-blank character of a line.

$ Jump to the end of the line (think regex).

:se nu! Will turn line numbers on and off. Good for when you need to copy some text with the good 'ole mouse.

@davidwinter
davidwinter / .vimrc
Created August 28, 2013 10:03
My attempt at a simple `.vimrc` file with the aim to have sensible defaults.
" Disable vi compatibility so we can use cool vim stuff:
set nocompatible
" Line numbers (left hand side) and position (bottom right):
set ruler
set number
" Highlight current line:
set cul
@davidwinter
davidwinter / config.fish
Created July 22, 2013 13:28
Fish config example, goes in `.config/fish/config.fish`
set PATH "/usr/local/bin" $PATH
set PATH "/usr/local/php5/bin" $PATH
set PATH "$HOME/bin" $PATH
set -g -x EDITOR nano
set -g -x fish_greeting ''
function git_prompt
if git root >/dev/null 2>&1
set_color normal