Add snippets: Ruby encoding, #safemigration.

Use the latter with CI.