Instantly share code, notes, and snippets.

View .vimrc
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
set fileencodings=utf-8,latin1
endif
set nocompatible " Use Vim defaults (much better!)
set bs=indent,eol,start " allow backspacing over everything in insert mode
"set ai " always set autoindenting on
"set backup " keep a backup file
set viminfo='20,\"50 " read/write a .viminfo file, don't store more
" than 50 lines of registers
View keybase.md

Keybase proof

I hereby claim:

  • I am ve7cxz on github.
  • I am ve7cxz (https://keybase.io/ve7cxz) on keybase.
  • I have a public key ASBzvnUXXfc07OmmidZE-qVpk1_Eor0F08TAk6wmwPLzdAo

To claim this, I am signing this object:

View .tmux.conf
# .tmux.conf - Andy S <andy@nsnw.ca>
# Based on someone else's .tmux.conf, not sure who
# If this was yours please let me know.
# status bar
#set-option -g status-utf8 on
# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf
#set-option -g status-bg colour235 #base02
set-option -g status-bg colour233 #base02
View .tmux.conf
# status bar
set-option -g status-utf8 on
# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf
#set-option -g status-bg colour235 #base02
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default
View gist:4552872
require 'ohai'
o = Ohai::System.new
o.all_plugins
interfaces = o[:network][:interfaces]
info = Hash.new
interfaces.keys.each do |interface|
if interfaces[interface][:state] == "up" && interfaces[interface][:encapsulation] == "Ethernet"
info[interface] = Hash.new
addresses = interfaces[interface][:addresses]