Skip to content

Instantly share code, notes, and snippets.

View dmarti's full-sized avatar

Don Marti dmarti

View GitHub Profile
/* Does getrusage work? */
#include <stdio.h>
#include <sys/time.h>
#include <sys/resource.h>
int main (int argc, char** argv) {
struct rusage result;
while(1) {
usleep(1);
@dmarti
dmarti / rpms.txt
Created March 31, 2016 00:02
YCSB benchmark RPM list
http://s3.amazonaws.com/downloads.scylladb.com/rpm/centos/7/x86_64/scylla-server-0.17-20160208.b2eb081.el7.centos.x86_64.rpm
http://s3.amazonaws.com/downloads.scylladb.com/rpm/centos/7/x86_64/scylla-server-debuginfo-0.17-20160208.b2eb081.el7.centos.x86_64.rpm
http://s3.amazonaws.com/downloads.scylladb.com/rpm/centos/7/noarch/scylla-jmx-0.17-20160208.02991cf.el7.centos.noarch.rpm
http://s3.amazonaws.com/downloads.scylladb.com/rpm/centos/7/noarch/scylla-tools-0.17-20160208.f50f2f6.el7.centos.noarch.rpm
@dmarti
dmarti / load.py
Last active March 30, 2016 20:33 — forked from aloneldi/config.cfg
Cassandra and Scylla Load Test Script . Using YCSB 0.5 . Usage python nosql_load.py <cassandra,scylla>
import time
import os
import sys
import ConfigParser
import threading
config = ConfigParser.RawConfigParser()
config = ConfigParser.ConfigParser()
configPath=os.getcwd()
config.read(configPath + '/config.cfg')
public class TimeuuidTest extends CQLTester
{
/**
* Migrated from cql_tests.py:TestCQL.timeuuid_test()
*/
@Test
public void testTimeuuid() throws Throwable
{
createTable("CREATE TABLE %s (k int, t timeuuid, PRIMARY KEY(k, t))");
// ==UserScript==
// @name IP2Bonghits
// @include *
// ==/UserScript==
(function() {
var textnodes = document.evaluate("//body//text()[not(ancestor::script) and not(ancestor::style)]", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),
node, text;
for(var i = 0; i < textnodes.snapshotLength; i++) {
node = textnodes.snapshotItem(i);

Keybase proof

I hereby claim:

  • I am dmarti on github.
  • I am dmarti (https://keybase.io/dmarti) on keybase.
  • I have a public key whose fingerprint is CB36 E051 D561 CB4D CD20 B27C B03C BF75 EFF0 8C87

To claim this, I am signing this object:

// NSA seal from https://en.wikipedia.org/wiki/File:National_Security_Agency.svg
// The NSA Seal is a US Government work, in the public
// domain.
// To use this on your own site:
// <script type="text/javascript"
// src="https://gist.github.com/dmarti/7826371/raw/1d79ef59a21096176f46b650864fb14481e31d86/gistfile1.js"></script>
// (Or put up your own copy on another domain, different from the domain of the page)