Skip to content

Instantly share code, notes, and snippets.

@eranid
eranid / gist:dfba18f32a9484c643fd
Last active August 29, 2015 14:04
nvidia logger
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Mon Aug 4 16:32:35 2014
installer version: 331.49
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
nvidia-installer command line:
./nvidia-installer
Using: nvidia-installer ncurses user interface
@eranid
eranid / gist:72eab11b42596c8996fe
Created June 8, 2014 09:04
SSH failure connecting to C3.large EC2 machine
$ ssh -i myPEM.pem myuser@184.1.1.1 -vvv
OpenSSH_6.2p2 Ubuntu-6ubuntu0.4, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /home/general/.ssh/config
debug1: /home/general/.ssh/config line 1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 184.73.8.32 [184.73.8.32] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
@eranid
eranid / gist:8845707
Created February 6, 2014 14:57
Theano.test
In [1]: import theano
In [2]: theano.test()
Theano version 0.6.0
theano is installed in /usr/local/lib/python2.7/dist-packages/theano
NumPy version 1.7.1
NumPy is installed in /usr/lib/python2.7/dist-packages/numpy
Python version 2.7.5+ (default, Sep 19 2013, 13:48:49) [GCC 4.8.1]
nose version 1.3.0
/usr/local/lib/python2.7/dist-packages/theano/misc/pycuda_init.py:34: UserWarning: PyCUDA import failed in theano.misc.pycuda_init
@eranid
eranid / _hot_threads
Last active December 18, 2015 01:28
Several snapshots of "hot threads" and "/stats" endpoints
###################### 1 ################################
::: [Birely, Douglas][QINwIMqTROC5uAx5AatJ0A][inet[/*.*.*.*:*]]{aws_availability_zone=us-east-1d}
96.9% (484.5ms out of 500ms) cpu usage by thread 'elasticsearch[Birely, Douglas][cache][T#23]'
2/10 snapshots sharing following 4 elements
org.elasticsearch.index.cache.bloom.simple.SimpleBloomCache$BloomFilterLoader.run(SimpleBloomCache.java:199)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
java.lang.Thread.run(Thread.java:722)
2/10 snapshots sharing following 4 elements
@eranid
eranid / gist:5299628
Created April 3, 2013 09:07
Elasticsearch Parent-Child-Grandchild problem
curl -XPOST 'http://localhost:9200/index1' -d '{
"settings" : {
"number_of_shards" : 5,
"number_of_replicas" : 1
},
"mappings" : {
"type1" : {
"properties" : {
@eranid
eranid / gist:5206390
Created March 20, 2013 17:04
has_child query fails with "does not have parent mapping"
curl -XGET 'http://localhost:9200/index1/child_type/_mapping?pretty=true'
{
"child_type" : {
"_parent" : {
"type" : "parent_type"
},
"_routing" : {
"required" : true
},