Skip to content

Instantly share code, notes, and snippets.


Maksim Rakitin mrakitin

  • Brookhaven National Laboratory
  • Upton, NY
View GitHub Profile
danielballan /
Last active Sep 5, 2018
toy example for getting sample tracking going at CHX
# Do this part whether you acquiring data or accessing it.
import pymongo
cli = pymongo.MongoClient('xf11id-ca')
samples = cli.get_database('samples').get_collection('samples')
from databroker import Broker
db = Broker.named('temp') # for real applications, 'temp' would be 'chx'
# Do this part when you are entering new samples.
# I'm going to assume that 'name' is unique. We should be more careful about
from dask.distributed import Client, get_client, Variable, fire_and_forget
import numpy as np
import time
import random
def get_image_from_detector():
""" Collect image from detector
Actually this just produces a random image
johnduarte /
Last active Jan 30, 2020
BlueJeans rpm install on Debian

FYI, for those of us running Debian based systems rather than RedHat, the BlueJeans RPM can be successfully installed via alien

Steps to install BlueJeans on Debian

  • Download BlueJeans RPM
  • Install alien package sudo apt-get install alien
  • Convert BlueJeans RPM to a DEB package sudo alien --to-deb --scripts bluejeans-*.rpm
  • Install resulting DEB sudo dpkg -i bluejeans_*.deb
  • Run BlueJeans with /opt/bluejeans/bluejeans-bin

You may get an error loading the expected udev library

You can’t perform that action at this time.