Skip to content

Instantly share code, notes, and snippets.

View ledbettj's full-sized avatar
💤

John Ledbetter ledbettj

💤
View GitHub Profile
bind "\e[1;5D" vi-prev-word
bind "\e[1;5C" vi-next-word
@ledbettj
ledbettj / gist:1793820
Created February 10, 2012 23:00
lsusb logitech solar
Bus 002 Device 012: ID 046d:c52b Logitech, Inc. Unifying Receiver
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 32
idVendor 0x046d Logitech, Inc.
redis-del() {
redis-cli KEYS "$1" | awk '{ print "\"" $1 "\"" } ' | xargs redis-cli "DEL"
}
redis-get() {
redis-cli KEYS "$1" | awk '{ print "\"" $1 "\"" } ' | xargs -n 1 redis-cli "GET"
}