But Professor‽

Some random deep thoughts from when “it’s compiling”

Itch of the Week: Archiving and Restoring Digitalocean Droplets Painlessly

a.k.a. Going Full Nomad With do-automatinator

Jan 2, 2016

In the previous (first, actually) post I have promised deep stuff. It is coming, just not yet.

The motto used (Release early, release often) was popularized by Eric S. Raymond in his 1997 essay. The text also mentions other "lessons", such as "Every good work of software starts by scratching a developer's personal itch." (- The Cathedral and the Bazaar)

The Backstory

  • Digitalocean offers cheap VPS service
  • You only have to pay for the hours your machines "exist", so you can go even cheaper if you are not running (permanent) services, but using the machines for development, etc.
  • You don't have to pay when the machines are "destroyed"
  • You can save the machines
  • You can only save machines that are powered-off

The Itch

  • You can't "just" shutdown, snapshot and destroy a machine with a single click of a button or a command

The Scratch

do-automatinator is a command-line tool to shut down, snapshot and destroy a machine at Digitalocean. (And to do the reverse, too)

Some Tech Stuff

Setting Your Token

coffee app.coffee settoken <your digitalocean token>

(You only have to do this once)

Shutting Down, Snapshotting and Destroying a Machine

coffee app.coffee save <machine name>

Creating a Machine from a Snapshot (aka Restoring a Machine)

coffee app.coffee restore <machine name>

The Conclusion

This way, I (and anyone using the tool) can create a machine, set it up and only pay for the hours the machine is actually in use. (As a bonus, even backups are created, for free(!))

What if I don't have a Digitalocean account yet?

If you don't have a Digitalocean account yet, using this link gets you $10 in DO credit (and some for me, too, thanks for the support).

[permalink]

Placeholder Prologue

Dec 18, 2015

If you are looking for a prologue, you are in the right place, just not the right time (you should check back later, really)

But Professor, there is no blog or anything without a plausible excuse. What's going on here?

This blog is no exception from all the standard rules, however according to the motto "Release early, release often" and lean startup principles after many months of procrastination this blog came to life.

By way of introduction this blog serves two experiments. One in which a blog-engine is tested which is completely free (of cost, too), written only* in CoffeeScript and is fully static. The other experiment is one in which I try writing a blog.

Stay tuned for deep thoughts or ideas how programming can be art and some other stuff

[permalink]