Skip to content

Instantly share code, notes, and snippets.

Maksim Rakitin mrakitin

  • Brookhaven National Laboratory
  • Upton, NY
Block or report user

Report or block mrakitin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@danielballan
danielballan / sample_example.py
Last active Sep 5, 2018
toy example for getting sample tracking going at CHX
View sample_example.py
# 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
View beamline.py
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
johnduarte / bluejeans_rpm_via_alien.md
Last active Sep 24, 2019
BlueJeans rpm install on Debian
View bluejeans_rpm_via_alien.md

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.