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 usedocker 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 calledkoa-serve
.
Continue reading …