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
AuthorizedKeysFile .ssh/authorized_keys
ChallengeResponseAuthentication no
UsePAM yes
PrintMotd no # pam does that
UsePrivilegeSeparation sandbox # Default for new installations.
Subsystem sftp /usr/lib/ssh/sftp-server
@txomon
txomon / gist:632aadfa76882cebd0a1
Created May 30, 2015 12:21
kernel compilation bug
[rtai@localhost linux-3.8.13]$ make clean
CLEAN arch/x86/tools
CLEAN .tmp_versions
[rtai@localhost linux-3.8.13]$ make
make[1]: Nothing to be done for 'all'.
HOSTCC scripts/basic/fixdep
HOSTCC arch/x86/tools/relocs
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
@txomon
txomon / .config
Last active August 29, 2015 14:22
Kernel compilation error with gcc5
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 3.16.0 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
@txomon
txomon / amqp.py
Created June 16, 2015 13:45
Kombu based amqp connections
from kombu import Exchange, messaging, Connection, Queue
try:
import simplejson as json
except ImportError:
import json
class AMQPConnection:
queue_name = None
[2015-06-30 12:26:32.334650] I [MSGID: 100030] [glusterfsd.c:2301:main] 0-/usr/sbin/glusterd: Started running /usr/sbin/glusterd version 3.7.2 (args: /usr/sbin/glusterd -p /var/run/glusterd.pid)
[2015-06-30 12:26:32.338855] I [glusterd.c:1372:init] 0-management: Maximum allowed open file descriptors set to 65536
[2015-06-30 12:26:32.338886] I [glusterd.c:1420:init] 0-management: Using /var/lib/glusterd as working directory
[2015-06-30 12:26:32.345185] W [rdma.c:4493:__gf_rdma_ctx_create] 0-rpc-transport/rdma: rdma_cm event channel creation failed (No such device)
[2015-06-30 12:26:32.345209] W [rdma.c:4793:init] 0-rdma.management: Failed to initialize IB Device
[2015-06-30 12:26:32.345218] W [rpc-transport.c:358:rpc_transport_load] 0-rpc-transport: 'rdma' initialization failed
[2015-06-30 12:26:32.345297] W [rpcsvc.c:1595:rpcsvc_transport_create] 0-rpc-service: cannot create listener, initing the transport failed
[2015-06-30 12:26:32.345324] E [MSGID: 106243] [glusterd.c:1646:init] 0-management: creation of 1
@txomon
txomon / emp15-minutes.md
Last active August 29, 2015 14:25
Europython 2015 minutes

Monday 11

Keynote

Talk by the two Ola-s that created Django Girls group and an intro to how they felt through the process in getting to be Django devs.

@txomon
txomon / Tox output
Created August 4, 2015 17:41
SpockBot tox output
GLOB sdist-make: /home/javier/proyectos/minecraft/spockbot/setup.py
py27 inst-nodeps: /home/javier/proyectos/minecraft/spockbot/.tox/dist/spock-1.2.zip
py27 installed: Beaker==1.7.0.dev0,CherryPy==3.6.0,coverage==3.7.1,execnet==1.3.0,functools32==3.2.3.post1,httplib2==0.9.1,ipython==3.2.1,Jinja2==2.8,jsonschema==2.5.1,louis==2.6.3,lxml==3.4.4,M2Crypto==0.22.3,Mako==1.0.1,MarkupSafe==0.23,matplotlib==1.4.3,meld==3.14.0,msgpack-python==0.4.6,nose==1.3.7,numpy==1.9.2,openshot==1.4.3,Pillow==2.9.0,py==1.4.30,pycrypto==2.6.1,pygobject==3.16.2,pyparsing==2.0.3,pytest==2.7.2,pytest-capturelog==0.7,pytest-cov==2.0.0,pytest-xdist==1.12,python-dateutil==2.4.2,python-sane==2.8,pytz==2015.4,pyxdg==0.25,PyYAML==3.11,pyzmq==14.7.0,requests==2.7.0,salt==2015.5.3,scipy==0.16.0,six==1.9.0,spock==1.2,team==1.0,tornado==4.2.1,virtualenv==13.1.0,wheel==0.24.0,ws4py==0.3.4,zenmap==6.47
py27 runtests: PYTHONHASHSEED='1998975469'
py27 runtests: commands[0] | py.test --basetemp=/home/javier/proyectos/minecraft/spockbot/.tox/py27/tmp
@txomon
txomon / spark.log
Created August 6, 2015 07:19
Spark error
Traceback (most recent call last):
File "/home/javier/test/ml/spark_pipeline.py", line 31, in <module>
print(files_spark_pipeline('/srv/testfiles/'))
File "/home/javier/test/ml/spark_pipeline.py", line 17, in files_spark_pipeline
text_files
File "/home/javier/test/spark/spark/python/lib/pyspark.zip/pyspark/context.py", line 393, in parallelize
File "/home/javier/test/spark/spark/python/lib/pyspark.zip/pyspark/serializers.py", line 215, in dump_stream
File "/home/javier/test/spark/spark/python/lib/pyspark.zip/pyspark/serializers.py", line 134, in dump_stream
File "/home/javier/test/spark/spark/python/lib/pyspark.zip/pyspark/serializers.py", line 144, in _write_with_length
File "/home/javier/test/spark/spark/python/lib/pyspark.zip/pyspark/serializers.py", line 414, in dumps
@txomon
txomon / traceback.log
Last active August 29, 2015 14:27
Spark traceback on pickle
Traceback (most recent call last):
File "/home/javier/projects/bigdata/bdml/ml/spark_pipeline.py", line 61, in <module>
preprocess()
File "/home/javier/projects/bigdata/bdml/ml/spark_pipeline.py", line 57, in preprocess
files_spark_pipeline(args.input_path, args.output_file)
File "/home/javier/projects/bigdata/bdml/ml/spark_pipeline.py", line 47, in files_spark_pipeline
'org.apache.hadoop.io.compress.GzipCodec'
File "/home/javier/projects/bigdata/spark/spark/python/lib/pyspark.zip/pyspark/rdd.py", line 1484, in saveAsTextFile
File "/home/javier/projects/bigdata/spark/spark/python/lib/py4j-0.8.2.1-src.zip/py4j/java_gateway.py", line 538, in __call__
File "/home/javier/projects/bigdata/spark/spark/python/lib/py4j-0.8.2.1-src.zip/py4j/protocol.py", line 300, in get_return_value
@txomon
txomon / out.txt
Created August 16, 2015 22:11
Mopidy flake8 execution with flake8-quotes2 installed
% flake8 2>/dev/null
unknown option 'application-import-names' ignored
./tests/test_httpclient.py:10:26: Q100 Single quotes should be used by default: "config,expected"
./tests/test_httpclient.py:32:26: Q100 Single quotes should be used by default: "name,expected"
./tests/mpd/test_tokenizer.py:68:44: Q101 Double quotes should be used to avoid single quote scaping : 'test foo\'bar'
./mopidy/httpclient.py:7:1: Q100 Single quotes should be used by default: "Helpers for configuring HTTP clients used in Mopidy extensions."
./tests/mpd/protocol/test_music_db.py:76:43: Q100 Single quotes should be used by default: "2001"
./tests/mpd/protocol/test_music_db.py:77:43: Q100 Single quotes should be used by default: "2001"
./tests/mpd/protocol/test_music_db.py:87:43: Q100 Single quotes should be used by default: "2001"
./mopidy/m3u/translator.py:86:24: Q101 Double quotes should be used to avoid single quote scaping : 'Couldn\'t open m3u: %s'