Skip to content

Instantly share code, notes, and snippets.

View marek-obuchowicz's full-sized avatar

Marek Obuchowicz marek-obuchowicz

View GitHub Profile
@marek-obuchowicz
marek-obuchowicz / emotiva_api_client_base.py
Created October 10, 2021 12:35
Basic example of communication layer with Emotiva XMC-1.
#!/usr/bin/env python3
import argparse
import logging
import socket
import xml.etree.ElementTree as ET
TRANSPONDER_REQUEST_PORT = 7000
TRANSPONDER_RESPONSE_PORT = 7001
SEND_TIMEOUT = 1

Keybase proof

I hereby claim:

  • I am marek-obuchowicz on github.
  • I am marekobu (https://keybase.io/marekobu) on keybase.
  • I have a public key whose fingerprint is B702 B376 018B CFCC BD80 016F 0442 350F C32D 073D

To claim this, I am signing this object:

Lani
Francine
Norma
Almire
Hedwig
Miriam
Ashlen
Emmalyn
Domini
Caryl
2015-10-19 12:31:17,214 [qtp1752809409-802987] [o.s.b.SpringApplication] [] [] - Starting application on bcc77f0e0b40 with PID 10 (started by ? in /)
2015-10-19 12:31:17,217 [qtp1752809409-802987] [o.s.c.a.AnnotationConfigApplicationContext] [] [] - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@6aec993a: startup date [Mon Oct 19 12:31:17 UTC 2015]; root of context hierarchy
2015-10-19 12:31:17,219 [qtp1752809409-802987] [o.s.b.f.a.AutowiredAnnotationBeanPostProcessor] [] [] - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2015-10-19 12:31:17,219 [qtp1752809409-802987] [o.s.b.SpringApplication] [] [] - Started application in 0.207 seconds (JVM running for 331894.715)
2015-10-19 12:31:17,219 [qtp1752809409-802987] [o.s.c.c.s.NativeEnvironmentRepository] [] [] - Adding property source: classpath:/configs/application.yml#live
2015-10-19 12:31:17,219 [qtp1752809409-802987] [o.s.c.c.s.NativeEnvironmentRepository] [] [] - Adding property source: cla
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.context.annotation.Configuration;
import org.springframework.util.StringUtils;
import org.xxx.phoenix.bootstarters.jersey.autoconfigure.PhoenixJerseyAutoConfiguration;
@Configuration
@EnableAutoConfiguration( exclude = { JacksonAutoConfiguration.class, PhoenixJerseyAutoConfiguration.class } )
@marek-obuchowicz
marek-obuchowicz / gist:9431175
Created March 8, 2014 14:16
Different result for Aggregations vs Facets (terms):
$ curl 'http://127.0.0.1:9200/catalog_links/catalog_link/_search?pretty&search_type=count' -d '{"query":{"match_all":{}},"facets":{"tags":{"terms":{"field":"tags"}}}}'
{
"took" : 0,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"hits" : {