Skip to content

Instantly share code, notes, and snippets.

View zoevanhavre's full-sized avatar

Zoe van Havre zoevanhavre

  • Brisbane, Australia
View GitHub Profile
@zoevanhavre
zoevanhavre / Fix for docker "Error checking TLS connection: Host is not running"
Created June 10, 2016 02:11
Docker fix error "Error checking TLS connection: Host is not running"
When encourtering `Cannot connect to the Docker daemon. Is the docker daemon running on this host?` and if `docker-machine env` does not fix it, check the name of the running docker-machine (NAME_OF_MACHINE) and run this instead:
`docker-machine env NAME_OF_MACHINE`
@zoevanhavre
zoevanhavre / Dockerfile-biocLite-line2add
Last active January 28, 2021 15:52
Add this to a Dockerfile to install BIOCONDUCTOR packages to R. This adds the "EBImage" package. Requires libfftw3-dev to be installed
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libfftw3-dev \
gcc && apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN Rscript -e 'source("http://bioconductor.org/biocLite.R")' -e 'biocLite("EBImage")'
@zoevanhavre
zoevanhavre / mnist.R
Created April 29, 2016 03:28 — forked from primaryobjects/mnist.R
MNIST machine learning example in R.
library(caret)
library(doParallel)
# Enable parallel processing.
cl <- makeCluster(detectCores())
registerDoParallel(cl)
# Load the MNIST digit recognition dataset into R
# http://yann.lecun.com/exdb/mnist/
# assume you have all 4 files and gunzip'd them
@zoevanhavre
zoevanhavre / GitSOS_Resetting
Created April 18, 2016 08:04
FIX git when a push has failed and you fix problem but cant push commit because of original error. Alternative to rebase. source: http://stackoverflow.com/questions/24114676/git-error-failed-to-push-some-refs-to
git reset --mixed origin/master
git add .
git commit -m "This is a new commit for what I originally planned to be amended"
git push origin master
@zoevanhavre
zoevanhavre / Video_ioslide.Rmd
Created February 15, 2016 14:16
Add youtube Video to ioslides in Rstuio (in Rmarkdown)
------
<div align="center">
<iframe width="560" height="315" src="http://www.youtube.com/embed/9bZkp7q19f0?rel=0" frameborder="0" allowfullscreen></iframe>
</iframe>
</div>
@zoevanhavre
zoevanhavre / 0_reuse_code.js
Created January 31, 2016 08:01
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@zoevanhavre
zoevanhavre / Default+Preferences.sublime-settings
Last active September 2, 2015 13:09
Sublime Text 3 configuration
// Place your settings in the file "User/Preferences.sublime-settings", which
// overrides the settings in here.
//
// Settings may also be placed in file type specific options files, for
// example, in Packages/Python/Python.sublime-settings for python files.
{
// Sets the colors used within the text area
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
// Note that the font_face and font_size are overridden in the platform