Adam K Dean

Posts

Remove branch from remote git repo

Published 4 August 2014 in archive with tags git To remove a branch from a remote git repository, you have to push an empty branch. Continue reading …

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 …



Newer Page 14 of 42 Older