Skip to content

Instantly share code, notes, and snippets.

View yarikoptic's full-sized avatar
😠
Pseudo-"Tsar"-made WAR in Europe!

Yaroslav Halchenko yarikoptic

😠
Pseudo-"Tsar"-made WAR in Europe!
View GitHub Profile
Program received signal SIGBUS, Bus error.
blosc_d (blocksize=32768, leftoverblock=<optimized out>, src=0x132f543 "S", dest=0x1421808 "", tmp=0x1429810 "", tmp2=
0x1431830 "") at blosc/blosc.c:330
330 cbytes = sw32(((uint32_t *)(src))[0]); /* amount of compressed bytes */
(gdb) print src
$1 = (uint8_t *) 0x132f543 "S"
(gdb) print ((uint32_t *)(src))[0]
$2 = 1392508928
(gdb) print sw32(((uint32_t *)(src))[0])
$3 = 83
@yarikoptic
yarikoptic / python-all
Created February 17, 2013 03:23
tiny script to invoke any available python version with given cmdline arguments
#!/bin/bash
# Simple helper script to run something with all available versions of Python
# (under /usr/bin and /usr/local/bin python2.*)
set -eu
failed=
for python in /usr/{,local/}bin/python[23].[0-9]{,.*}{,-dbg}
do
[ -e "$python" ] || continue
#!/usr/bin/python
#emacs: -*- mode: python-mode; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
#ex: set sts=4 ts=4 sw=4 noet:
#------------------------- =+- Python script -+= -------------------------
"""
@file travis-logs.py
@date Wed Mar 27 15:20:16 2013
@brief
Created: Wed Mar 27 15:20:16 2013
#!/usr/bin/python
#emacs: -*- mode: python-mode; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
#ex: set sts=4 ts=4 sw=4 noet:
#------------------------- =+- Python script -+= -------------------------
"""
@file travis-logs.py
@date Wed Mar 27 15:20:16 2013
@brief
Created: Wed Mar 27 15:20:16 2013
#!/usr/bin/python
#emacs: -*- mode: python-mode; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
#ex: set sts=4 ts=4 sw=4 noet:
#------------------------- =+- Python script -+= -------------------------
"""
@file travis-logs.py
@date Wed Mar 27 15:20:16 2013
@brief
Created: Wed Mar 27 15:20:16 2013
#!/usr/bin/python
#emacs: -*- mode: python-mode; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
#ex: set sts=4 ts=4 sw=4 noet:
#------------------------- =+- Python script -+= -------------------------
"""
@file travis-logs.py
@date Wed Mar 27 15:20:16 2013
@brief
Created: Wed Mar 27 15:20:16 2013
@yarikoptic
yarikoptic / gist:5457271
Created April 25, 2013 03:19
rvm install 1.9.3 failure
make[2]: Leaving directory `/backup/ghlab/.rvm/src/ruby-1.9.3-p392/ext/-test-/bug-3662'
make[2]: Entering directory `/backup/ghlab/.rvm/src/ruby-1.9.3-p392/ext/-test-/win32/dln'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/backup/ghlab/.rvm/src/ruby-1.9.3-p392/ext/-test-/win32/dln'
make[2]: Entering directory `/backup/ghlab/.rvm/src/ruby-1.9.3-p392/ext/-test-/win32/fd_setsize'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/backup/ghlab/.rvm/src/ruby-1.9.3-p392/ext/-test-/win32/fd_setsize'
make[2]: Entering directory `/backup/ghlab/.rvm/src/ruby-1.9.3-p392/ext/bigdecimal'
compiling cstr.c
compiling bigdecimal.c
@yarikoptic
yarikoptic / gist:5490194
Created April 30, 2013 17:10
#newinwheezy from NeuroDebian
Electrophysiology:
aghermann
biosig4c++
eegdev
klustakwik
libgdf
neo
pyoptical
pyxid
rtfilter
novo:~/deb/proj/debian-flyers-cvs
$> cvs update
cvs update: Updating .
cvs update: failed to create lock directory for `/cvsroot/debian-flyers/general' (/cvs/cvs-locks/debian-flyers/general/#cvs.lock): Read-only file system
cvs update: failed to obtain dir lock in repository `/cvsroot/debian-flyers/general'
cvs [update aborted]: read lock failed - giving up
novo:~/deb/proj/debian-flyers-cvs
$> cvs log
@yarikoptic
yarikoptic / gist:9023331
Created February 15, 2014 18:40
Improved boxplots
#emacs: -*- mode: python-mode; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
#ex: set sts=4 ts=4 sw=4 noet:
#------------------------- =+- Python script -+= -------------------------
"""
@file paired-plots.py
@date Fri Jan 13 11:48:00 2012
@brief
Yaroslav Halchenko Dartmouth