Skip to content

Instantly share code, notes, and snippets.

@LexxFedoroff
LexxFedoroff / gist:587dc4eddf2e2416220a
Created January 26, 2016 07:15
Logstash config for Cassandra logs
input {
file {
path => "/var/log/cassandra/system.log"
#start_position => "beginning"
}
#stdin { }
}
filter {
multiline {
using System;
using System.Diagnostics;
using System.Threading;
using Autofac;
namespace AutofacTest
{
class Program
{
static void Main(string[] args)
@LexxFedoroff
LexxFedoroff / median.go
Created March 31, 2022 08:43
Find median of two sorted arrays
package main
func findMedianLog(a []int, b []int) float64 {
n := len(a)
m := len(b)
meda, ia := median(a)
medb, ib := median(b)
if n == 0 {