Snippets from libelektra.org
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ini
ni
xmltool
yajl
LICENSE.md
README.md
snippets.dump

README.md

libelektra - shared snippets

Welcome to the snippet repository! Here you find all snippets that have been shared through the snippet sharing service on our website.

This repository mainly serves two purposes:

  • backups for ourselves
  • easier download of all snippets for you!

For license details please see LICENSE.md.

FAQ

What can I do with this files?

If you want, you can download the snippets and mount them locally. You then have access to all the snippets even without internet connection.

When you try to export snippets from the mounted file, you should make sure to use the format/plugin that was used during upload. You can look this up in the meta data of a snippet, e.g.

// retrieve upload format/plugin
kdb getmeta /<mountpoint>/path/to/the/snippet plugin

// export snippet with right format
kdb export /<mountpoint>/path/to/the/snippet <format/plugin>

Which of the files should I use?

We suggest using one of the ini exports, as the dump export uses absolute key paths and can therefore only be imported under the same path as it was exported (which is system/configs). The other available formats do not preserve meta data and/or ordering, which you should have if you want to lookup the upload format/plugin.