ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
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 { | |
redis { | |
host => "127.0.0.1" | |
type => "redis-input" | |
# these settings should match the output of the agent | |
data_type => "list" | |
key => "logstash" | |
# We use json_event here since the sender is a logstash agent | |
message_format => "json_event" | |
} |
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 { | |
tcp { | |
type => "apache" | |
port => 3333 | |
add_field => { "server" => "prod1" } | |
} | |
tcp { | |
type => "apache" | |
port => 3334 | |
add_field => { "server" => "prod2" } |
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
{ | |
"title": "Apache and Tomcat Logs", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "apache !tomcat !static", | |
"alias": "", | |
"color": "#7EB26D", | |
"id": 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
vertx:runMod |
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
// Set up the UIRefreshControl. | |
self.refreshControl = [[UIRefreshControl alloc] init]; | |
[self.refreshControl addTarget:self | |
action:@selector(refreshInvoked:forState:) | |
forControlEvents:UIControlEventValueChanged]; | |
// Create a UITableViewController so we can use a UIRefreshControl. | |
UITableViewController *tvc = [[UITableViewController alloc] initWithStyle:self.tableView.style]; | |
tvc.tableView = self.tableView; | |
tvc.refreshControl = self.refreshControl; |
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
body { | |
font-family: arial; | |
} | |
table { | |
border: 1px solid #ccc; | |
width: 100%; | |
margin:0; | |
padding:0; | |
border-collapse: collapse; |
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
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; |
This Gist assumes you already followed the instructions to install Cassandra, created a keyspace and table, and added some data.
brew install apache-spark