Skip to content

Instantly share code, notes, and snippets.

View michaelkeevildown's full-sized avatar

Michael Down michaelkeevildown

View GitHub Profile
- How to extend functions in Kibana e.g. currency? Would we need to plugin to do this.

Open issues with the current Hotel53 website.

  • SQL Errors
[Fri Dec 09 17:58:55.023091 2016] [:error] [pid 27539] [client 101.127.112.54:52609] WordPress database error Table 'hotel53_20161205.wp_hotel_booking_order_items' doesn't exist for query SELECT order_item_id FROM wp_hotel_booking_order_items WHERE `order_item_id` IS NOT NULL made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, apply_filters_ref_array, WP_Hook->apply_filters, call_user_func_array, HB_Post_Types->posts_join_paged, referer: http://www.hotel53.com/
[Fri Dec 09 17:58:58.497043 2016] [:error] [pid 27653] [client 101.127.112.54:52617] WordPress database error Table 'hotel53_20161205.wp_hotel_booking_order_items' doesn't exist for query SELECT order_item_id FROM wp_hotel_booking_order_items WHERE `order_item_id` IS NOT NULL made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, apply_filters_ref_array, WP_Hook->apply_filte

Installing Squid Proxy

Setting up the docker:

docker run --name squid -d --restart=always \
  --publish 3128:3128 \
  sameersbn/squid:3.3.8-21
@michaelkeevildown
michaelkeevildown / timestamp.md
Created January 12, 2017 12:03
XBOX API - Timestamp Issue

Issues with timestamp parsing with python:

Most of your timestamps come out as such:

YYYY-mm-DDTHH:MM:SS.%fZ 2017-01-09T20:44:16.241201Z

However I have just see this: 2017-01-08T15:02:41.1218785Z

@michaelkeevildown
michaelkeevildown / watcher-base.json
Last active February 14, 2017 10:04
Watcher - v2.3 - Example
{
"trigger": {
"schedule": {
"interval": "1m"
}
},
"input": {
"search": {
"request": {
"indices": "##INDEX##",
@michaelkeevildown
michaelkeevildown / demo.md
Last active April 13, 2017 10:38
Metricbeat Demo
## CURRENT
Site Admin - EVERYTHING - Chris
- Marriott
- Admin
- Michael
- Chirs
- Users - Employee
- Dave
- Bob
etc...
@michaelkeevildown
michaelkeevildown / es-sink-flink.java
Created November 27, 2018 11:24
Flink (v1.6) Elasticsearch (v6.x) Sink -- with auth
@michaelkeevildown
michaelkeevildown / 1-raw-data.md
Created December 5, 2018 15:32
Kibana Vega - Percentage of X in a whole index

Raw Data

The below can be copied and pasted straight into Kibana Dev Tools:

POST percentage/_doc
{
  "stage": 1
}