Skip to content

Instantly share code, notes, and snippets.

@joshmoore
joshmoore / lda.sh
Created November 30, 2012 14:28 — forked from dpwrussell/lda.sh
ldap experiment to determine how to query LDAP without basing with an OU
#!/bin/bash
(
set -e
set -u
export CLASSPATH=.:`echo lib/server/*.jar | sed 's/ /:/g'`
cat > ldap.xml <<EOF
#!/usr/bin/env python
import traceback
import tempfile
import fcntl
import sys
import os
try:
d, = sys.argv[1:]
except ValueError:
"""
This script searches for Images, using database queries queries generated
from a number of parameters.
"""
import omero.scripts as scripts
from omero.gateway import BlitzGateway
from omero.rtypes import *
from datetime import datetime
"""
This script searches for Images, using database queries queries generated
from a number of parameters.
"""
import omero.scripts as scripts
from omero.gateway import BlitzGateway
from omero.rtypes import *
from datetime import datetime
@joshmoore
joshmoore / makeUsers.py
Last active December 27, 2015 22:59 — forked from ximenesuk/makeUsers.py
from omero.gateway import BlitzGateway
import omero
from omero.rtypes import rstring
from omero_model_ProjectI import ProjectI
from omero_model_DatasetI import DatasetI
from omero_model_ProjectDatasetLinkI import ProjectDatasetLinkI
from omero_model_ExperimenterI import ExperimenterI
from omero_model_ExperimenterGroupI import ExperimenterGroupI
from omero_model_PermissionsI import PermissionsI
from omero_model_TagAnnotationI import TagAnnotationI
#!/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}
from fileinput import input
import requests
# cat image ids to this script to loop over annotations
# e.g.: cut -f2 image_ids.tsv | python get_idr_annotations.py
def connect():
import omero
from omero.gateway import BlitzGateway
from omero.sys import ParametersI