Skip to content

Instantly share code, notes, and snippets.

View hkmoon's full-sized avatar

HongKee Moon hkmoon

  • MPI-CBG
  • Dresden
View GitHub Profile
@hkmoon
hkmoon / label_image_from_rois.py
Last active July 7, 2021 11:10 — forked from maweigert/label_image_from_rois.py
Generate label image from rois in Fiji
#@ ImagePlus imp
#@ OUTPUT ImagePlus result
from ij import IJ
from ij.plugin.frame import RoiManager
result = IJ.createImage("Labeling", "16-bit black", imp.getWidth(), imp.getHeight(), 1)
ip = result.getProcessor()
rm = RoiManager.getInstance()
@hkmoon
hkmoon / vm-resize-hard-disk.md
Created July 1, 2019 11:08 — forked from christopher-hopper/vm-resize-hard-disk.md
Resize a Hard Disk for a Virtual Machine provisioned using Vagrant from a Linux base box to run using VirutalBox.

Resize a Hard Disk for a Virtual Machine

Our Virtual Machines are provisioned using Vagrant from a Linux base box to run using VirutalBox. If the Hard Disk space runs out and you cannot remove files to free-up space, you can resize the Hard Disk using some VirtualBox and Linux commands.

Some assumptions

The following steps assume you've got a set-up like mine, where:

@hkmoon
hkmoon / byobuCommands
Created June 22, 2018 08:36 — forked from jshaw/byobuCommands
Byobu Commands
Byobu Commands
==============
byobu Screen manager
Level 0 Commands (Quick Start)
------------------------------
<F2> Create a new window