Skip to content

Instantly share code, notes, and snippets.

@cphoover
cphoover / gist:6157082
Last active December 20, 2015 15:49
RFC 2616 | HTTP 1.1 | Pertinent to Caching

HTTP 1.1 | Pertinent to Caching

9.1.1 Safe Methods

Implementors should be aware that the software represents the user in their interactions over the Internet, and should be careful to allow the user to be aware of any actions they might take which may have an unexpected significance to themselves or others.

if("undefined" === typeof document.currentScript){
(function(){
/***************************************************************************/
/* document.currentScript polyfill + improvements */
/***************************************************************************/
var scripts = document.getElementsByTagName('script');
document._currentScript = document.currentScript;
// return script object based off of src
var getScriptFromURL = function(url) {
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 100, // Maximum errors before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.
"node" : true,
Query =
GET /products/product/_search
{
"query": {
"match_all" : {}
},
"aggs" : {
"group_by_scode" : {
"terms" : {
"field" : "SCODE"
{
"took": 4,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 6,
GET /products/product/_search
{
"query": {
"match_all" : {}
},
"aggs" : {
"group_by_scode" : {
"terms" : {
"field" : "SCODE"
}
org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: []
input {
tcp {
port => 8000
type => access_log
}
}
filter {
# Kibana is served by a back end server. This controls which port to use.
port: 5601
# The host to bind the server to.
host: "0.0.0.0"
# The Elasticsearch instance to use for all your queries.
elasticsearch_url: "http://10.0.4.4:9200"
# preserve_elasticsearch_host true will send the hostname specified in `elasticsearch`. If you set it to false,
index.js?_b=6004:45725 bootstrap
index.js?_b=6004:45725 es check
index.js?_b=6004:45725 config init
index.js?_b=6004:45620 Error: Uncaught SyntaxError: Unexpected token p (http://184.170.226.245:5601/#/settings/indices/?_g=():1)
at window.onerror (index.js?_b=6004:45829)
(index):1 Uncaught SyntaxError: Unexpected token p
index.js?_b=6004:45584 Uncaught Error: Uncaught SyntaxError: Unexpected token p (http://184.170.226.245:5601/#/settings/indices/?_g=():1)
index.js?_b=6004:45721 complete in 151.86ms