Skip to content

Instantly share code, notes, and snippets.

View mmulvahill's full-sized avatar
👨‍💻
Still here, but mostly non-OSS for a bit...

Matt Mulvahill mmulvahill

👨‍💻
Still here, but mostly non-OSS for a bit...
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mmulvahill on github.
  • I am mmulvahill (https://keybase.io/mmulvahill) on keybase.
  • I have a public key ASDkZlqgoi9ZWDrIi6VRHtdaaoBEEmahDpUIuB6DwvdSOQo

To claim this, I am signing this object:

@mmulvahill
mmulvahill / csphbiostats-computing-options.md
Last active May 31, 2018 18:45
Computing options and resources for CSPH Biostats

My task for June 15th

  • Itemize resources and use cases for the cloud
  • Consider how all of these can fit together into a unified environment + command-line options

Overview

Key topics

  • Google Datalab/Amazon Sagemaker, or hosted Jupyter Notebook through controlled, interface
@mmulvahill
mmulvahill / proposalvariance.h
Last active December 1, 2017 16:28
Abstract class approach to a proposal variance class for a modified Metropolis-Hastings sampler
//
// initial abstract class approach to the PV classes. The key problem lines
// are denoted by ****. The gist is 1. abstract classes don't allow you to leave
// the return type undefined/virtual, nor member object types to be left
// undefined/virtual. But, 2. the class does need to function differently (methods
// denoted ----).
//
// So far I've figured that a template class approach would solve the 1, but make 2
// more challenging -- how to define different methods for each type -- overloading?
// -- and how to limit to only the two types wanted (double and arma::mat<2,2>)
@mmulvahill
mmulvahill / introduce_self_to_git.md
Last active September 19, 2017 18:51
Introduce yourself to Git

You should only have to set this up once per machine when you first start GitKraken.

If you prefer to work at the command line, we refer you to the following link Intro to Git command line

Configuring Git using GitKraken

@mmulvahill
mmulvahill / migrate-gitlab-omnibus-to-source.md
Last active September 1, 2017 06:04 — forked from unixfox/migrate-gitlab-omnibus-to-source.md
Migrate Gitlab omnibus to Gitlab source (Synology, sameersbn/docker-gitlab)

Moving from xubuntu server to Synology DSM. For now just converting code based on sameersbn/docker-gitlab documentation and expected differences in system commands. Testing next...

cd /volume1/docker/personal/gitlab/backups
rsync -av --verbose <location of old backup> /volume1/docker/personal/gitlab/gitlab/data/backups/
chown gitlab:gitlab 1484678383_2017_01_17_gitlab_backup.tar
systemctl stop gitlab.target
systemctl stop gitlab-sidekiq
systemctl stop gitlab-unicorn
systemctl stop gitlab-workhorse.service
@mmulvahill
mmulvahill / fileserver.md
Last active August 14, 2017 15:36
NAS file server for CBC/Biostats

Network Attached Storage (NAS) for CBC/Biostats

I've priced NAS systems ranging from $1,000 to $7,500 and 12TB to 60TB of usable space.
The intended use of these systems ranges from home office to medium-sized businesses and
all of the systems can handle more concurrent users than we will have (200-1600).

My recommendation is to spend between $4,000 and $6,500 netting 30-48TB of space after accounting for RAID mirroring. These prices include the NAS system, 12 hard disks ranging from 6-8TB per disk, and minor accessories depending on the specific system. The two major choices are:

@mmulvahill
mmulvahill / debugging_RWeka_install.Rmd
Last active May 29, 2018 13:00
Getting R, Java, and RWeka to play nice
# R, Java, and RWeka errors
**TL;DR version**
On macOS
1. Make sure up-to-date Java JDK is installed
2. Reconfigure R's java paths: R CMD javareconf
3. Install rJava from source: install.packages("rJava", type = 'source')
4. Install RWeka: install.packages("RWeka")