Skip to content

Instantly share code, notes, and snippets.

View michaelkeevildown's full-sized avatar

Michael Down michaelkeevildown

View GitHub Profile
@michaelkeevildown
michaelkeevildown / replace.pl
Created September 7, 2016 12:32
Perl Replace One Liner
perl -pi -w -e 's/FROM/TO/g;' *.xml
@michaelkeevildown
michaelkeevildown / keybase.md
Last active September 20, 2016 16:33
Keybase Public Identity

Keybase proof

I hereby claim:

  • I am michaelkeevildown on github.
  • I am mkd (https://keybase.io/mkd) on keybase.
  • I have a public key whose fingerprint is 8A8A 2964 F4C5 4F97 EC17 7D0E 2E5B 95B6 8D3D 6F7B

To claim this, I am signing this object:

@michaelkeevildown
michaelkeevildown / amazon-cloud-drive-upload.md
Created October 3, 2016 12:48
Amazon Cloud Drive Upload

Upload all folders to Amazon Cloud Drive

for i in */; do echo $i; acd_cli upload "$i" /amazon/cloud/drive/path/; done

@michaelkeevildown
michaelkeevildown / test-logstash-config
Created October 19, 2016 12:04
Simple Logstash Test Config
input {
stdin {
}
}
filter {
}
output {
stdout { codec => rubydebug }
@michaelkeevildown
michaelkeevildown / es-v5.x-poc.md
Created October 28, 2016 12:34
Elasticsearch 5.0 POC Template

Elasticsearch v5.x POC Template

PUT _template/poc
{
  "order": 0,
  "template": "poc-*",
  "settings": {
    "index": {
 "number_of_shards": "1",
- 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