Skip to content
Michael Rivera edited this page Oct 11, 2018 · 10 revisions

cknife includes the following executables.

  • cknifeaws - AWS wrappers.
  • cknifemail - SMTP email sender.
  • cknifemon - Daemon that sends heartbeat signals to a place of your choosing.
  • cknifemysql - MySQL utilities.
  • cknifepg - PostgreSQL utilities.
  • cknifewcdir - Lines-of-code calculator.
  • cknifedub - Spot directories that are particularly space-consuming.
  • cknifenowtimestamp - Get a now() timestamp string.

Some tools are too simple to require a separate Wiki page, so their usage is summarized here.

Using cknifenowtimestamp

This tool just spits out the current time in a format that could be used in a backups file name.

> cknifenowtimestamp 
20181009214131

That's year 2018, month 10, day 09, 21:41:31 (military time). It's a call to Time.now.strftime("%Y%m%d%H%M%S").

Recipes

Other

You can read more to decide whether to bother with this thing.