Skip to content

Instantly share code, notes, and snippets.

View kapilreddy's full-sized avatar

Kapil Reddy kapilreddy

View GitHub Profile
@kapilreddy
kapilreddy / gist:1180721
Created August 30, 2011 11:42
generate query string from map
(defn [query-map]
(str "?" (apply str (map name (flatten (interpose :& (map #(interpose "=" %) (seq query-map))))))))
@kapilreddy
kapilreddy / Munin Redis plugin
Created April 15, 2011 14:00
A Munin plugin for Redis
#!/usr/bin/env python
## Copyright (c) 2011, Kapil Reddy
## All rights reserved.
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions are met:
## * Redistributions of source code must retain the above copyright
## notice, this list of conditions and the following disclaimer.
## * Redistributions in binary form must reproduce the above copyright