Skip to content

Instantly share code, notes, and snippets.

View InputNeuron's full-sized avatar

Kevin Burton InputNeuron

View GitHub Profile
curl -XPOST 'http://interpress.elasticsearch.datastreamer.io/content_*/_search?pretty=true' \
-H "X-vendor: interpress" \
-H "X-vendor-auth: iuDi8ukXufn7cWf6ajhnUxlvhRU" \
-d '{
"size": 1,
"query": {
"query_string" : {
"query" : "main:Obama"
}
}
curl -XGET 'http://barcelonagse.elasticsearch.datastreamer.io/content*/_search' --header "X-vendor: barcelonagse" --header "X-vendor-auth: zC5mAqzbZSPva_7Rekb2LsG01vw" -d '{ "size": 1, "query": { "query_string" : { "query" : "main:Obama" } } } '
name link followers frontier employees hits
---- ---- --------- -------- --------- ----
1. Salesforce Radian6 https://www.crunchbase.com/organization/radian6 46 false 1000 11
2. muFusion Social (Mu Sigma) https://www.crunchbase.com/organization/webfluenz 10 false 1000 10
3. Brandwatch https://www.crunchbase.com/organization/brandwatch 83 false 251 7
4. Sysomos https://www.crunchbase.com/organization/sysomos 33 false -1 7
5. Talkwalker https://www.crunchbase.com/organization/talkwalker 11 false 101
name link followers frontier hits
---- ---- --------- -------- ----
1. Brandwatch https://www.crunchbase.com/organization/brandwatch 83 false 7
2. Talkwalker https://www.crunchbase.com/organization/talkwalker 11 false 7
3. Salesforce Radian6 https://www.crunchbase.com/organization/radian6 46 true 6
4. Sysomos https://www.crunchbase.com/organization/sysomos 33 false 6
5. muFusion Social (Mu Sigma) https://www.crunchbase.com/organization/webfluenz 10 false 6
6. Digimind https://www.crunchbase.com/orga
var remaining = 0;
for(var i = 0; i < lessons_left.length; ++i) {
var current = lessons_left[i];
var text = current.textContent;
var idx = text.indexOf("/");
if (idx > 0) {
remaining += parseInt(text.substr(idx + 1))
}
http://1045theteam.com/jason-day-out-of-rio-olympics/
http://1045theteam.com/pat-summit-passes-away-at-64/
http://1045theteam.com/usa-announces-mens-basketball-roster/
http://247sports.com/Bolt/Agent-Only-way-Durant-leaves-Thunder-is-for-Heat-or-Warriors-45987535
http://247sports.com/Bolt/Kevin-Durant-not-expected-to-meet-with-Lakers-or-Wizards-45984145
http://247sports.com/Bolt/Report-Teams-trying-to-sign-Kevin-Durant-for-2017-not-2016-46000555
http://247sports.com/Bolt/Rockets-will-pursue-Durant-and-other-big-names-in-free-agency-46010526
http://247sports.com/Bolt/Tim-Duncan-will-be-present-at-Spurs-meeting-with-Kevin-Durant-45972170
http://247sports.com/Bolt/Warriors-believe-Durant-odds-increased-due-to-Finals-loss-45971904
http://247sports.com/Bolt/Wojnarowski-Warriors-have-Durants-attention-45977902
ResponseDescriptor responseDescriptor
= new ResponseDescriptor.Builder()
.withStatus(301)
.withHeader("Location", "http://httpbin.org/cookies/set?cat=dog")
.build();
String url = String.format( "http://localhost.localdomain:%s/evaluate?response=%s", webserverPort.getPort(), responseDescriptor.toParam() );
HttpRequest httpRequest
String brokerURL = String.format( "tcp://%s:%s?jms.prefetchPolicy.all=1", TestWithEmbeddedBroker.BROKER_HOST, TestWithEmbeddedBroker.BROKER_PORT );
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory( brokerURL );
Connection connection = connectionFactory.createConnection();
connection.start();
Session session = connection.createSession( true, Session.SESSION_TRANSACTED );
Queue dest = session.createQueue( queueName );
java.lang.NullPointerException
at org.eclipse.jetty.client.HttpClient.send(HttpClient.java:536)
at org.eclipse.jetty.client.HttpRequest.send(HttpRequest.java:694)
at org.eclipse.jetty.client.HttpRequest.send(HttpRequest.java:678)
at org.eclipse.jetty.proxy.AbstractProxyServlet.sendProxyRequest(AbstractProxyServlet.java:539)
at org.eclipse.jetty.proxy.AsyncMiddleManServlet.service(AsyncMiddleManServlet.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:821)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1685)
at com.spinn3r.artemis.frontend.filters.AccountingRequestFilter.doFilter(AccountingRequestFilter.java:83)
{
"bucket" : 1459618800097,
"sequence" : 1459618891000015420,
"sequence_range" : 9297,
"hashcode" : "cry8h2SbQBlpllWRnDo1NBwgBJE",
"resource" : "http://politico.com/playbook/2016/04/bernie-gets-under-hillarys-skin-manafot-rising-trumps-new-guru-builds-empire-including-veterans-of-gops-last-contested-convention-bdays-brent-colburn-meridith-webster-213545",
"date_found" : "2016-04-02T17:41:31Z",
"index_method" : "PERMALINK_TASK",
"detection_method" : "SOURCE",
"version" : "5.1.684",