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
| 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 +- |
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
| 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 |
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
| 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' |
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
| 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 |
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
| # 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, |
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
| test |
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
| 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") |
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
| class Bug | |
| undef :=== | |
| end | |
| case 42 | |
| when Bug.new | |
| puts "bang" | |
| end |
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
| class Proxy < BasicObject | |
| def initialize(value) | |
| @value = value | |
| end | |
| end | |
| class Integer | |
| def proxy_me | |
| Proxy.new(self) | |
| end |
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
| /* -*- 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 | |
| * |