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

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:

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