Skip to content

Instantly share code, notes, and snippets.

View marsnone's full-sized avatar
:electron:

Martin O'Neill marsnone

:electron:
  • Dublin
View GitHub Profile
@JosiahParry
JosiahParry / gdoc_to_rmd.R
Created October 26, 2019 23:35
Convert a Google Doc to an R Markdown Doc
library(googledrive)
# authenticate yourself
drive_auth()
gdoc_to_rmd <- function(drive_id, output, verbose = TRUE, overwrite = FALSE) {
# get the doc
doc <- drive_get(as_id(drive_id))
@guaiamum
guaiamum / .hyper.js
Last active October 31, 2019 10:53
My public hyper terminal settings, managed by hyper-sync-settings plugin
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm