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
POST /test-index/foo
{
"bar": ["1", "2"],
"myobject": {
"baz": ["1", "2"]
}
}
POST /test-index/foo/_search
{
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.
@kubaracek
kubaracek / .gitignore_global
Created June 29, 2016 12:09
My global .gitignore_global file
# Documents #
###################
*.csv
*.scsv
# Test scripts #
###################
*.test.*
# Compiled source #
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()
},
def convert_to_chronicle_format(weights: pd.Series) -> Generator[Dict[str, Dict[str, float]], Any, None]:
"""Take out panelprovider on the beginning of respondents
index and returns generator with format suitable for
pychronicle
Args:
weights: Series with weightings data
Returns:
generator with dicts containing respondents weighting
Config { font = "-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*"
, borderColor = "black"
, border = TopB
, bgColor = "black"
, fgColor = "grey"
, position = TopW L 100
, commands = [ Run Weather "CYVR" ["-t","<tempC>C","-L","18","-H","25","--normal","green","--high","red","--low","lightblue"] 36000
, Run Network "eth0" ["-L","0","-H","32","--normal","green","--high","red"] 10
, Run Network "eth1" ["-L","0","-H","32","--normal","green","--high","red"] 10
, Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10
decorations none
transparent false
dockapp_mode none
geometry 5x1-400+0
max_geometry 5x1-325-10
background "#000000"
kludges force_icons_size
grow_gravity NE
icon_gravity NE
icon_size 12
import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
import System.IO
main = do
xmproc <- spawnPipe "xmobar"
Config {
-- appearance
font = "xft:Bitstream Vera Sans Mono:size=9:bold:antialias=true"
, bgColor = "black"
, fgColor = "#646464"
, position = Top
, border = BottomB
, borderColor = "#646464"
#reactapp,
#reactapp * {
align-content: stretch;
align-items: stretch;
align-self: auto;
animation-delay: 0s;
animation-direction: normal;
animation-duration: 0s;
animation-fill-mode: none;
animation-iteration-count: 1;