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
#!/bin/bash
set -eu
cd $1
# First we will deal with .git/annex/objects
for d in .git/annex/objects/??/??/*; do
[ -d $d ] || continue
chmod +w $d $d/..
# although it must be the same name, let's be uber careful
mv $d ${d}_
@yarikoptic
yarikoptic / gist:0e1294c0cf16fd471727
Created August 13, 2014 19:48
stackbrew description for neurodebian images

Built with Stackbrew from http://github.com/dotcloud/stackbrew/blob/master/library/neurodebian . Stackbrew Dockerfiles were generated using https://github.com/neurodebian/dockerfiles/blob/master/gen_dockerfiles script based on NeuroDebian configuration file and Stackbrew's debian and ubuntu-debootstrap images.

NeuroDebian images only add NeuroDebian repository and repository's GPG key. No apt indexes are downloaded, so apt-get update needs to be ran before any use of apt-get. At the time of this writing, a partial list includes:

> docker images neurodebian
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
neurodebian         jessie              889525700b61        4 hours ago         90.08 MB
neurodebian         nd80                889525700b61        4 hours ago         90.08 MB
neurodebian         latest              c34c9c7ba1bf        4 hours ago         85.21 MB

neurodebian

@yarikoptic
yarikoptic / get-travis-buildlogs
Created February 16, 2014 20:29
A tiny Python script to fetch travis build logs
#!/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: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
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:5490194
Created April 30, 2013 17:10
#newinwheezy from NeuroDebian
Electrophysiology:
aghermann
biosig4c++
eegdev
klustakwik
libgdf
neo
pyoptical
pyxid
rtfilter
@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
#!/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