Skip to content

Instantly share code, notes, and snippets.

View knadh's full-sized avatar

Kailash Nadh knadh

View GitHub Profile
@knadh
knadh / voltdb-direct-download.md
Created August 28, 2018 05:17
VoltDB Community Edition direct download
@knadh
knadh / netstat-conn-group.sh
Created September 10, 2017 07:58
Group and list all TCP connections (local address) by port and number of connections
netstat -ntu | awk ' $4 ~ /^[0-9]/ {print $4}' | sort | uniq -c | sort -n
# Rehashed from http://www.commandlinefu.com/commands/view/8767/netstat-with-group-by-ip-adress
@knadh
knadh / zsh-elapsed-time.md
Last active April 20, 2024 06:35
Elapsed and execution time for commands in ZSH

Elapsed and execution time display for commands in ZSH

Append this to your ~/.zshrc file.

function preexec() {
 timer=$(($(date +%s%0N)/1000000))
/*
Kailash Nadh (http://kailashnadh.name)
localStorageDB
September 2011
A simple database layer for localStorage
License : MIT License
*/