Skip to content

Instantly share code, notes, and snippets.

Klaus Ganser kganser

Block or report user

Report or block kganser

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kganser
kganser / json-table-sortable.css
Created Jul 20, 2016
Sortable json-table styles
View json-table-sortable.css
table {
font-size: 13px;
border-collapse: separate;
border-spacing: 0;
border: 1px solid #777;
position: relative;
}
th {
font-weight: normal;
text-align: left;
@kganser
kganser / memcache_grep
Last active Mar 21, 2016
Grep for a key in memcache
View memcache_grep
#!/bin/bash
host=$1
port=${PORT:-11211}
grepfor=$2
echo -e "stats items\nquit" | nc $host $port | cut -d: -f2 | sort -n | uniq | grep -v END | while read i; do echo -e "stats cachedump $i 100000\nquit" | nc $host $port | grep $grepfor; done
You can’t perform that action at this time.