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
::: [svlchi6pesm03.peak6.net][0zQiOjCySx2lc2CjKKAuxQ][svlchi6pesm03][inet[/10.2.4.180:9300]]{data=false, box_type=mgmt, master=true} | |
Hot threads at 2016-01-06T21:11:49.519Z, interval=500ms, busiestThreads=3, ignoreIdleThreads=true: | |
0.0% (126.3micros out of 500ms) cpu usage by thread 'elasticsearch[svlchi6pesm03.peak6.net][transport_client_timer][T#1]{Hashed wheel timer #1}' | |
10/10 snapshots sharing following 5 elements | |
java.lang.Thread.sleep(Native Method) | |
org.elasticsearch.common.netty.util.HashedWheelTimer$Worker.waitForNextTick(HashedWheelTimer.java:445) | |
org.elasticsearch.common.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:364) | |
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) | |
java.lang.Thread.run(Thread.java:745) |
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
{ | |
"_index": "stats-2015.11.09", | |
"_type": "Feedster", | |
"_id": "AVDrFpcuL69rrYzM59Sx", | |
"_score": 1, | |
"_source": { | |
"@timestamp": "2015-11-09T07:12:16.011Z", | |
"line": "ABC_000", | |
"host": "somehost01", | |
"type": "Feedster", |
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
time curl "localhost:9200/stats-2016.01.05/_search?pretty" -d '{ | |
"query": { | |
"filtered": { | |
"query": { | |
"query_string": { | |
"analyze_wildcard": false, | |
"query": "_type:nextgen-stats", | |
"lowercase_expanded_terms": false | |
} | |
}, |
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
deis config:list | |
=== rustic-gatepost Config | |
batchfire.queue.connections 2 | |
batchfire.queue.hosts localhost | |
batchfire.queue.port 6379 | |
batchfire.queue.timeout.connect 3000 | |
batchfire.queue.type redis | |
cacheinvalidation.queue.connections 3 | |
cacheinvalidation.queue.host localhost | |
cacheinvalidation.queue.port 6379 |
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 BrightTag, Inc. All rights reserved. | |
package com.brighttag.storm.utils; | |
import backtype.storm.tuple.Values; | |
import storm.trident.operation.BaseFunction; | |
import storm.trident.operation.TridentCollector; | |
import storm.trident.tuple.TridentTuple; | |
/** | |
* Converts the first tuple from a byte array into a string. |
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 BrightTag, Inc. All rights reserved. | |
package com.brighttag.storm.utils; | |
import static com.google.common.base.Preconditions.checkArgument; | |
/** | |
* Computes the parallelism for a particular topology and machine configuration. | |
* | |
* @author codyaray | |
* @since 4/21/2014 |
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
List<StateFactory> factories = Lists.newArrayListWithCapacity(mongoHosts.size()); | |
for (String host : mongoHosts) { | |
factories.add(MongoStateFactory.opaque(host, mongoDatabase)); | |
} | |
StateFactory stateFactory = new RandomShardState.Factory(factories); |
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 BrightTag, Inc. All rights reserved. | |
package com.brighttag.storm.utils; | |
import backtype.storm.tuple.Values; | |
import storm.trident.operation.BaseFunction; | |
import storm.trident.operation.TridentCollector; | |
import storm.trident.tuple.TridentTuple; | |
/** | |
* Converts the first tuple from a byte array into a string. |
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
PATH=$PATH:/usr/bin/:/usr/local/bin/:$HOME/bin | |
curl -s "https://api.twitter.com/1.1/users/show.json?screen_name=Cheesies_Truck" \ | |
-H "Authorization: Bearer <token>" \ | |
| jq ".followers_count" \ | |
| xargs -I {} growlnotify -t "Cheesies Count is {}" |
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
package com.mycompany.ssl; | |
import java.net.Socket; | |
import java.security.Principal; | |
import java.security.PrivateKey; | |
import java.security.cert.X509Certificate; | |
import java.util.List; | |
import javax.annotation.Nullable; | |
import javax.net.ssl.X509KeyManager; |