Skip to content

Instantly share code, notes, and snippets.

@kranzrm
kranzrm / cidr_tree.py
Created August 31, 2017 19:30
CIDR list dedup and hierarchy tree
#!/usr/bin/python
from netaddr import *
import pprint
import itertools
pp = pprint.PrettyPrinter(indent=4)
def get_cidr_list(filename):
#file must have one cidr per line
#192.168.0.0/16
@kranzrm
kranzrm / .vimrc
Created June 12, 2016 20:51
Vim RC script
set bg=dark
set ts=4
set expandtab
set autoindent
set shiftwidth=4
set softtabstop=4
set showmatch
let python_highlight_all = 1
syntax on
"filetype indent plugin on

Keybase proof

I hereby claim:

  • I am kranzrm on github.
  • I am znark (https://keybase.io/znark) on keybase.
  • I have a public key whose fingerprint is 0F57 C385 95B4 BBEC EE4E A86B 74D4 3F84 E0ED 44DF

To claim this, I am signing this object:

@kranzrm
kranzrm / install_byobu_centos.sh
Last active July 29, 2019 12:55
Install byobu on CentOS (6.x)
#!/bin/bash
yum install wget
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
yum install byobu
byobu-enable
# Default Key Bindings
# F2 -> Create new window