Skip to content

Instantly share code, notes, and snippets.

View Kami's full-sized avatar
:octocat:
🐕‍🦺 🦮 🇸🇮 🇺🇦 🇹🇼

Tomaz Muraus Kami

:octocat:
🐕‍🦺 🦮 🇸🇮 🇺🇦 🇹🇼
View GitHub Profile
Offset SSTables Write Latency Read Latency Row Size Column Count
1 190 0 0 0 0
2 12 0 0 0 0
3 0 0 0 0 0
4 0 0 0 0 0
5 0 0 0 0 0
6 0 0 0 0 0
7 0 0 0 0 0
8 0 0 0 0 0
10 0 0 0 0 0
GLOB sdist-make: /w/python-driver/setup.py
py26 recreate: /w/python-driver/.tox/py26
py26 installdeps: nose, mock, ccm, unittest2
py26 inst: /w/python-driver/.tox/dist/cassandra-driver-1.0.0-beta2-.zip
py26 runtests: commands[0] | /w/python-driver/.tox/py26/bin/python setup.py build_ext --inplace
running build_ext
py26 runtests: commands[1] | nosetests tests/unit/
.................................................................................
----------------------------------------------------------------------
Ran 81 tests in 0.168s
tox -e py26
GLOB sdist-make: /w/python-driver/setup.py
py26 recreate: /w/python-driver/.tox/py26
py26 installdeps: nose, mock, ccm
py26 inst: /w/python-driver/.tox/dist/cassandra-driver-1.0.0-beta2-.zip
py26 runtests: commands[0] | /w/python-driver/.tox/py26/bin/python setup.py build_ext --inplace
running build_ext
py26 runtests: commands[1] | nosetests tests/unit/
.........EEEE........EE.Exception in thread Thread-1:
Traceback (most recent call last):
@Kami
Kami / cassandra_cfhistograms_to_histogram.py
Last active December 11, 2017 10:34
Turns output of Cassandra nodetool cfhistograms command into pretty graphs (histograms)
#!/usr/bin/env python
# Licensed to Tomaz Muraus under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# Tomaz muraus licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
[global]
username=foo
api_key=bar
verify_ssl=true
auth_url=aurl
[registry]
username=foo1
api_key=bar1
@Kami
Kami / gist:5230779
Last active December 15, 2015 08:29
Rackspace Service Registry EventsFeedPoller Node.js client class example
/**
* En example which uses EventsFeedPoller abstraction to poll the events feed
* and print all of the events to the standard output.
*/
var Client = require('../lib').Client;
var EventsFeedPoller = require('../lib').EventsFeedPoller;
var EVENT_KEYS = [
'service.join',
'service.timeout',
@Kami
Kami / gist:5209442
Created March 20, 2013 23:22
Service Registry - register a service (new way)
var Client = require('service-registry-client').Client;
var client = new Client('myuser', 'myapikey', null);
var heartbeatTimeout = 15, serviceMetadata = {'tags': ['api']};
client.services.create('serviceId', 15, serviceMetadata, function(err, id) {
// Service has been created, start heartbeating.
hb.start();
});
@Kami
Kami / gist:5209441
Created March 20, 2013 23:21
Service Registry - register a service (old way)
var Client = require('service-registry-client').Client;
var client = new Client('myuser', 'myapikey', null);
var heartbeatTimeout = 15, serviceMetadata = {'tags': ['api']};
client.sessions.create(heartbeatTimeout, {}, function(err, seId, data, hb) {
client.services.create(seId, 'serviceId', serviceMetadata, function(err, id) {
// Session and service has been created, start heartbeating.
hb.start();
@Kami
Kami / gist:5146027
Last active December 14, 2015 20:48
Vagrant.configure("2") do |config|
config.vm.box = "dummy"
config.ssh.private_key_path = "/home/myuser/.ssh/id_rsa_my_private_key"
config.vm.provider :rackspace do |rs|
rs.username = "YOUR USERNAME"
rs.api_key = "YOUR API KEY"
rs.flavor = /512MB/
rs.image = /Ubuntu/
server {
listen 80;
server_name naturalmusclezone.com www.naturalmusclezone.com;
rewrite ^ https://$host$request_uri? permanent;
}
server {
listen 443 ssl;