Skip to content

Instantly share code, notes, and snippets.

Avatar

Kent Kawashima kentwait

View GitHub Profile
@kentwait
kentwait / mount_vbox_shared_boot.md
Last active Apr 16, 2022
Mount VirtualBox shared folder on boot using fstab
View mount_vbox_shared_boot.md

How to mount a VirtualBox shared folder when the Guest OS boots

Problem

While using VirtualBox's Guest Additions to mount shared folders provides a seamless way to mount shared folders, there are also disadvantages.

  • Shared folders will always mount in /media/sf_(share name) unless specified using through vbox drivers in the guest OS
  • Mounting does not happen at boot-time. Applications that require paths at boot will not be able to access the shared folder even after it is mounted - such as Docker.

Solution

Instead of relying on Guest Additions, if you have sudo permissions, shared folders can be mounted at boot-time using fstab. Using this approach allows

@kentwait
kentwait / hdf5_h5py_install.md
Last active Jun 11, 2021
Install HDF5 and h5py supporting MPI (Parallel HDF5)
View hdf5_h5py_install.md

How to install HDF5 and h5py supporting MPI on OS X

Works on Mac OS 10.11.6, HDF5 1.8.17

HDF5

  1. Download and install dependencies like zlib, openmpi. Use homebrew.
  2. Download source tarball from http://www.hdfgroup.org/HDF5/release/obtain5.html
  3. Configure Makefile using the following command:
$ CC=/usr/local/bin/mpicc ./configure --with-zlib=/usr/local/opt --disable-fortran --prefix=/usr/local/ --enable-shared --enable-parallel
@kentwait
kentwait / network_summary_stats.ipynb
Last active Jun 12, 2018
Understanding networks through descriptive statistics
View network_summary_stats.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kentwait
kentwait / python_pool_processes.ipynb
Last active Oct 28, 2015
How to use a pool of processes to speed up analysis in Python
View python_pool_processes.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.