Skip to content

Instantly share code, notes, and snippets.

View txomon's full-sized avatar

Javier Domingo Cansino txomon

  • Germany/Koln, UK/London, Spain/Bilbao
View GitHub Profile
@txomon
txomon / debug-output.txt
Created May 5, 2016 15:45
Gradle Zuul appengine
15:59:54.793 [DEBUG] [org.gradle.internal.nativeintegration.services.NativeServices] Unable to load from native-platform backed ConsoleDetector. Continuing with fallback. Failure: net.rubygrapefruit.platform.NativeException: Failed to load native library 'libnative-platform-curses.so' for Linux amd64.
caused by: java.lang.UnsatisfiedLinkError: /home/javier/.gradle/native/19/linux-amd64/libnative-platform-curses.so: libncurses.so.5: cannot open shared object file: No such file or directory
15:59:55.338 [INFO] [org.gradle.BuildLogger] Starting Build
15:59:55.341 [DEBUG] [org.gradle.BuildLogger] Gradle user home: /home/javier/.gradle
15:59:55.341 [DEBUG] [org.gradle.BuildLogger] Current dir: /home/javier/projects/spinoffs/zuul
15:59:55.342 [DEBUG] [org.gradle.BuildLogger] Settings file: null
15:59:55.342 [DEBUG] [org.gradle.BuildLogger] Build file: null
15:59:55.553 [INFO] [org.gradle.BuildLogger] Settings evaluated using settings file '/home/javier/projects/spinoffs/zuul/settings.gradle'.
15:59:55.710 [INFO] [o
@txomon
txomon / Description.md
Last active July 3, 2017 12:17
Technical test for abilities and capacity

Dubtrack.fm is a musical service that lets users listen to music together in channels. The service makes use of youtube and soundcloud, and users colaborativelly create the playing tracklist adding tracks from these services.

However, people needs to gather these songs manually and many times you find that the same song is being played more than once. The aim of this task is to resolve this problem by having everything automated.

Because the task could take really long, and many design decisions must be taken, this is a breakdown of the tasks.

  1. The songs played in the channel should be stored in a database, not relying in the history, but in a live connection to receive everything on real time.

  2. Who added the played song should be also tracked

@txomon
txomon / createInfoPlistStrings.sh
Last active June 9, 2016 19:13 — forked from tritter/createInfoPlistStrings.sh
script is intended to use inside an Xcode project's build steps. It creates a InfoPlist.strings file that are used by the system to localize Info.plist values.
#!/bin/bash
# Thom Ritterfeld 2016
# This script is intended to use inside an Xcode project's build steps. It creates a InfoPlist.strings file that are used by the system to localize Info.plist values.
# Define localize keys values, the values are the ones that need to be placed inside InfoPlist.strings.
# For example in Localizable.strings you defined: "location_in_use_desc" = "we want to know where you work";
# This script will add "NSLocationWhenInUseUsageDescription" = "we want to know where you work"; into InfoPlist.strings.
# To define these keys define the key of Localizable.strings into localizable_keys and the key for InfoPlist.strings into info_plist_keys.
# Use the same positions, because of lack of good dictionary support. For the sample:
# declare -a localizable_keys=("location_in_use_desc")
import pytest
@pytest.fixture(params=[
{
'response': {'a':'b'},
'code': 201,
'result': True,
},
{
@txomon
txomon / problem-spec.md
Last active July 12, 2016 22:14
Architecture problem for training

Problem

Our company is a service to track all your media life. We provide image, video and audio sharing, archiving, etc., we provide TV, PlayStation, xbox, etc. integrations, we secure your data, and we also keep track on what you listen and watch, we propose new things to read, watch and listen depending on what you consume.

Integrations with social networks are obviously though of.

@txomon
txomon / ep16.txt
Created September 17, 2016 17:15
My europython yearly sum up
Monday
======
10:30 - Barria2 Interactive data kungfu with shaolin
10:30 - Barria1 What Python can learn from Haskell packaging
11:15 - Barria2 Profiling the unprofilable
11:15 - PycharmRoom Query Embeddings: Web Scale Search powered by deep learnig and python
12:00 - A1 It's not magic: descriptors exposed
classes:
- service.linux.system
parameters:
linux:
system:
enabled: true
name: 'computer'
domain: 'domain'
cluster: 'system'
environment: base
@txomon
txomon / uboot-zynq-compile-log
Created October 26, 2017 09:18
Uboot xilinx zynq zedboard
tools/lib/rsa/rsa-sign.o: In function `rsa_sign':
rsa-sign.c:(.text+0x3dd): undefined reference to `SSL_library_init'
rsa-sign.c:(.text+0x3ea): undefined reference to `SSL_load_error_strings'
rsa-sign.c:(.text+0x3ef): undefined reference to `OPENSSL_add_all_algorithms_noconf'
rsa-sign.c:(.text+0x3f4): undefined reference to `OpenSSL_add_all_digests'
DEBUG:root:Sending ping
DEBUG:root:Sending message 2
DEBUG:root:Received pong
DEBUG:root:Received message: 4{"action":15,"channel":"room:561b1e59c90a9c0e00df610b","message":{"name":"user-join","type":"json","data":"{\"roomUser\":{\"_id\":\"5628db0a3883a45600b7e68f\",\"updated\":1518739898666,\"skippedCount\":0,\"playedCount\":1677,\"songsInQueue\":0,\"active\":false,\"dubs\":364,\"order\":999999999,\"roomid\":\"561b1e59c90a9c0e00df610b\",\"userid\":\"560b135c7ae1ea0300869b20\",\"_user\":\"560b135c7ae1ea0300869b20\",\"__v\":0,\"ot_token\":null,\"authorized\":true,\"queuePaused\":null,\"waitLine\":0,\"roleid\":{\"_id\":\"52d1ce33c38a06510c000001\",\"type\":\"mod\",\"label\":\"Moderator\",\"rights\":[\"skip\",\"queue-order\",\"kick\",\"ban\",\"mute\",\"set-dj\",\"lock-queue\",\"delete-chat\",\"chat-mention\"],\"__v\":0}},\"user\":{\"_force_updated\":1516971162191,\"userInfo\":{\"_id\":\"560b135c7ae1ea0300869b21\",\"userid\":\"560b135c7ae1ea0300869b20\",\"__v\":0},\"_id\":\"560b135c7ae1ea0300869b20\",\"username\"
INFO:dubtrack.layer3:User updated 5628edc08d7d6a5600335d3d, skip 0, played 23898, queue 30, dubs 25899
INFO:dubtrack.layer3:Chat txomon: so I have been able to more or less finish the bindings
INFO:dubtrack:Now playing youtube#8-wIg90lagk: Batman Begins Soundtrack - Corynorhinus
INFO:dubtrack.layer3:Chat txomon: and I need to generate some actions more to be able to map all the possible ones
INFO:dubtrack.layer3:Chat txomon: so if you see I do strange stuff, it's true xD
INFO:dubtrack.layer3:Chat txomon: I am just testing
INFO:dubtrack.layer3:Chat eva_MoS: Short version:beware, he´s watching all of us
INFO:dubtrack.layer3:Chat eva_MoS: ;-P
INFO:dubtrack.layer3:User updated 562e462b888e6f1900ff20bc, skip 0, played 28988, queue 42, dubs 30136
INFO:dubtrack.layer3:Song updub by eva_MoS#562e462b888e6f1900ff20bc, total 1U/0D