Skip to content

Instantly share code, notes, and snippets.

@joshmoore
joshmoore / permissions.md
Last active August 29, 2015 13:58
OMERO Permissions

In-use

  • rw---- : private group (admin can read)
  • rwr--- : collab. read-only
  • rwra-- : collab. read-annotate

Currently proposed

  • r----- : and
@joshmoore
joshmoore / repo_test.py
Last active August 29, 2015 14:01
Repo test for PR 2448
from uuid import uuid4 as UUID
import tempfile
import pytest
import time
import sys
import os
libdir = os.path.abspath("dist/lib/python")
sys.path.insert(0, libdir)
assert "ICE_CONFIG" not in os.environ
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Glencoe Software, Inc.
# All rights reserved.
import time
import tempfile
import os
#!/bin/bash
set -e
set -u
FILE=$1
shift;
# Define environement variables
HOST=${HOST:-localhost}
@joshmoore
joshmoore / script.sh
Last active August 29, 2015 14:22
docker/postgres replication
#!/bin/bash
# https://groups.google.com/forum/#!topic/docker-user/ysAx3_oP8zI
set -e
set -u
set -x
PGMASTER=testmaster
PGSLAVE=testslave
@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 git@github.com:joshmoore/homebrew.git
# git fetch omero
# git merge omero/omero-only
#
ice33() {
VERSION=`slice2java --version 2>&1`
if [[ "$VERSION" != "3.3.1" ]];
then