- All Channels have a one to one mapping with the entry in the credentialStore.
- The refreshing process is managed by the GoogleAuthorizationFlow api client.
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
| { | |
| "home": null, | |
| "local_dir": null, | |
| "buffer_size": 65536, | |
| "kryo": { | |
| "buffer_size_mb": 10, | |
| "registrator": null | |
| }, | |
| "parallelism": null, | |
| "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
| function Average(left, right) { | |
| var result = new Array(); | |
| if (left instanceof Array && right instanceof Array) { | |
| for (var i=0; i<left.length || i<right.length; i++) { | |
| result[i] = Average((i<left.length ? left[i] : 0.0), (i<right.length ? right[i] : 0.0)); | |
| } | |
| } else if (left instanceof Array) { | |
| for (var i=0; i<left.length; i++) { | |
| result[i] = Average(left[i], (i==0 ? right : 0.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 ruby | |
| def check_require(name) | |
| begin | |
| gem name | |
| rescue Gem::LoadError | |
| # not installed | |
| system("gem install #{name}") | |
| Gem.clear_paths | |
| end | |
| require name |
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/sh | |
| GROOVY_VERSION=${$GROOVY_VERSION:-"2.1.6"} | |
| if [ -z "$@" ]; then | |
| echo "No argument specified" | |
| exit 1 | |
| fi | |
| if [ ! -f "$@" ]; then |
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
| { | |
| "percent" : 6.297823041677475, | |
| "bytesDone" : NumberLong("22117130240"), | |
| "files" : { | |
| "done" : 8, | |
| "total" : 166 | |
| }, | |
| "current" : { | |
| "source" : "/var/lib/mongodb_historical11/local_oplog_rs_p15_id__ddfdbfc0_1_19.tokumx", | |
| "dest" : "/backup11/local_oplog_rs_p15_id__ddfdbfc0_1_19.tokumx", |
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 removeDB(n) { | |
| flushConfigs(); | |
| var colls = findChunkedCollections(n); | |
| colls.forEach(function(coll) { | |
| if(!db.getSisterDB(n).getCollection(coll).exists()) { | |
| print("collection did not exist for chunk: " + n + "." + coll) | |
| getPrimaries().forEach(function(p){ | |
| p.getDB(n).createCollection(coll); | |
| }); |
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
| input { | |
| file { | |
| type => "analytics-api" | |
| path => "/var/log/analytics-api/analytics-api.log" | |
| } | |
| file { | |
| type => "mongos" | |
| path => ["/var/log/mongodb/mongos_rolling.log", "/var/log/mongodb/mongos_historical.log", "/var/log/mongodb/mongos_collector.log"] | |
| } | |
| 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
| /* | |
| var context = cubism.context(), | |
| cube = context.cube("https://data.brightcove.com/v1/accounts/8523") | |
| cube.metric("video_view") | |
| */ | |
| cubism_contextPrototype.analytics_api = function(url) { | |
| if (!arguments.length) url = ""; | |
| var source = {}, | |
| context = this; |
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 knife_dl() { | |
| local packages="$@" | |
| cd ~/chef/cookbooks | |
| for c in ${packages}; do | |
| knife cookbook site download ${c}; | |
| tar zxf ${c}*.tar.gz; | |
| rm ${c}-*.tar.gz; | |
| done | |
| } |