Posts
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 …
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 …
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 …
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 …
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 …