Skip to content

Instantly share code, notes, and snippets.

Andy Smith nsnw

Block or report user

Report or block nsnw

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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
@nsnw
nsnw / gist:4552872
Created Jan 17, 2013
A hideous first-run at some Ruby - using Ohai - to print out IP addresses and MAC addresses for active interfaces.
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]
You can’t perform that action at this time.