Adam K Dean

Posts in archive

RegEx match all words with a prefix

Published 17 July 2014 in archive with tags javascript , regex Here is a snippet to match all words that begin with a specified prefix. Continue reading …

Count occurrences with grep

Published 4 July 2014 in archive with tags grep , bash Today I learnt that grep has a '-c' switch that counts occurrences. I'll never pipe it to 'wc -l' again! Continue reading …

Fleetctl destroy all services

Published 3 July 2014 in archive with tags bash , fleet , coreos , fleetctl Here is a nice little bash trick to destroy all services using fleetctl. Continue reading …

Detect if JS is running under Node

Published 2 July 2014 in archive with tags node , snippet , javascript Here is a snippet for how to detect if JavaScript is running under Node: Continue reading …

Scale a Dockerfile app in Deis

Published 1 July 2014 in archive with tags deis , procfile , dockerfile Deis allows you to run apps in two different ways: using a Procfile, and using a Dockerfile. When using a Procfile, you define what type of processes you'll be running, such as: Continue reading …



Newer Page 13 of 41 Older