Skip to content

Instantly share code, notes, and snippets.

View nsnw's full-sized avatar
y tho

Andy Smith nsnw

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

nsnw / .tmux.conf
Created May 1, 2017 20:32
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
nsnw / .tmux.conf
Created January 9, 2014 21:12
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 January 17, 2013 02:03
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]