Skip to content

Instantly share code, notes, and snippets.

@jburel
jburel / README.md
Last active June 22, 2020 07:48
Pass parameters to notebook using URL

Connect to OMERO, passing parameters as URL query parameters

This notebook requires the parameters host, username, passwd

If you already have a notebook opened you can pass the parameters by adding this query string to the URL in your browser:

?host='HOST'&username='USERNAME'&passwd='PASSWD'

or

@jburel
jburel / library_clean_up.py
Created June 21, 2017 10:21
remove some lines from the output of license-checker
words_to_remove = ['publisher:', 'email:', 'licenseFile:', 'url:']
with open('original.txt') as oldfile, open('final.txt', 'w') as newfile:
for line in oldfile:
if not any(word in line for word in words_to_remove):
newfile.write(line)
ansible-playbook -u jburel ci-deployment.yml --ask-become-pass -C --limit ci-omero-web-apps-build
SUDO password:
PLAY [ci-jenkins-linux] ********************************************************
skipping: no hosts matched
PLAY [ci-omero] ****************************************************************
skipping: no hosts matched
PLAY [ci-omero-web-apps-build] *************************************************