Skip to content

Instantly share code, notes, and snippets.

View kovyrin's full-sized avatar

Oleksiy Kovyrin kovyrin

View GitHub Profile

How to run Enterprise Search with Kibana in ECK

This guide describes the process of configuring Enterprise Search and Kibana running in Elastic Cloud on Kubernetes (ECK) to work together. The final setup uses end-to-end TLS encryption with self-signed certificates managed by ECK.

Prerequisites

Before you begin, you need a few pieces in place:

  • Get a Kubernetes cluster
  • Algoritmms from the Wired story (https://www.youtube.com/watch?v=R-R0KrXvWbc)
    • Step 1: Daisy
      • Yellow center with white petals
    • Step 2: White Cross
      • Make sure each white petal on the cross is adjacent to two squares of the same color
    • Step 3: Solve the Bottom Layer
      • Pick white corner pieces and move them down by executing a trigger move on the color of the adjacent face
      • If there is a white corner at the top
        • Position it on top of the right place and turn the cube to have the white corner on the right close to the front
  • Execute right trigger twice
#!/usr/bin/env ruby
require 'manticore'
require 'webmock'
WebMock.disable_net_connect!(allow: 'example.org')
WebMock.enable!
client = Manticore::Client.new
#!/usr/bin/env ruby
require 'softlayer_api'
require 'pp'
require 'pry'
# Credentials to the API are read from a configuration file by default.
# See https://github.com/softlayer/softlayer-ruby/blob/master/lib/softlayer/Config.rb#L11-L44
client = SoftLayer::Client.new(timeout: 120)
pool_id = 193291
require 'formula'
class V8 < Formula
homepage 'http://code.google.com/p/v8/'
# Use the official github mirror, it is easier to find tags there
url 'https://github.com/v8/v8/archive/3.16.14.tar.gz'
sha1 'd33c47b9a0179527966ac3edbfcd40113653eab6'
head 'https://github.com/v8/v8.git'
<img src=x onerror=alert(document.cookie)>
George Bush, Queen Elizabeth, and Vladimir Putin all die and go to hell. While there, they spy a red phone and ask what the phone is for. The devil tells them it is for calling back to Earth.
Putin asks to call Russia and talks for 5 minutes. When he is finished the devil informs him that the cost is a million rubles, so Putin writes him a check.
Next Queen Elizabeth calls England and talks for 30 minutes. When she is finished the devil informs her that the cost is 6 million pounds, so she writes him a check.
Finally George Bush gets his turn and talks for 4 hours. When he is finished the devil informs him that the cost is $5.00.
When Putin hears this he goes ballistic and asks the devil why Bush got to call the USA so cheaply.
The devil smiles and replies: "Since Obama took over, the country has gone to hell, so it's a local call."
#!/usr/bin/perl
use strict;
use warnings;
our $VERSION = '0.03';
use File::Find qw(find);
use Getopt::Long;
use YAML;
@kovyrin
kovyrin / ruby-1.8.7-hash-randomize.patch
Created December 29, 2011 18:51
Ruby EE 2011.03 Hash Collision Fix
From 4f69a748ab820c6a8bd204f94d13d970847f575c Mon Sep 17 00:00:00 2001
From: RPM Builder <rpmbuild@livingsocial.com>
Date: Thu, 29 Dec 2011 19:48:52 +0000
Subject: [PATCH] Backport randomized hash patch from upstream
---
source/inits.c | 4 ++
source/random.c | 74 ++++++++++++++++++++++++++++++---------
source/st.c | 14 +++++++-
source/string.c | 7 +++-
@kovyrin
kovyrin / ticket.rb
Created November 2, 2011 16:07
Flickr-inspired Ticket Server client
class Ticket
class CouldNotRetrieveTicket < StandardError ; end
def self.connections(connections)
@connections = connections
end
def self.set_table_name(table_name)
@table_name = table_name
end