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 'httparty' | |
require 'logger' | |
require 'json' | |
BASE_PATH = '/crowd/rest/usermanagement/' | |
API_VERSION = 1 | |
AUTH_PATH = '/authentication' | |
SESSION_PATH = '/session' | |
USER_PATH = '/user' |
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
### Keybase proof | |
I hereby claim: | |
* I am TylerBrock on github. | |
* I am tyler (https://keybase.io/tyler) on keybase. | |
* I have a public key whose fingerprint is D683 1F3B 3C62 7B38 E5FD 62D2 F10D 2721 439F 26D5 | |
To claim this, I am signing this object: |
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 st = new ShardingTest({ | |
shards:1, | |
mongos:1, | |
other: { | |
rs: true, | |
numReplicas: 2, | |
separateConfig: true | |
} | |
}) |
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
///////////////////////////////////////////////////////////////////// | |
/// find | |
///////////////////////////////////////////////////////////////////// | |
// Coersion from document::view into model::find | |
auto cursor = coll.find(doc_view); | |
// Explicit creation of model::find | |
auto cursor = coll.find(model::find(doc_view).limit(10)); |
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
/* Copyright 2014 10gen 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 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, |
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
Feature: Driver failure recovery | |
In order to ensure the driver remains usable in the face of failures | |
As a driver author | |
I want the driver to recover in the event of failures | |
Scenario: Server is stopped and started | |
Given a cluster in the standalone server configuration | |
When I insert a document | |
Then the insert succeeds | |
When I stop the server |
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
db.test.write(std::vector awesome) |
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
#ifndef LIBFOO_H_INCLUDED | |
#define LIBFOO_H_INCLUDED | |
#pragma once | |
#include "libfoo_export.h" | |
#if defined(__cplusplus) | |
#define LIBFOO_NOEXCEPT noexcept | |
extern "C" { |
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
$ ./configure --enable-man-pages --prefix /home/tbrock/mantest | |
checking for gcc... gcc | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.out | |
checking for suffix of executables... | |
checking whether we are cross compiling... no | |
checking for suffix of object files... o | |
checking whether we are using the GNU C compiler... yes | |
checking whether gcc accepts -g... yes | |
checking for gcc option to accept ISO C89... none needed |
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 "mongo/util/net/ssl_options.h" | |
#include "mongo/client/init.h" | |
int main() { | |
sslGlobalParams.sslMode.store(SSLGlobalParams::SSLMode_requireSSL); | |
// only really need a PEM on the server side | |
mongo::sslGlobalParams.sslPEMKeyFile = "<path/to/keyfile.pem>"; | |
mongo::Status status = mongo::client::initialize(); |