Skip to content

Instantly share code, notes, and snippets.

View kubaracek's full-sized avatar
🇨🇿

Jakub Ráček kubaracek

🇨🇿
  • Pleo.io
  • Innsbruck, Austria
View GitHub Profile
export const addType = ({ title, shortDesc, desc, type }) => ({ getUid, now }) => ({
type: ADD_TYPE,
payload: {
createdAt: now(),
id: getUid(),
title: title.trim(),
shortDescription: shortDesc.trim(),
description: desc.trim(),
type: type.trim()
},
@kubaracek
kubaracek / .gitignore_global
Created June 29, 2016 12:09
My global .gitignore_global file
# Documents #
###################
*.csv
*.scsv
# Test scripts #
###################
*.test.*
# Compiled source #
storage_in_1 | 2016-05-27 12:58:05,778 - aiokafka.group_coordinator - INFO - Heartbeat failed: local member_id was not recognized; resetting and re-joining group
storage_in_1 | 2016-05-27 12:58:05,779 - aiokafka.group_coordinator - ERROR - Heartbeat session expired - marking coordinator dead
storage_in_1 | 2016-05-27 12:58:05,779 - aiokafka.group_coordinator - INFO - Marking the coordinator dead (node 0): None.
storage_in_1 | 2016-05-27 12:58:05,779 - aiokafka.group_coordinator - ERROR - OffsetCommit failed for group test-consumer-group due to group error (IllegalGenerationError - 22 - Returned from group membership requests (such as heartbeats) when the generation id provided i
n the request is not the current generation.), will rejoin
storage_in_1 | 2016-05-27 12:58:05,780 - aiokafka.group_coordinator - WARNING - Auto offset commit failed: IllegalGenerationError - 22 - Returned from group membership requests (such as heartbeats) when the generation id provided in the request is not the current generati
on.
POST /test-index/foo
{
"bar": ["1", "2"],
"myobject": {
"baz": ["1", "2"]
}
}
POST /test-index/foo/_search
{