Skip to content

Instantly share code, notes, and snippets.

y tho

Andy Smith nsnw

y tho
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
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

Keybase proof

I hereby claim:

  • I am ve7cxz on github.
  • I am 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 <>
# 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
#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
#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 / 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 =
interfaces = o[:network][:interfaces]
info =
interfaces.keys.each do |interface|
if interfaces[interface][:state] == "up" && interfaces[interface][:encapsulation] == "Ethernet"
info[interface] =
addresses = interfaces[interface][:addresses]
You can’t perform that action at this time.