Skip to content

Instantly share code, notes, and snippets.

View michaelkeevildown's full-sized avatar

Michael Down michaelkeevildown

View GitHub Profile
@michaelkeevildown
michaelkeevildown / ml-workshop.md
Last active April 15, 2019 14:18
ML Workshop
We couldn’t find that file to show.
@michaelkeevildown
michaelkeevildown / example1.md
Last active January 14, 2019 17:10
XSLT Example

Input XML:

<root>
    <id>trans-123</id>
    <transactions>
        <transaction>
            <sku>123</sku>
            <price currency="GBP">100<price>
        </transaction>
@michaelkeevildown
michaelkeevildown / fitz.md
Created January 4, 2019 20:34
Robin Hobb Fitz Books in Order

The Farseer Trilogy:

  1. Assassin's Apprentice
  2. Royal Assassin
  3. Assassin's Quest

Followed by the Liveship Traders Trilogy

  1. Ship of Magic
  2. Mad Ship
  3. Ship of Destiny
@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
}
@michaelkeevildown
michaelkeevildown / es-sink-flink.java
Created November 27, 2018 11:24
Flink (v1.6) Elasticsearch (v6.x) Sink -- with auth
## CURRENT
Site Admin - EVERYTHING - Chris
- Marriott
- Admin
- Michael
- Chirs
- Users - Employee
- Dave
- Bob
etc...
@michaelkeevildown
michaelkeevildown / demo.md
Last active April 13, 2017 10:38
Metricbeat Demo
@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 / 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

Installing Squid Proxy

Setting up the docker:

docker run --name squid -d --restart=always \
  --publish 3128:3128 \
  sameersbn/squid:3.3.8-21