Adam K Dean

Posts

Reclaim your inodes by deleting dangling docker volumes

Published 8 September 2015 in archive with tags docker , linux , bash Note: these days, you can simply use docker volume prune, but this is being posted for posterity. This was an issue which caused lots of problems back in 2015, and determining ways of managing inode usage helped a number of platforms including Shopify, who took containerisation to a new level. Continue reading …

Add notices to auto-generated files with gulp

Published 25 August 2015 in archive with tags npm , node , gulp I wrote a little tool today to pop into my gulp workflow which writes some text to the top of files processed by gulp. The problem I find is that quite often you can be working on a project with source files and generated files (e.g. jsx -> js) and accidentally edit the wrong file, only for your changes to be overwritten. Continue reading …

Koa middleware for serving static files

Published 12 August 2015 in archive with tags npm , node , koa Quite often I find myself using the same snippet of code over and over in projects for serving up static files as part of projects that use Koa. Today I exceeded my limit for copy pasting, so I've bundled this together into a module called koa-serve. Continue reading …

Node.js IsDirectory

Published 12 August 2015 in archive with tags node , snippet Here's a useful snippet for checking if a path is a directory in Node.js, this obviously requires('fs'). Continue reading …

Useful git aliases

Published 31 July 2015 in archive with tags git I've been so busy recently that this blog has been neglected. I'm planning on fixing some design quirks and adding in some archiving, maybe even giving it a biy of a face lift so it's not so drab. Something I don't want to happen is to have empty months when it comes to my archive so today is the last day of July and I'll show you what aliases I have in my git config. Continue reading …



Newer Page 9 of 42 Older