Skip to content

Instantly share code, notes, and snippets.

Makefile.am | 4 +-
contrib/libvbucket/vbucket.c | 77 +------
example/minimal/minimal.c | 13 +-
include/libcouchbase/arguments.h | 42 ----
include/libcouchbase/cntl.h | 9 +-
include/libcouchbase/types.h | 5 -
include/libvbucket/vbucket.h | 17 --
src/arithmetic.c | 6 +-
src/bconf_io.c | 430 +++++++++++++++++++++++++++++++++++++++
src/bconf_parse.c | 6 +-
START [libev] './tests/unit-tests'
[==========] Running 113 tests from 24 test cases.
[----------] Global test environment set-up.
Detected cluster version 2
Using the following servers:
[127.0.0.1:8091]
[----------] 3 tests from Base64
[ RUN ] Base64.testRFC4648
[ OK ] Base64.testRFC4648 (0 ms)
[ RUN ] Base64.testWikipediaExample
require 'rake/build'
search_libraries('pow', 'm')
check_headers('fcntl.h', 'dlfcn.h')
unless have_header('stdint.h')
fail("failed to locate stdint.h")
end
CFLAGS = '-O0 -ggdb3'
@avsej
avsej / Rakefile
Last active December 29, 2015 10:09
require 'rbconfig'
def ENV.windows?
!!(RbConfig::CONFIG['host_os'] =~ /mingw|win/i)
end
CC = ENV.fetch('CC') do
ENV.windows? ? 'cl.exe' : 'cc'
end
LD = ENV.fetch('LD') do
# Makefile.in generated by automake 1.13.4 from Makefile.am.
# Makefile. Generated from Makefile.in by configure.
# Copyright (C) 1994-2013 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
test
@avsej
avsej / gist:7562041
Last active December 28, 2015 21:08
require 'mongo'
require 'json'
include Mongo
# arr[4] host name from array
## Connect to mongo DB
db = MongoClient.new("10.12.210.216", 27017).db("haproxy")
coll = db.collection("logs")
@avsej
avsej / bug3.rb
Created November 19, 2013 12:42
class Bug
undef :===
end
case 42
when Bug.new
puts "bang"
end
class Proxy < BasicObject
def initialize(value)
@value = value
end
end
class Integer
def proxy_me
Proxy.new(self)
end
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2013 Couchbase, Inc.
*
* Licensed 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
*