- Homebrew
Confirmed working with
#!/bin/bash | |
=head1 NAME | |
sphinx - Plugin to monitor various sphinx (searchd) stats | |
=head1 CONFIGURATION | |
No configuration |
johannes.plunien@localhost /tmp$ git clone https://github.com/aurora/Memcached-Munin-Plugin.git | |
Cloning into Memcached-Munin-Plugin... | |
remote: Counting objects: 20, done. | |
remote: Compressing objects: 100% (17/17), done. | |
remote: Total 20 (delta 9), reused 7 (delta 3) | |
Unpacking objects: 100% (20/20), done. | |
johannes.plunien@localhost /tmp$ cd Memcached-Munin-Plugin/ | |
johannes.plunien@localhost /tmp/Memcached-Munin-Plugin[master]$ git co -b mattdeboard-master | |
Switched to a new branch 'mattdeboard-master' | |
johannes.plunien@localhost /tmp/Memcached-Munin-Plugin[mattdeboard-master]$ git pull https://github.com/mattdeboard/Memcached-Munin-Plugin.git |
import logging | |
import riak | |
log = logging.getLogger(__name__) | |
class RiakCounter(object): | |
def __init__(self, bucket, key): | |
self.bucket = bucket | |
self.bucket.set_allow_multiples(True) | |
self.key = key |
{type,collation,sequence, | |
[{el,[{alt,suppress_contractions,'collation/SEQ1',[],1,1,false, | |
undefined}, | |
{alt,special,'collation/SEQ1',[],1,1,false,undefined}, | |
{alt,settings,'collation/SEQ1',[],1,1,false,undefined}, | |
{alt,rules,'collation/SEQ1',[],1,1,false,undefined}, | |
{alt,optimize,'collation/SEQ1',[],1,1,false,undefined}, | |
{alt,base,'collation/SEQ1',[],1,1,false,undefined}, | |
{alt,alias,alias,[],1,1,true,undefined}], | |
1,1,7}], |
-module(pbstream). | |
-export([load/1, keys/0, bucket/0, map/3, pb_link/0, pb_link/2]). | |
-define(QUERY, [{map, {modfun, riak_kv_mapreduce, map_object_value}, <<"filter_notfound">>, true}]). | |
load(HowMany) -> | |
lists:foreach(fun(Index) -> | |
BIndex = list_to_binary(integer_to_list(Index)), | |
RObj = riakc_obj:new(<<"examples">>, <<"key",BIndex/binary>>, <<"Value ",BIndex/binary>>), |
SUMMARY | |
I like to use kcachegrind for doing profiling on my ruby code. Most of my development | |
is done on OSX, and while you can install kcachegrind via macports, it takes forever | |
because it has to build KDE, as well. Much to my surprise, the fine folks who | |
wrote kcachegrind also made a QT version, qcachegrind. I was able to build this on | |
OSX without too much effort, only having to install QT and GraphViz. Yippie! | |
I'm running OSX 10.6.7, with Xcode 4. My default gcc/g++ version is 4.2. I'm sure | |
it will build just fine on earlier versions of Xcode, but I haven't tested it. |
config_files = Dir.glob("#{ENV['HOME']}/Library/Application Support/Viscosity/OpenVPN/*/config.conf") | |
config_files.each do |file| | |
certificate_files = ['ca', 'cert', 'key', 'tls-auth'] | |
config_dir = File.dirname(file) | |
connection_name = nil | |
new_config = [] | |
File.open(file).each do |line| | |
if line.start_with?('#viscosity name') |