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
# this returns all of the annotation values, not just the http.url | |
# for more.. https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html | |
curl -s 'localhost:9200/zipkin-*/span/_search' -d'{ | |
"_source": false, | |
"aggs": { | |
"binaryAnnotations": { | |
"nested": { | |
"path": "binaryAnnotations" | |
}, | |
"aggs" : { |
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
echo "Flipping tables! (╯°□°)╯︵ ┻━┻" | |
num_rules=3 | |
real=3 # exposed to the ELB as port 443 | |
test=4 # used to install test certs for domain verification | |
health=5 # used by the ELB healthcheck | |
blue_prefix=855 | |
green_prefix=866 |
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
public class TimedResourceMethodDispatchProvider implements ResourceMethodDispatchProvider { | |
final ResourceMethodDispatchProvider provider; | |
public TimedResourceMethodDispatchProvider(ResourceMethodDispatchProvider provider) { | |
this.provider = provider; | |
} | |
@Override | |
public RequestDispatcher create(AbstractResourceMethod abstractResourceMethod) { | |
RequestDispatcher dispatcher = provider.create(abstractResourceMethod); |
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
# -*- coding: utf-8 -*- | |
""" | |
Solver script for the fifteen-puzzle and derivations of it (8-puzzle etc.), | |
based on what we've learnt on ai-class.com so far. Don't expect it to run very | |
fast, certain puzzle states take ages to solve. I have documented and | |
commented the code thoroughly, so hopefully it's easy to understand what's | |
going on. | |
Written by Håvard Pettersson. Released into the public domain. |
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
:+1: | |
:-1: | |
:airplane: | |
:art: | |
:bear: | |
:beer: | |
:bike: | |
:bomb: | |
:book: | |
:bulb: |