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
curl -s -L https://gist.githubusercontent.com/jasonmimick/3d3eeabebd912e0218374472935433b1/raw/834ae38de4f614cf171bd6cd0e6ce877f8e10954/netperf | bash 1>netperf.log 2>&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
#!/bin/bash | |
curl -OL https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-3.2.9.tgz | |
tar xvf mongodb-linux-x86_64-rhel70-3.2.9.tgz | |
echo "{ nThreads:1024, fileSizeMB:1000, mmf:false, r:true, w:true, syncDelay:60 }" > netperf.conf | |
mongodb-linux-x86_64-rhel70-3.2.9/bin/mongoperf < ./netperf.conf >> netperf.log & | |
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
rs:PRIMARY> db.device_suffixes.find({"suffixes":/^ISCO/}).count() | |
39303 | |
rs:PRIMARY> db.device_suffixes.find({"suffixes":/^ISCO/}).explain(1).executionStats.executionTimeMillis | |
52 | |
rs:PRIMARY> db.Device_Terms.find({"term":/.*isco.*/i}) | |
{ "_id" : 67903, "term" : "cisco" } | |
{ "_id" : 67902, "term" : "cisco3650-48pd-e" } | |
{ "_id" : 67901, "term" : "cisco7604" } |
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
using System; | |
using System.Collections.Generic; | |
using MongoDB.Bson; | |
using MongoDB.Driver; | |
using System.Security.Cryptography.X509Certificates; | |
using System.Security.Authentication; | |
using System.Net.Security; | |
namespace HelloMongoCSharp | |
{ |
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
file D:\Dev\software\mongodb\mongo-cxx-driver-legacy-1.1.2\SConstruct,line 957: | |
Configure(confdir = build\scons\sconf_temp) | |
scons: Configure: Checking whether the C++ compiler works... | |
scons: Configure: "build\scons\sconf_temp\conftest_0.cpp" is up to date. | |
scons: Configure: The original builder output was: | |
|build\scons\sconf_temp\conftest_0.cpp <- | |
| | | |
| |int main() | |
| |{ | |
| | return 0; |
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
D:\Dev\software\mongodb\mongo-cxx-driver-legacy-1.1.2>scons --64 --msvc-version= | |
12.0 --cpppath="D:\Dev\software\boost_1_48_0 D:\Dev\software\mongodb\OpenSSL-Win | |
64\include" --libpath="D:\Dev\software\boost_1_48_0\stage\lib D:\Dev\software\mo | |
ngodb\OpenSSL-Win64\lib" --dynamic-windows --dynamic-boost=on --sharedclient --s | |
sl |
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
file D:\Dev\software\mongodb\mongo-cxx-driver-legacy-1.1.2\SConstruct,line 957: | |
Configure(confdir = build\scons\sconf_temp) | |
scons: Configure: Checking whether the C++ compiler works... | |
scons: Configure: "build\scons\sconf_temp\conftest_0.cpp" is up to date. | |
scons: Configure: The original builder output was: | |
|build\scons\sconf_temp\conftest_0.cpp <- | |
| | | |
| |int main() | |
| |{ | |
| | return 0; |
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 | |
# optailer.py - manage db local copies of oplog data | |
import sys,time,os | |
import signal | |
import argparse | |
import pymongo | |
from pymongo import MongoClient, CursorType | |
#from bson import TimeStamp |
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
import sys | |
import pymongo | |
import zlib | |
class color: | |
PURPLE = '\033[95m' | |
CYAN = '\033[96m' | |
DARKCYAN = '\033[36m' | |
BLUE = '\033[94m' | |
GREEN = '\033[92m' |
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
import os | |
import argparse | |
import datetime | |
import pymongo | |
from pymongo import MongoClient, CursorType | |
import uuid | |
import time | |
import json | |
import random | |
import string |