This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl | |
| # This script makes dealing with alternate SSH keys. Rather than | |
| # doing something retarded like mangling your git or ssh settings | |
| # for automated tasks, you can simply use this script.. | |
| # It will create a temporary executable shell script (templated below) | |
| # and delete it when it's done. | |
| # | |
| # It requires the GITREPO_KEYFILE environment variable to be set to the | |
| # path of your ssh private key. | |
| # Otherwise, this script will blindly pass arguments to git(1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * | |
| */ | |
| /** | |
| * Couchbase Datatype Flags | |
| * | |
| * These flags help to disambiguate the format and compression of values. | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class CouchbaseView { | |
| /** | |
| * These constants are view options. They are symbolic names for string | |
| * parameters passed as partm of the query string | |
| */ | |
| const VOPT_STALE = "stale"; | |
| const VOPT_START_DOCID = "startkey_docid"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Create some view options.. | |
| */ | |
| lcb_view_option_t opt_stale; | |
| lcb_view_option_t opt_onerr; | |
| lcb_view_option_t opt_limit; | |
| lcb_view_option_t opt_invalid; | |
| lcb_view_option_t *optlist[] = { | |
| &opt_stale, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <libcouchbase/couchbase.h> | |
| #include "viewrow.h" | |
| #include "viewopts.h" | |
| #include <stdio.h> | |
| #undef NDEBUG | |
| #include <assert.h> | |
| #include <sys/stat.h> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/event.c b/src/event.c | |
| index f474f05..841a1b9 100644 | |
| --- a/src/event.c | |
| +++ b/src/event.c | |
| @@ -295,6 +295,7 @@ void lcb_server_event_handler(lcb_socket_t sock, short which, void *arg) | |
| { | |
| lcb_server_t *c = arg; | |
| (void)sock; | |
| + short which_new = LCB_READ_EVENT; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import gevent | |
| import gevent.monkey; gevent.monkey.patch_all() | |
| from threading import Lock | |
| import sys | |
| from couchbase.libcouchbase import Connection | |
| from couchbase.iops.select import SelectIOPS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import os | |
| import os.path | |
| import sys | |
| import argparse | |
| import urllib2 | |
| import zipfile | |
| import shutil | |
| import glob | |
| import subprocess |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import argparse | |
| import subprocess | |
| import os | |
| import os.path | |
| import multiprocessing | |
| import sys | |
| import shutil | |
| import glob |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var util = require('util'); | |
| var cb = require("./lib/couchbase.js"); | |
| var MAX_CLIENTS = 1; | |
| var MAX_OPERATIONS=10000000; | |
| var MODE_SEQUENTIAL = 1; | |
| var MODE_ | |
| var CurrentOperations = 0; | |
| var key = "keybase"; | |
| var value = "valbase"; |