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
npm init -y | |
mkdir src | |
touch src/index.js | |
mkdir dist | |
npm install --save-dev react webpack webpack-dev-server react babel-core babel-loader babel-preset-es2015 babel-preset-react babel-preset-stage-2 react-dom | |
cat << EOF > dist/index.html | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<div id="app"></div> |
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
digraph "mongotape" { | |
node [style=filled fillcolor="#f8f8f8"] | |
subgraph cluster_L { L [shape=box fontsize=32 label="File: mongotape\lType: cpu\l34.54s of 69.19s total (49.92%)\lDropped 322 nodes (cum <= 0.35s)\lDropped 63 edges (freq <= 0.07s)\lShowing top 80 nodes out of 192 (cum >= 1.61s)\l"] } | |
N1 [label="runtime.goexit\n0 of 59.74s(86.34%)" fontsize=8 shape=box tooltip="runtime.goexit (59.74s)"] | |
N2 [label="github.com/10gen/mongotape.(*StatCollector).Collect.func1.1\n0.02s(0.029%)\nof 25.68s(37.12%)" fontsize=9 shape=box tooltip="github.com/10gen/mongotape.(*StatCollector).Collect.func1.1 (25.68s)"] | |
N3 [label="github.com/10gen/mongotape.(*TerminalStatRecorder).RecordStat\n0.27s(0.39%)\nof 25.52s(36.88%)" fontsize=11 shape=box tooltip="github.com/10gen/mongotape.(*TerminalStatRecorder).RecordStat (25.52s)"] | |
N4 [label="github.com/10gen/mongotape.NewOpChanFromFile.func1.1\n0.10s(0.14%)\nof 15.93s(23.02%)" fontsize=10 shape=box tooltip="github.com/10gen/mongotape.NewOpChanFromFile.func1.1 (15.93s)"] | |
N5 [label="g |
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
function convertExtJson(o){ | |
// if it's an array, loop over each item | |
if(o.constructor == Array){ | |
out = [] | |
for(var i=0; i<o.length;i++){ | |
out.push(convertExtJson(o[i])) | |
} | |
return out | |
}else if(o.constructor == Object){ | |
// if it's an object, replace each key one by one |
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
function migrateBaselines(from_project, to_project){ | |
var migration_id = new ObjectId() | |
print("using migration id", migration_id) | |
var baselines = db.json.find({project_id:from_project,tag:{$exists:true, $ne:""}}) | |
while(baselines.hasNext()){ | |
var n = baselines.next() | |
delete n._id | |
n.project_id = to_project | |
n.from_migration_id = migration_id | |
db.json.insert(n) |
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
{ | |
"_id": ObjectId("555a3f7c30a17993a8773a3e"), | |
"name": "perf", | |
"task_id": "perf_linux_wt_standalone_query_05e859095d739f6b7a7f0fa8672fced547d96c3f_15_05_18_19_35_23", | |
"build_id": "perf_linux_wt_standalone_05e859095d739f6b7a7f0fa8672fced547d96c3f_15_05_18_19_35_23", | |
"variant": "linux-wt-standalone", | |
"version_id": "perf_05e859095d739f6b7a7f0fa8672fced547d96c3f", | |
"order": 24, | |
"revision": "", | |
"data": { |
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
function randomString(len, charSet) { | |
charSet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; | |
var randomString = ''; | |
for (var i = 0; i < len; i++) { | |
var randomPoz = Math.floor(Math.random() * charSet.length); | |
randomString += charSet.substring(randomPoz,randomPoz+1); | |
} | |
return randomString; | |
} |
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
# -*- coding: utf-8 -*- | |
import random | |
from termcolor import colored | |
hiragana = [ | |
[['a', 'あ'], ['i', 'い'], ['u', 'う'], ['e', 'え'], ['o', 'お']], | |
[['ka', 'か'], ['ki', 'き'], ['ku', 'く'], ['ke', 'け'], ['ko', 'こ']], | |
[['sa', 'さ'], ['shi', 'し'], ['su', 'す'], ['se', 'せ'], ['so', 'そ']], | |
[['ta', 'た'], ['chi', 'ち'], ['tsu', 'つ'], ['te', 'て'], ['to', 'と']], | |
[['na', 'な'], ['ni', 'に'], ['nu', 'ぬ'], ['ne', 'ね'], ['no', 'の']], |
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
[2015/09/24 16:37:02] [S.info] [evergreen-ci/evergreen/loggers.go:53] Agent stack dump taken on Thu Sep 24 16:37:02 EDT 2015. | |
[2015/09/24 16:37:02] [S.info] [evergreen-ci/evergreen/loggers.go:53] Running command 'shell.exec' for task 'mongodb_mongo_master_osx_108_debug_jsCore_compatibility_WT_ae5617b20202aea3bd6cde64a1758f2d17e5b93a_15_09_22_19_14_36'. | |
[2015/09/24 16:37:02] [S.info] [evergreen-ci/evergreen/loggers.go:53] goroutine 22 [running]: | |
[2015/09/24 16:37:02] [S.info] [evergreen-ci/evergreen/loggers.go:53] github.com/evergreen-ci/evergreen/agent.trace(0x0, 0x0, 0x0) | |
[2015/09/24 16:37:02] [S.info] [evergreen-ci/evergreen/loggers.go:53] /data/mci/.gopath/src/github.com/evergreen-ci/evergreen/agent/debug.go:34 +0x86 | |
[2015/09/24 16:37:02] [S.info] [evergreen-ci/evergreen/loggers.go:53] github.com/evergreen-ci/evergreen/agent.DumpStackOnSIGQUIT(0x208912088) | |
[2015/09/24 16:37:02] [S.info] [evergreen-ci/evergreen/loggers.go:53] /data/mci/.gopath/src/github.com/evergreen-ci/evergreen/agent/debug.go:23 +0x14d |
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 argparse | |
import json | |
import sys | |
import itertools | |
def main(args): | |
parser = argparse.ArgumentParser() | |
parser.add_argument("-f", "--file", dest="file", help="path to json file containing history data") | |
parser.add_argument("--rev", dest="rev", help="revision to examine for regressions") | |
args = parser.parse_args() |
This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"name": "perf", | |
"task_name": "query", | |
"project_id": "performance", | |
"task_id": "performance_linux_wt_standalone_query_5fe6c4c3ec75a50c7e3d46a7e503c6fd4562db58_15_06_12_22_21_51", | |
"build_id": "performance_linux_wt_standalone_5fe6c4c3ec75a50c7e3d46a7e503c6fd4562db58_15_06_12_22_21_51", | |
"variant": "linux-wt-standalone", | |
"version_id": "557b5b7f3ff122613600010a_0", | |
"order": 0, |