Skip to content

Instantly share code, notes, and snippets.

@joshmoore
joshmoore / pytables_ci.py
Created August 26, 2011 22:19
PyTables script to be run during continuous integration (cross-platform)
import os
import re
import sys
import subprocess
import platform
venv = os.environ.get("VIRTUALENV", "default")
if platform.system() == "Windows":
home = "C:\\hudson"
@joshmoore
joshmoore / README.md
Last active September 27, 2015 04:48
Bootstrap script for creating and installing OMERO via Homebrew.
@joshmoore
joshmoore / install_hdf5.sh
Created September 14, 2011 12:31
Simple *nix install script for HDF5 (1.8.7)
set -e
set -u
BASE=hdf5-1.8.7
CURRENT=`pwd`
TARGET=$1
if (test -e $TARGET/bin/h5ls && $TARGET/bin/h5ls --version)
then
echo Using existing HDF install in $TARGET
@joshmoore
joshmoore / pgp.txt
Created November 23, 2011 07:57
PGP keys for joshmoore
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
mQGiBEVFESIRBACvlOZBZDE69SR5OqCKjA8Z+pdVl4NxVmzo7uWoMROfv8T4DOdY
mk+Gn642T+5kcK/FI7q3L3Amx7Spn5Xb4nKZsfoppRGXT9oF1DpGIERsJAxfk2a4
ykISw8RiZWMzXUImORg9+IZvIhYPGl44M5iNbzOk0I0g8WS7T47N78LCAwCgl9y7
hjYbExQQ6TsPrCvFlvYsgg8EAKkTaqzpXN1PDep3/W8Kmjk9XGTXYN7NXK14R5mm
xPlYhfCu5nkjsr7kkERdpu8xhmEvp0DIQRK0CwI4hwlN4/iDfttWS2LQkTxg45/Z
tX10Ks9Mk/dIdUqaoVYnZR5wTUcaT2GJYu7EhPNHyAiGNmGXIAhNucrNsNF+o2QO
@joshmoore
joshmoore / ice_switch.sh
Created November 25, 2011 09:42
Switch between zeroc-ice33 and zeroc-ice34 formulae
# See Formula in https://github.com/joshmoore/homebrew/tree/omero-only
#
# Use: git remote add omero [email protected]:joshmoore/homebrew.git
# git fetch omero
# git merge omero/omero-only
#
ice33() {
VERSION=`slice2java --version 2>&1`
if [[ "$VERSION" != "3.3.1" ]];
then
diff -c -r -N ../mcpp-2.7.2/src/internal.H ./src/internal.H
*** ../mcpp-2.7.2/src/internal.H 2008-08-27 10:31:16.000000000 -0230
--- ./src/internal.H 2009-12-17 21:01:35.000000000 -0330
***************
*** 390,395 ****
--- 390,397 ----
extern char identifier[]; /* Lastly scanned name */
extern IFINFO ifstack[]; /* Information of #if nesting */
extern char work_buf[];
+ extern FILEINFO * sh_file;
@joshmoore
joshmoore / README.md
Created March 22, 2012 13:05
HyLdap example
@joshmoore
joshmoore / issue119.py
Created April 26, 2012 17:44
Reproduce the Time64Column indexing issue
import tables
import random
class Descr(tables.IsDescription):
Awhen = tables.Time32Col(pos = 1)
value = tables.Float32Col(pos = 2)
h5f = tables.openFile('alan.h5', 'w')
tbl = h5f.createTable('/', 'test', Descr)
@joshmoore
joshmoore / simpler_importer.java
Created July 2, 2012 23:02
Java example of how to write a very basic OMERO importer (see https://www.openmicroscopy.org/community/viewtopic.php?f=6&t=1062)
import ome.formats.OMEROMetadataStoreClient;
import ome.formats.importer.IObservable;
import ome.formats.importer.IObserver;
import ome.formats.importer.ImportCandidates;
import ome.formats.importer.ImportConfig;
import ome.formats.importer.ImportContainer;
import ome.formats.importer.ImportEvent;
import static ome.formats.importer.ImportEvent.IMPORT_DONE;
import ome.formats.importer.ImportLibrary;
import ome.formats.importer.OMEROWrapper;
@joshmoore
joshmoore / ome_merge.py
Created July 17, 2012 15:18
Script to merge all PRs with a given label.
"""
This gist is being merged into the OME mainline. Please see:
https://github.com/snoopycrimecop/snoopycrimecop/blob/master
"""