Skip to content

Instantly share code, notes, and snippets.

@soyo42
soyo42 / .Yang_tree_path_dumper
Last active January 10, 2017 14:44
yangTree path dump helper
this is project name keeper
@soyo42
soyo42 / .Odl_rest_scripts
Last active September 25, 2017 09:16
odl-rest scripts
this is project name keeper
@soyo42
soyo42 / refineBz.sh
Last active August 29, 2015 13:58
refine bugzilla xml-dump
#!/bin/bash
if [ -z "$1" ]; then
echo "usage:: $0 <bugId> [<bugId> [<bugId> ...]]"
exit 1
fi
refineRoot="$(dirname "$(readlink -f "$0")")"
tStamp="$(date +'%Y%m%d-%H%M%S')"
@soyo42
soyo42 / .runCbench.config
Last active August 29, 2015 13:57
cbench running and visualizing results
controller='10.0.42.5'
#controller='172.16.4.158'
port='6633'
loops=20
msPerTest='10000'
#msPerTest='3000'
macPerSwitch=1000
startupDelay=100
warmup=1
@soyo42
soyo42 / cmd2left.py
Created January 25, 2014 16:24
chose string from menu, write it into tab on the left side (xterm), hit enter
#!/usr/bin/python
import sys
import exceptions
import time
from autopy import key
if len(sys.argv) != 2:
sys.stderr.write('usage:: {} <file containing commands>\n'.format(sys.argv[0]))
@soyo42
soyo42 / checkCopyRight.sh
Created January 17, 2014 17:31
explore file header - check for copyright string
#!/bin/bash
if [ -z "$1" ]; then
echo "usage:: $0 <project root folder>"
exit 1
fi
cnt=0
while read i; do
@soyo42
soyo42 / analyzeDepVersions.py
Last active January 3, 2016 05:49
ODL - analyze dependency convergence log
#!/usr/bin/python
import sys
import re
if len(sys.argv) != 2:
sys.stderr.write('usage:: {0} <project name>\n'.format(sys.argv[0]))
sys.stderr.write('usage:: + redirect log into std input')
sys.exit(1)