Skip to content

Instantly share code, notes, and snippets.

View sbesson's full-sized avatar

Sébastien Besson sbesson

View GitHub Profile
@sbesson
sbesson / gist:4947107
Last active December 13, 2015 17:19
OSX 10.6.8 gfortran error - config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GNU C Runtime Library configure 1.0, which was
generated by GNU Autoconf 2.64. Invocation command line was
$ ../../../../libgcc/configure --with-multisubdir=x86_64 --with-multisrctop= --enable-multilib --cache-file=./config.cache --enable-multilib --prefix=/usr/local/Cellar/gfortran/4.7.2/gfortran --datarootdir=/usr/local/Cellar/gfortran/4.7.2/share --bindir=/usr/local/Cellar/gfortran/4.7.2/bin --with-system-zlib --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --enable-checking=release --disable-stage1-checking --disable-build-poststage1-with-cxx --disable-libstdcxx-pc --disable-nls --enable-languages=c,fortran --program-transform-name=s,y,y, --disable-option-checking --with-target-subdir=i386-apple-darwin10.8.0 --build=i386-apple-darwin10.8.0 --host=i386-apple-darwin10.8.0 --target=i386-apple-darwin10.8.0 --srcdir=.
[{
"type" : "tag",
"name" : "Foo001",
"desc" : "A foo was fooed when the food was few.",
"set" : [{
"type" : "tag",
"name" : "Foo001_Sub1",
"desc" : "Substandard substitutes with stubbed tubs."
}, {
"type" : "tag",
<tag name="Foo001" desc="A foo was fooed when the food was few.">
<tag name="Foo001_Sub1" desc="Substandard substitutes with stubbed tubs."/>
<tag name="Foo001_Sub2" desc="Strained strange trains stray starkly."/>
<tag name="Foo001_Sub3" desc="Two towed to too tooled towels."/>
<tag/>
<commment name="Boo001" desc="A foo was fooed when the food was few."/>
<file name="Foo.txt" path="~/my_file.txt" desc="A foo was fooed when the food was few."/>
@sbesson
sbesson / bf_tracking_example.m
Last active December 21, 2015 21:08
Example of usage of u-track with a microscopy file using Bio-Formats and an image onto an OMERO server
% Create MovieData object from image file stored on disk
MD = MovieData.load(fullfile(path, 'myimage.dv'));
% Manipulate the movie, e.g. retrieve the first image of the first channel
I = MD.getChannel(1).loadImage(1);
% Remove all analysis performed on the movie
MD.reset();
% Set up single-particle tracking package
@sbesson
sbesson / fake_tags.json
Last active December 22, 2015 19:58
A set of files to test the new OMERO.cli tag plugin
[{
"name" : "Foo001",
"desc" : "A foo was fooed when the food was few.",
"set" : [{
"name" : "Foo001_Sub1",
"desc" : "Substandard substitutes with stubbed tubs."
}, {
"name" : "Foo001_Sub2",
"desc" : "Strained strange trains stray starkly."
}, {
@sbesson
sbesson / nd2read.m
Last active December 22, 2015 20:49
Reading a multi-image file via Bio-Formatsr
% Create a reader from a nd2 file
filepath = fullfile(getenv('HOME'), 'bernhard', '962.nd2');
fprintf(1, 'Loading %s\n', filepath);
% Load the reader. In the case of very large files, the call to setId()
% in the bfGetReader() should be the limiting step
r = bfGetReader(filepath);
% Retrieve the metadata store for metadata reading
metadata = r.getMetadataStore();
@sbesson
sbesson / Readme.md
Last active December 25, 2015 14:19
This script recursively removes prefixed release tags on remotes using scc.It assumes a read token for snoopycrimecop has been set up in the git config file .
from scc.git import get_github, get_token
from scc.git import PullRequest
gh = get_github(get_token())
# List all PRs in the organizations
orgs = ["openmicroscopy", "ome"]
print "Listing all PRs in organizations: %s" % ", ".join(orgs)
all_prs = []
for org in orgs:
@sbesson
sbesson / Readme.md
Last active January 2, 2016 21:19
This script sets the labels of open pull requests using the base branch.
@sbesson
sbesson / build.xml.patch
Last active August 29, 2015 13:55
Patch for the OMERO5 Homebrew formula
diff --git a/build.xml b/build.xml
index 907abd3..bda6efb 100644
--- a/build.xml
+++ b/build.xml
@@ -1121,7 +1121,7 @@ omero.version=${omero.version}
<propertyregex property="version.describe" input="${fullversion}" regexp="@{regexp}" select="@{select}"/>
</try>
<catch>
- <echo>UNKNOWN</echo>
+ <echo>5.0.0-rc2</echo>